mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
20 lines
750 B
TypeScript
20 lines
750 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(() => {
|
|
utils.goToHome();
|
|
utils.setLang('en');
|
|
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);
|
|
});
|
|
});
|