zonemaster-gui/e2e/GR09.e2e-spec.ts
Pierre-Aymeric Masse 143f0abeae first commit
2018-06-21 09:10:55 +02:00

19 lines
747 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './pages/app.utils';
describe('Zonemaster test GR09 - [The advanced view should look the same in latest version of different browsers]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goToHome();
element(by.css('.switch')).click();
});
it('should match the domain page with advanced options on', () => {
expect(browser.protractorImageComparison.checkScreen('domain.advanced_options')).toBeLessThan(1);
});
it('should not match the domain page with advanced options off', () => {
element(by.css('.switch')).click();
expect(browser.protractorImageComparison.checkScreen('domain.advanced_options')).not.toBeLessThan(1);
});
});