2017-05-21 02:16:09 +02:00
|
|
|
import {browser, element, by} from 'protractor';
|
|
|
|
|
|
|
|
|
2017-05-21 03:59:27 +02:00
|
|
|
describe('Main Page Access', function () {
|
2017-05-21 02:16:09 +02:00
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
browser.get('/')
|
|
|
|
});
|
|
|
|
|
2017-05-21 03:59:27 +02:00
|
|
|
it('should open army overview initially', async() => {
|
|
|
|
let elem = element(by.css('h1'));
|
|
|
|
let text = elem.getText();
|
|
|
|
expect(text).toBe("Übersicht über alle Spieler, Squads und Armeen");
|
2017-05-21 02:16:09 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|