zonemaster-gui/e2e/FR02.e2e-spec.ts
Tobias Bleckert a04eb06251 More test fixes
2025-05-13 11:30:01 +02:00

20 lines
705 B
TypeScript

import { test, expect } from '@playwright/test';
import { goToHome, setLang } from './utils/app.utils';
test.describe('Zonemaster test FR02 - [All menus should be clickable in latest version of different browsers]', () => {
test.beforeEach(async ({ page }) => {
await goToHome(page);
await setLang(page, 'en');
});
test('should go to faq page', async ({ page, baseURL }) => {
await page.locator('a.zm-menu__item[href="/faq/"]').click();
await expect(page).toHaveURL(baseURL + '/faq/');
});
test('should go to domain page', async ({ page, baseURL }) => {
await page.locator('a.zm-menu__item[href="/"]').click();
await expect(page).toHaveURL(baseURL + '/');
});
});