Skip to content

Commit

Permalink
test: add EPFL logo test
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Mar 5, 2024
1 parent 4ca033c commit 56fbba5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/frontend/tests/navbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ test('Assert D-Voting logo is present', async ({ page }) => {
await expect(await logo.getByRole('link')).toHaveAttribute('href', '/');
});

test('Assert EPFL logo is present', async ({ page }) => {
const logo = await page.getByTestId('leftSideNavBarEPFLLogo');
await expect(logo).toBeVisible();
await expect(await logo.getByRole('link')).toHaveAttribute('href', 'https://epfl.ch');
});

test('Assert link to form table is present', async ({ page }) => {
const forms = await page.getByRole('link', { name: i18n.t('navBarStatus') });
await expect(forms).toBeVisible();
Expand Down

0 comments on commit 56fbba5

Please sign in to comment.