From b7158378e610acc6038b51c23bcfeeed5deb3616 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Tue, 13 Feb 2024 21:35:10 +0100 Subject: [PATCH] refactor: fix wrong variable naming in menu integration test --- tests/e2e/specs/menus.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/specs/menus.spec.ts b/tests/e2e/specs/menus.spec.ts index 53ea7d564..787209638 100644 --- a/tests/e2e/specs/menus.spec.ts +++ b/tests/e2e/specs/menus.spec.ts @@ -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(); }); });