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.
1 parent a7f9ba5 commit 3d11d0eCopy full SHA for 3d11d0e
tests/index.spec.ts
@@ -2,6 +2,9 @@ import { test, expect } from "@playwright/test";
2
3
test("Has Index title", async ({ page }) => {
4
await page.goto("/");
5
+
6
+ // Wait for the page to be fully loaded by checking for a reliable element
7
+ await page.waitForSelector('main', { state: 'visible' });
8
9
// Expect a title "to contain" a substring.
10
await expect(page).toHaveTitle(/Index - Nuxt 3 Woocommerce/);
0 commit comments