18 lines
762 B
TypeScript
18 lines
762 B
TypeScript
|
|
import {test, expect} from './global-setup';
|
||
|
|
|
||
|
|
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('input[name="domain"]')).toHaveAttribute('placeholder', 'Nom de domaine');
|
||
|
|
await page.goto('/fr/faq/');
|
||
|
|
await expect(page.locator('main h1')).toHaveText('Questions fréquentes');
|
||
|
|
await expect(page.locator('a.zm-menu__item[href$="/fr/"]')).toHaveText("Démarrer un test");
|
||
|
|
});
|
||
|
|
});
|