zonemaster-gui/e2e/FR05-da.e2e-spec.ts
2021-06-01 12:04:42 +02:00

20 lines
533 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR05-da - [Supports Danish language]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goToHome();
});
it('should have Danish language button', () => {
expect(element(by.xpath('//a[@lang="da"]')).isPresent()).toBe(true);
});
it('should switch to Danish', () => {
utils.setLang('da');
expect(element(by.xpath('//h1[.="Domænenavn"]')).isPresent()).toBe(true);
});
});