zonemaster-gui/e2e/FR12.e2e-spec.ts

21 lines
862 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR12 - [The simple view should support an advanced view expanding when the checkbox is enabled]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goToHome();
utils.setLang('en');
});
it('should have [IPv4 checkbox] && [IPv6 checkbox] NOT visible', () => {
expect(element(by.css('label[for="protocol_ipv4"]')).isPresent()).toBe(false);
expect(element(by.css('label[for="protocol_ipv6"]')).isPresent()).toBe(false);
});
it('should have [IPv4 checkbox] & [IPv6 checkbox] visible', () => {
element(by.css('.switch')).click();
expect(element(by.css('label[for="protocol_ipv4"]')).isPresent()).toBe(true);
expect(element(by.css('label[for="protocol_ipv6"]')).isPresent()).toBe(true);
});
});