Skip to content

Commit 71b95cf

Browse files
committed
CCM-10294: standardise cicd tests
1 parent 0770845 commit 71b95cf

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

.github/actions/test-types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[
2-
"accessibility"
2+
"accessibility",
3+
"ui"
34
]

scripts/tests/api.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
npx playwright install --with-deps > /dev/null
8+
9+
cd tests/test-team
10+
11+
npm run test:api

scripts/tests/test.mk

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ test-response-time: # Test your API response times from scripts/test/response-ti
4848
test-security: # Run your security tests from scripts/test/security @Testing
4949
make _test name="security"
5050

51-
test-ui: # Run your UI tests from scripts/test/ui @Testing
52-
make _test name="ui"
51+
test-ui-component: # Run your UI tests from scripts/test/ui @Testing
52+
make _test name="ui-component"
53+
54+
test-ui-e2e: # Run your UI tests from scripts/test/ui @Testing
55+
make _test name="ui-e2e"
56+
57+
test-api: # Run your UI tests from scripts/test/ui @Testing
58+
make _test name="api"
5359

5460
test-ui-performance: # Run UI render tests from scripts/test/ui-performance @Testing
5561
make _test name="ui-performance"
@@ -62,7 +68,9 @@ test: # Run all the test tasks @Testing
6268
test-coverage \
6369
test-contract \
6470
test-security \
65-
test-ui \
71+
test-ui-component \
72+
test-ui-e2e \
73+
test-api \
6674
test-ui-performance \
6775
test-integration \
6876
test-accessibility \
@@ -91,6 +99,8 @@ ${VERBOSE}.SILENT: \
9199
test-load \
92100
test-response-time \
93101
test-security \
94-
test-ui \
102+
test-ui-component \
103+
test-api \
104+
test-ui-e2e \
95105
test-ui-performance \
96106
test-unit \

scripts/tests/ui-component.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
npx playwright install --with-deps > /dev/null
8+
9+
cd tests/test-team
10+
11+
npm run test:local-ui

scripts/tests/ui-e2e.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cd "$(git rev-parse --show-toplevel)"
6+
7+
npx playwright install --with-deps > /dev/null
8+
9+
cd tests/test-team
10+
11+
run test:e2e

0 commit comments

Comments
 (0)