mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-06-06 18:39:23 +02:00
17 lines
763 B
TypeScript
17 lines
763 B
TypeScript
const { test, expect } = require('@playwright/test');
|
|
|
|
import { goToHome, setLang } from './utils/app.utils';
|
|
|
|
test.describe('Zonemaster test FR09 - [Once a language is chosen, all other links should open in that respective language]', () => {
|
|
test.beforeEach(async ({ page })=> {
|
|
await goToHome(page);
|
|
await setLang(page, 'fr');
|
|
});
|
|
|
|
test('should keep french when opening faq page', async ({ page }) => {
|
|
await expect(page.locator('label[for="domain-input"]')).toHaveText('Nom de domaine');
|
|
await page.locator('a.nav-link[routerlink="/faq"]').click();
|
|
await expect(page.locator('main h1')).toHaveText('Questions fréquentes');
|
|
await expect(page.locator('a.nav-link[routerlink="/run-test"]')).toHaveText("Lancer un test");
|
|
});
|
|
});
|