From 990c152cc78d353280e32cd71390563f9cab1109 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Thu, 12 Oct 2023 21:12:48 +0100 Subject: [PATCH] Test cont (#547) * a * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * up * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/playwright.yml | 3 ++- taxonium_website/e2e/example.spec.js | 2 -- taxonium_website/e2e/test-2.spec.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index c17c47f9..1ef1dc45 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -28,7 +28,8 @@ jobs: run: yarn build working-directory: ./taxonium_website - name: Run Playwright tests - run: yarn playwright test + run: pwd + yarn playwright test working-directory: ./taxonium_website - uses: actions/upload-artifact@v3 if: always() diff --git a/taxonium_website/e2e/example.spec.js b/taxonium_website/e2e/example.spec.js index 5dfefa8f..13553c21 100644 --- a/taxonium_website/e2e/example.spec.js +++ b/taxonium_website/e2e/example.spec.js @@ -4,8 +4,6 @@ import { test, expect } from "@playwright/test"; test("has title", async ({ page }) => { await page.goto("//localhost:4173/"); - // Expect a title "to contain" a substring. await expect(page).toHaveTitle(/Taxonium/); }); - diff --git a/taxonium_website/e2e/test-2.spec.ts b/taxonium_website/e2e/test-2.spec.ts index 86c54431..18377491 100644 --- a/taxonium_website/e2e/test-2.spec.ts +++ b/taxonium_website/e2e/test-2.spec.ts @@ -5,7 +5,7 @@ test("test", async ({ page }) => { await page.locator('input[type="file"]').click(); await page .locator('input[type="file"]') - .setInputFiles("../data/tfci-taxonium-chron.jsonl"); + .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");