Skip to content

Commit

Permalink
Use netlify url for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkwiatek committed Sep 21, 2024
1 parent 07d7404 commit 162ccca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Waiting for 200 from the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@v1.2
id: waitFor200
with:
site_name: "typeberry-toolkit"
max_timeout: 360 # 6 Minutes, depends on your build pipeline duration
- name: Run Playwright tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/run-program.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect, Page } from "@playwright/test";

async function runProgramTest(page: Page, pvmType: string) {
// Navigate to your app
await page.goto("http://localhost:5173");
await page.goto("/");

// Select the PVM type
await page.waitForSelector('button[test-id="pvm-select"]');
Expand Down

0 comments on commit 162ccca

Please sign in to comment.