From 7d859427250515760fce0f1a7f66c9d6d35e85cb Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:55:40 -0600 Subject: [PATCH] fix tests --- tests/google.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }) => {