-
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.
- Loading branch information
1 parent
efec2aa
commit d1630f9
Showing
4 changed files
with
48 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Integration Test | ||
|
||
on: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
branches: [master] | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
python: | ||
uses: ./.github/workflows/python-test.yml | ||
playwright: | ||
uses: ./.github/workflows/playwright.yml | ||
needs: [python] |
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test("test", async ({ page }) => { | ||
await page.goto("http://localhost:4173/"); | ||
await page.locator('input[type="file"]').click(); | ||
await page | ||
.locator('input[type="file"]') | ||
.setInputFiles("../../data/tfci-taxonium-chron.jsonl"); | ||
await page.locator('input[name="treenomeEnabled"]').check(); | ||
await page.locator('input[name="treenomeEnabled"]').uncheck(); | ||
await page.getByLabel("Tree type:DistanceTime").selectOption("x_time"); | ||
await page.getByLabel("Tree type:DistanceTime").selectOption("x_dist"); | ||
await page.getByRole("textbox").click(); | ||
await page.getByRole("textbox").fill("TFCI"); | ||
await page.locator("#view-main").click(); | ||
await page.locator("#view-main").click(); | ||
await page.locator("#view-main").click(); | ||
await page.getByRole("button", { name: "Zoom in vertically" }).click(); | ||
await page.getByRole("button", { name: "Zoom in horizontally" }).click(); | ||
await page.getByRole("button", { name: "Zoom out vertically" }).click(); | ||
await page.getByRole("button", { name: "Zoom out horizontally" }).click(); | ||
await page.getByRole("button", { name: "Settings" }).click(); | ||
await page.getByRole("tab", { name: "Appearance" }).click(); | ||
await page.getByRole("tab", { name: "Search" }).click(); | ||
await page.getByRole("tab", { name: "Appearance" }).click(); | ||
}); |