From bdabc8242ae5a7e3a7f185b9e5baf91bbb4f4812 Mon Sep 17 00:00:00 2001 From: Yassine Bounekhla Date: Wed, 27 Sep 2023 10:04:35 -0400 Subject: [PATCH] fix test --- tests/all-browsers/navbar.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/all-browsers/navbar.spec.ts b/tests/all-browsers/navbar.spec.ts index a7b6df4a41..4e11009d3a 100644 --- a/tests/all-browsers/navbar.spec.ts +++ b/tests/all-browsers/navbar.spec.ts @@ -48,7 +48,7 @@ test("Sections in navbar contain appropriate titles and hrefs when viewed on des if (isMobile) { await element.click(); } - } else if (dropdown.href) { + } else if (dropdown.href && dropdown.button.title) { await expect(element).toHaveAttribute("href", `${dropdown.href}`); } }