From a3f146ae335f03befc2c025033cbec918993da81 Mon Sep 17 00:00:00 2001 From: Carine Dengler Date: Mon, 4 Dec 2023 13:58:37 +0100 Subject: [PATCH] fix: remove duplicate logo --- web/frontend/src/layout/NavBar.tsx | 1 - web/frontend/tests/navigation.spec.ts | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/web/frontend/src/layout/NavBar.tsx b/web/frontend/src/layout/NavBar.tsx index 3ac090269..fc2721824 100644 --- a/web/frontend/src/layout/NavBar.tsx +++ b/web/frontend/src/layout/NavBar.tsx @@ -179,7 +179,6 @@ const LeftSideNavBar = ({ authCtx, t }) => (
- Workflow Workflow
diff --git a/web/frontend/tests/navigation.spec.ts b/web/frontend/tests/navigation.spec.ts index 1359ad7dc..82ef642bb 100644 --- a/web/frontend/tests/navigation.spec.ts +++ b/web/frontend/tests/navigation.spec.ts @@ -10,6 +10,16 @@ import { initI18n(); +// unauthenticated + +test('Assert D-Voting logo is present', async({ page }) => { + await page.goto(`${process.env.FRONT_END_URL}/about`); + const logo = await page.getByAltText(i18n.t('Workflow')); + await expect(logo).toBeVisible(); + await logo.click(); + await expect(page).toHaveURL(process.env.FRONT_END_URL); +}); + // authenticated non-admin test('Assert "Profile" button is visible upon logging in', async({ page }) => {