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

20 lines
640 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './pages/app.utils';
describe('Zonemaster test GR02 - [Supports French language]', () => {
const utils = new Utils();
beforeAll(() => {
utils.goToHome();
});
it('should have French language button', () => {
expect(element(by.xpath('//a[@lang="fr"]')).isPresent()).toBe(true);
});
it('should switch to French', () => {
element(by.xpath('//a[@lang="fr"]')).click();
expect(element(by.xpath('//h1[.="Nom de domaine"]')).isPresent()).toBe(true);
// expect(element(by.css('a.nav-link.active'))).toEqual('Test d\'un domaine');
});
});