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

24 lines
957 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR10 - [On launching the URL opens with a default simple view]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goToHome();
});
it('should have [Domain name] label visible', () => {
expect(element(by.xpath('//h1[(.="Domain name")]')).isPresent()).toBe(true);
});
it('should have [Options] label visible and NOT selected', () => {
expect(element(by.xpath('//label[contains(., "Options")]')).isPresent()).toBe(true);
expect(element(by.css('.switch')).isSelected()).toBe(false);
});
it('should have [Nameservers label] NOT visible', () => {
expect(element(by.xpath('//legend[contains(., "Nameservers")]')).isPresent()).toBe(false);
});
it('should have [Digests] NOT visible', () => {
expect(element(by.xpath('//legend[contains(., "Digests")]')).isPresent()).toBe(false);
});
});