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

20 lines
774 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR15 - [The advanced view should look the same in latest version of different browsers]', () => {
const utils = new Utils();
beforeAll(async () => {
await utils.goToHome();
await utils.setLang('en');
await utils.activeOptions();
});
it('should match the domain page with options on', () => {
expect(browser.imageComparison.checkFullPageScreen('domain_with_options')).toBeLessThan(5);
});
it('should not match the domain page with options off', () => {
element(by.css('.switch')).click(); // switch off options
expect(browser.imageComparison.checkFullPageScreen('domain_with_options')).toBeGreaterThan(5);
});
});