We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7f9ba5 + 3bc8496 commit 80ef47aCopy full SHA for 80ef47a
tests/index.spec.ts
@@ -2,7 +2,8 @@ import { test, expect } from "@playwright/test";
2
3
test("Has Index title", async ({ page }) => {
4
await page.goto("/");
5
-
+ // Wait for the page to be fully loaded by checking for a reliable element
6
+ await page.waitForSelector("main", { state: "visible" });
7
// Expect a title "to contain" a substring.
8
await expect(page).toHaveTitle(/Index - Nuxt 3 Woocommerce/);
9
});
0 commit comments