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

25 lines
1.1 KiB
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './pages/app.utils';
describe('Zonemaster test GR13 - [The undelegated view should have a text describing what undelegated means?]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goTo('preDelegatedDomainCheck');
});
it('should have a link to the proper faq answer', () => {
expect(element(by.css('.alert.alert-info')).isPresent()).toBe(true);
expect(element(by.css('.alert.alert-info')).element(by.css('a')).getAttribute('routerlink')).toBe('/faq');
expect(element(by.css('.alert.alert-info')).element(by.css('a')).getAttribute('fragment')).toBe('undelegated');
});
it('should have a description text in multi languages', () => {
utils.setLang('en');
expect(element(by.css('.alert.alert-info')).element(by.css('a')).getText()).toContain('undelegated');
utils.setLang('fr');
expect(element(by.css('.alert.alert-info')).element(by.css('a')).getText()).toContain('non délégué');
utils.setLang('sv');
expect(element(by.css('.alert.alert-info')).element(by.css('a')).getText()).toContain('odelegerat domäntest');
});
});