Skip to content

Commit d4def14

Browse files
committed
moving playwright ci into e2e tests
1 parent c9c40bb commit d4def14

File tree

2 files changed

+17
-81
lines changed

2 files changed

+17
-81
lines changed

.github/workflows/e2e.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@ jobs:
222222
--frontend_url "$FRONTEND_URL_LOCALHOST" \
223223
--candid_url "$CANDID_URL_LOCALHOST" \
224224
--browser chromium firefox webkit
225+
- name: Deploy default dfx project
226+
- name: Deploy sveltekit starter project
227+
run: |
228+
./target/debug/dfx new e2e_project --frontend sveltekit
229+
pushd e2e_project
230+
./target/debug/dfx start --background --clean
231+
./target/debug/dfx canister create e2e_project_frontend --specified-id br5f7-7uaaa-aaaaa-qaaca-cai
232+
./target/debug/dfx deploy
233+
popd
234+
# Add any additional deployments here
235+
- name: Install dependencies
236+
run: npm ci
237+
- name: Install Playwright Browsers
238+
run: npx playwright install --with-deps
239+
# Runs all playwright tests
240+
- name: Run Playwright tests
241+
run: npx playwright test
225242

226243
aggregate:
227244
name: e2e:required

.github/workflows/playwright-svelte.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)