Skip to content

Commit

Permalink
fix: remove duplicate logo
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Dec 4, 2023
1 parent 24c8f2f commit a3f146a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion web/frontend/src/layout/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ const LeftSideNavBar = ({ authCtx, t }) => (
<div className="flex-1 flex items-center justify-center md:justify-start">
<div className="flex-shrink-0 flex items-center">
<NavLink to={ROUTE_HOME}>
<img className="block lg:hidden h-10 w-auto" src={logo} alt="Workflow" />
<img className="hidden lg:block h-10 w-auto" src={logo} alt="Workflow" />
</NavLink>
</div>
Expand Down
10 changes: 10 additions & 0 deletions web/frontend/tests/navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit a3f146a

Please sign in to comment.