mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
21 lines
735 B
TypeScript
21 lines
735 B
TypeScript
const { test, expect } = require('@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.nav-link[routerlink="/faq"]').click();
|
|
await expect(page).toHaveURL(baseURL + '/faq');
|
|
});
|
|
|
|
test('should go to domain page', async ({ page, baseURL }) => {
|
|
await page.locator('a.nav-link[routerlink="/domain_check"]').click();
|
|
await expect(page).toHaveURL(baseURL + '/domain_check');
|
|
});
|
|
|
|
});
|