fix logger and dismiss button presses

This commit is contained in:
Timo K
2025-12-11 17:17:56 +01:00
parent 9a7e797af4
commit 207b161b3b
3 changed files with 12 additions and 3 deletions

View File

@@ -126,8 +126,16 @@ async function registerUser(
page.getByRole("heading", { name: `Welcome ${username}` }),
).toBeVisible();
await page.pause();
const browserUnsupportedToast = page
.getByText("Element does not support this browser")
.locator("..")
.locator("..");
// Dismiss incompatible browser toast
const dismissButton = page.getByRole("button", { name: "Dismiss" });
const dismissButton = browserUnsupportedToast.getByRole("button", {
name: "Dismiss",
});
try {
await expect(dismissButton).toBeVisible({ timeout: 700 });
await dismissButton.click();