Merge pull request #56 from copenhagentruckwash/investigate-playwright-exit-code-1-issue

Stabilize POS email notification E2E setup
This commit is contained in:
Jeppe B
2026-06-01 17:20:54 +02:00
committed by GitHub
+3 -2
View File
@@ -51,8 +51,9 @@ async function navigateToPosBootPage(page: Page, { waitForSession = false }: { w
try {
await page.goto(POS_BOOT_URL, { waitUntil: "domcontentloaded", timeout: 30_000 });
await sessionRequest;
await Promise.race([sessionRequest, getPosBootStep(page).waitFor({ state: "visible", timeout: 10_000 })]);
await expect(getPosBootStep(page)).toBeVisible({ timeout: 10_000 });
await sessionRequest;
return;
} catch (error) {
lastError = error;
@@ -2788,7 +2789,7 @@ test.describe("Admin POS Orders - desktop action menu layout", () => {
await page.setViewportSize({ width: 1900, height: 900 });
await page.goto("/admin/12/modules/pos/orders");
await expect(page.locator("table")).toBeVisible();
await expect(page.locator("table")).toBeVisible({ timeout: 30_000 });
const dropdownRoot = await openLowestVisibleOrderActionDropdown(page);
const dropdownContent = dropdownRoot.locator(".dropdown-content").first();