mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-01-19 20:44:13 +01:00
20 lines
715 B
TypeScript
20 lines
715 B
TypeScript
import { test, expect } from './global-setup';
|
|
|
|
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="/en/faq/"]').click();
|
|
await expect(page).toHaveURL(baseURL + '/en/faq/');
|
|
});
|
|
|
|
test('should go to domain page', async ({ page, baseURL }) => {
|
|
await page.locator('a.zm-menu__item[href="/en/"]').click();
|
|
await expect(page).toHaveURL(baseURL + '/en/');
|
|
});
|
|
});
|