Set e2e tests

This commit is contained in:
Maxime GRIS
2017-05-06 00:45:37 +02:00
parent c434f8a8b0
commit d2239745a2
4 changed files with 16 additions and 5 deletions

View File

@@ -7,8 +7,8 @@ describe('angular-electron App', () => {
page = new AngularElectronPage();
});
it('should display message saying app works', () => {
it('should display message saying App works !', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
expect(page.getParagraphText()).toEqual('App works !');
});
});

View File

@@ -6,6 +6,6 @@ export class AngularElectronPage {
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
return element(by.css('app-home h1')).getText();
}
}

8
src/typings.d.ts vendored
View File

@@ -1,5 +1,11 @@
/* SystemJS module definition */
declare var module: NodeModule;
declare var nodeModule: NodeModule;
interface NodeModule {
id: string;
}
declare var window: Window;
interface Window {
process: any;
require: any;
}

View File

@@ -11,8 +11,13 @@
"allowJs": true,
"target": "es5",
"paths": {
"environments": [ "./environments" ]
"environments": [
"./environments"
]
},
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
],