From 3ebb07d995b12fd3a49c2746d2103fc666cc4b3b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Jul 2024 18:01:06 -0400 Subject: [PATCH] removed redundant test and fixed typo in id --- frontend/components/header/HeaderWebsite.vue | 2 +- frontend/tests/specs/landing-page.spec.ts | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/frontend/components/header/HeaderWebsite.vue b/frontend/components/header/HeaderWebsite.vue index 835cab6e1..a203e274e 100644 --- a/frontend/components/header/HeaderWebsite.vue +++ b/frontend/components/header/HeaderWebsite.vue @@ -10,7 +10,7 @@ }" > -
+
{ /* HEADER TESTS */ /* *********************************************************** */ - // Test that Header is visible if the viewport is large enough. - test("Header should be visible", async ({ landingPage }) => { - if (!(await landingPage.isMobile())) { - const { desktopHeader } = landingPage.header; - await expect(desktopHeader).toBeVisible(); - } else { - const { mobileHeader } = landingPage.header; - await expect(mobileHeader).toBeVisible(); - } - }); - // Test that the Header is visible on both mobile and desktop. test("Header visibility on mobile and desktop", async ({ landingPage }) => { - const headerVisibility = (await landingPage.isMobile()) + const header = (await landingPage.isMobile()) ? landingPage.header.mobileHeader : landingPage.header.desktopHeader; - await expect(headerVisibility).toBeVisible(); + await expect(header).toBeVisible(); }); // Test that the Roadmap button is visible and clickable only on Desktop.