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");