Skip to content

Commit 6b4787a

Browse files
committed
#3414 webpage: add playwright just config
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 2358dd9 commit 6b4787a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

webpage/justfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,18 @@ playwright-test-ui:
8888
[group('dev')]
8989
playwright-test test='':
9090
npm run playwright:test -- tests/{{ test }}
91+
92+
# Run the local playwright tests
93+
[group('dev')]
94+
playwright-test-local test='':
95+
npm run playwright:test:local -- tests/{{ test }}
96+
97+
# Run the local docker playwright tests
98+
[group('dev')]
99+
playwright-test-next test='':
100+
npm run playwright:test:local-docker -- tests/{{ test }}
101+
102+
# Run the playwright tests on next.qownnotes.org
103+
[group('dev')]
104+
playwright-test-next test='':
105+
npm run playwright:test:next -- tests/{{ test }}

webpage/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"build": "./scripts/run-build.sh",
1515
"playwright:test": "TEST_ENV=prod playwright test",
1616
"playwright:test:ui": "TEST_ENV=prod playwright test --ui",
17+
"playwright:test:next": "TEST_ENV=next playwright test",
18+
"playwright:test:next:ui": "TEST_ENV=next playwright test --ui",
1719
"playwright:test:local": "TEST_ENV=local playwright test",
1820
"playwright:test:local:ui": "TEST_ENV=local playwright test --ui",
1921
"playwright:test:local-docker": "TEST_ENV=local-docker playwright test",

0 commit comments

Comments
 (0)