zonemaster-gui/e2e/FR01.e2e-spec.ts
2021-12-06 00:33:02 +01:00

17 lines
567 B
TypeScript

import { by, browser, element } from 'protractor';
import { Utils } from './utils/app.utils';
describe('Zonemaster test FR01 - [A Home button that sends the user to the default simple view]', () => {
const utils = new Utils();
beforeAll(async () => {
await utils.goToHome();
await utils.setLang('en');
});
it('should have a link to go to home page', () => {
expect(element(by.css('a.navbar-brand')).getAttribute('routerLink')).toBe('/');
expect(element(by.css('a.navbar-brand')).getAttribute('href')).toBe(browser.baseUrl + '');
});
});