zonemaster-gui/e2e/FR02.e2e-spec.ts
Alexandre Pion 01a67f847f Update UI and API
* API: move `check` to `run-test`
* UI: update strings refering to "domain check" to "run test"
* adapt e2e tests
2022-11-25 10:50:42 +01:00

21 lines
733 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 + '/en/faq');
});
test('should go to domain page', async ({ page, baseURL }) => {
await page.locator('a.nav-link[routerlink="/run-test"]').click();
await expect(page).toHaveURL(baseURL + '/en/run-test');
});
});