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