zonemaster-gui/e2e/FR11.e2e-spec.ts
Gaël Berthaud-Müller 7bf74c5561 migrate tests 01 to 21
2022-02-14 13:15:18 +01:00

19 lines
663 B
TypeScript

const { test, expect } = require('@playwright/test');
import { goToHome, setLang, showOptions } from './utils/app.utils';
test.describe('Zonemaster test FR11 - [The simple view should look the same in latest version of different browsers]', () => {
test.beforeEach(async ({ page }) => {
await goToHome(page);
await setLang(page, 'en');
});
test('should match the domain page', async ({ page}) => {
expect(await page.screenshot()).toMatchSnapshot('domain.png');
});
test('should not match the domain page', async({ page }) => {
await showOptions(page);
expect(await page.screenshot()).not.toMatchSnapshot('domain.png');
});
});