zonemaster-gui/e2e/FR11.e2e-spec.ts
2021-12-06 00:33:02 +01:00

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);
});
});