mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
20 lines
682 B
TypeScript
20 lines
682 B
TypeScript
import { by, browser, element } from 'protractor';
|
|
|
|
import { Utils } from './utils/app.utils';
|
|
|
|
describe('Zonemaster test FR11 - [The simple view should look the same in latest version of different browsers]', () => {
|
|
const utils = new Utils();
|
|
beforeAll(async () => {
|
|
await utils.goToHome();
|
|
await utils.setLang('en');
|
|
});
|
|
|
|
it('should match the domain page', async() => {
|
|
expect(await browser.imageComparison.checkFullPageScreen('domain')).toBeLessThan(5);
|
|
});
|
|
|
|
it('should not match the domain page', async() => {
|
|
element(by.css('.switch')).click();
|
|
expect( await browser.imageComparison.checkFullPageScreen('domain')).toBeGreaterThan(5);
|
|
});
|
|
});
|