Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 12, 2023
1 parent 9382557 commit 33970da
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions taxonium_website/e2e/test-2.spec.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
import { test, expect } from '@playwright/test';
import { test, expect } from "@playwright/test";

test('test', async ({ page }) => {
await page.goto('http://localhost:4173/');
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[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();
});
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();
});

0 comments on commit 33970da

Please sign in to comment.