diff --git a/tests/google.spec.ts b/tests/google.spec.ts index c25b166..032a60d 100644 --- a/tests/google.spec.ts +++ b/tests/google.spec.ts @@ -5,8 +5,8 @@ test.describe("Google", () => { test("The front page can load.", async ({ page }) => { const frame = await setupPage(page, "https://www.google.com/"); - const logo = await frame.locator("img[alt='Google']").first().getAttribute("src"); - expect(logo).not.toBeNull(); + const search = await frame.locator("textarea[Title='Search']").first().waitFor({ state: "visible" }); + expect(search).not.toBeNull(); }); test("The Google Apps menu opens and content is visible.", async ({ page }) => {