From dfa0eaeb4f0a86ef0b38c6dfa6c01227e4173a1d Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 4 Mar 2024 14:55:11 +0100 Subject: [PATCH] fix ci, more output @ ci --- .gitea/workflows/action.yml | 2 +- frontend/tests/log.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index a13c891..07996d0 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -34,7 +34,7 @@ jobs: cargo build cd frontend && npm install && npm run build - name: Frontend tests - run: cd frontend && npx playwright install && npx playwright test --workers 1 + run: cd frontend && npx playwright install && npx playwright test --workers 1 --reporter line - name: Backend tests run: cargo test --verbose #- uses: actions/upload-artifact@v3 diff --git a/frontend/tests/log.spec.ts b/frontend/tests/log.spec.ts index b5f0645..98f4c14 100644 --- a/frontend/tests/log.spec.ts +++ b/frontend/tests/log.spec.ts @@ -150,7 +150,7 @@ test("Kiosk can start and finish trip", async ({ page }, testInfo) => { await page.goto("http://localhost:8000/log"); await page.waitForTimeout(60000); - await page.locator("div:nth-child(2) > .border-0").click(); + await page.locator('div:nth-child(2) > .pt-2 > div > div > div:nth-child(2) > .border-0').click(); // 2 trips currently running, try to close second one await page.getByRole("combobox", { name: "Destination" }).click(); await page.getByRole("combobox", { name: "Destination" }).fill("Ottensheim"); await page.getByRole("button", { name: "Ausfahrt beenden" }).click();