Skip to content

Commit

Permalink
refactor: fix wrong variable naming in menu integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Feb 13, 2024
1 parent 387fe72 commit b715837
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/specs/menus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ test.describe('menus', () => {

test('footer navigation', async ({ page }) => {
await page.goto(websiteUrl('/en'));
const mainNav = page.getByRole('contentinfo').getByRole('navigation');
await expect(mainNav.getByText('Privacy')).toBeVisible();
await expect(mainNav.getByText('Privatsphäre')).not.toBeVisible();
const footerNav = page.getByRole('contentinfo').getByRole('navigation');
await expect(footerNav.getByText('Privacy')).toBeVisible();
await expect(footerNav.getByText('Privatsphäre')).not.toBeVisible();
await page.getByRole('link', { name: 'de' }).click();
await expect(mainNav.getByText('Privacy')).not.toBeVisible();
await expect(mainNav.getByText('Privatsphäre')).toBeVisible();
await expect(footerNav.getByText('Privacy')).not.toBeVisible();
await expect(footerNav.getByText('Privatsphäre')).toBeVisible();
});
});

0 comments on commit b715837

Please sign in to comment.