Skip to content

Commit 3bc8496

Browse files
committed
Update index.spec.ts
1 parent 3d11d0e commit 3bc8496

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/index.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import { test, expect } from "@playwright/test";
22

33
test("Has Index title", async ({ page }) => {
44
await page.goto("/");
5-
65
// Wait for the page to be fully loaded by checking for a reliable element
7-
await page.waitForSelector('main', { state: 'visible' });
8-
6+
await page.waitForSelector("main", { state: "visible" });
97
// Expect a title "to contain" a substring.
108
await expect(page).toHaveTitle(/Index - Nuxt 3 Woocommerce/);
119
});

0 commit comments

Comments
 (0)