Skip to content

Commit

Permalink
removed redundant test and fixed typo in id
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 5, 2024
1 parent 6efcc68 commit 3ebb07d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion frontend/components/header/HeaderWebsite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}"
>
<!-- MARK: Mobile Header -->
<div v-if="!aboveMediumBP" id="#mobile-header" class="flex px-4 py-3">
<div v-if="!aboveMediumBP" id="mobile-header" class="flex px-4 py-3">
<div class="z-0 mx-auto">
<div
class="absolute left-0 top-0 z-0 flex h-full w-full items-center justify-center"
Expand Down
15 changes: 2 additions & 13 deletions frontend/tests/specs/landing-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,12 @@ test.describe("Landing Page", () => {
/* 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.
Expand Down

0 comments on commit 3ebb07d

Please sign in to comment.