Skip to content

Commit f46b336

Browse files
committed
CCM-10980: debugging
1 parent e90aa13 commit f46b336

File tree

5 files changed

+16
-30
lines changed

5 files changed

+16
-30
lines changed

.github/actions/acceptance-tests/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ runs:
4646
4747
- name: Archive test results
4848
uses: actions/upload-artifact@v4
49+
if: always()
4950
with:
5051
name: ${{ inputs.testType }} - test report
5152
path: "tests/acceptance-test-report"

scripts/tests/accessibility.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,21 @@ set -euo pipefail
44

55
# feature flag
66
export NEXT_PUBLIC_ENABLE_PROOFING=true
7-
87
export INCLUDE_AUTH_PAGES=true
98

109
npm run accessibility-test-setup -w tests/accessibility
11-
1210
npm run build
13-
1411
mkdir -p ./frontend/public/testing
1512
cp ./utils/utils/src/email-templates/* ./frontend/public/testing/
1613

1714
npm run app:start --prefix frontend
18-
1915
npm run app:wait --prefix frontend
2016

21-
set +e
22-
npm run test:accessibility -w tests/accessibility
23-
TEST_EXIT_CODE=$?
24-
set -e
17+
TEST_EXIT_CODE=0
18+
npm run test:accessibility -w tests/accessibility || TEST_EXIT_CODE=$?
2519
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
2620

27-
cp -r ./tests/accessibility/.reports/accessibility ./tests/acceptance-test-report
28-
21+
cp -r ./tests/accessibility/.reports/accessibility ./tests/acceptance-test-report/accessibility
2922
npm run accessibility-test-teardown -w tests/accessibility
3023

3124
exit $TEST_EXIT_CODE

scripts/tests/api.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ set -euo pipefail
44
cd "$(git rev-parse --show-toplevel)"
55
npx playwright install --with-deps > /dev/null
66
cd tests/test-team
7-
8-
set +e
9-
npm run test:api
10-
TEST_EXIT_CODE=$?
11-
set -e
7+
TEST_EXIT_CODE=0
8+
npm run test:api || TEST_EXIT_CODE=$?
129
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
1310

14-
cp -r ./playwright-report ../acceptance-test-report
11+
cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+
[[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1513

1614
exit $TEST_EXIT_CODE

scripts/tests/ui-component.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ set -euo pipefail
44
cd "$(git rev-parse --show-toplevel)"
55
npx playwright install --with-deps > /dev/null
66
cd tests/test-team
7-
8-
set +e
9-
npm run test:local-ui
10-
TEST_EXIT_CODE=$?
11-
set -e
12-
7+
TEST_EXIT_CODE=0
8+
npm run test:local-ui || TEST_EXIT_CODE=$?
139
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
1410

15-
cp -r ./playwright-report ../acceptance-test-report
11+
cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+
[[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1613

1714
exit $TEST_EXIT_CODE

scripts/tests/ui-e2e.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ set -euo pipefail
44
cd "$(git rev-parse --show-toplevel)"
55
npx playwright install --with-deps > /dev/null
66
cd tests/test-team
7-
8-
set +e
9-
npm run test:e2e
10-
TEST_EXIT_CODE=$?
11-
set -e
12-
7+
TEST_EXIT_CODE=0
8+
npm run test:e2e || TEST_EXIT_CODE=$?
139
echo "TEST_EXIT_CODE=$TEST_EXIT_CODE"
1410

15-
cp -r ./playwright-report ../acceptance-test-report
11+
cp -r ./playwright-report ../acceptance-test-report/playwright-report
12+
[[ -e test-results ]] && cp -r ./test-results ../acceptance-test-report/test-results
1613

1714
exit $TEST_EXIT_CODE

0 commit comments

Comments
 (0)