Fix end to end tests to actually run and test something
This commit is contained in:
parent
21fb03bacf
commit
dada7384c2
3 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { CoreUIPage } from './app.po';
|
import { CoreUIPage } from './app.po';
|
||||||
|
|
||||||
describe('core-ui App', function() {
|
describe('LocalLoop App', () => {
|
||||||
let page: CoreUIPage;
|
let page: CoreUIPage;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -9,6 +9,6 @@ describe('core-ui App', function() {
|
||||||
|
|
||||||
it('should display message saying app works', () => {
|
it('should display message saying app works', () => {
|
||||||
page.navigateTo();
|
page.navigateTo();
|
||||||
expect(page.getParagraphText()).toEqual('app works!');
|
expect(page.getLoginHeaderText()).toEqual('Login');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { browser, element, by } from 'protractor/globals';
|
import { browser, element, by } from 'protractor';
|
||||||
|
|
||||||
export class CoreUIPage {
|
export class CoreUIPage {
|
||||||
navigateTo() {
|
navigateTo() {
|
||||||
return browser.get('/');
|
return browser.get('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
getParagraphText() {
|
getLoginHeaderText() {
|
||||||
return element(by.css('app-root h1')).getText();
|
return element(by.css('app-root h1')).getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"outDir": "../out-tsc/e2e",
|
"outDir": "../out-tsc/e2e",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"types":[
|
"types": [
|
||||||
"jasmine",
|
"jasmine",
|
||||||
"node"
|
"node"
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue