-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'playwright' of https://github.com/theosanderson/taxonium …
…into playwright
- Loading branch information
Showing
3 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
branches: [main, master] | ||
pull_request: | ||
branches: [ main, master ] | ||
branches: [main, master] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: yarn install | ||
working-directory: ./taxonium_website | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
working-directory: ./taxonium_website | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
working-directory: ./taxonium_website | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: ./taxonium_website/playwright-report/ | ||
retention-days: 30 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: yarn install | ||
working-directory: ./taxonium_website | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
working-directory: ./taxonium_website | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
working-directory: ./taxonium_website | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: ./taxonium_website/playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
// @ts-check | ||
import { test, expect } from '@playwright/test'; | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test('has title', async ({ page }) => { | ||
|
||
await page.goto('//localhost:4173'); | ||
test("has title", async ({ page }) => { | ||
await page.goto("//localhost:4173"); | ||
// wait a few seconds | ||
|
||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle(/Taxonium/); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters