Set e2e tests
This commit is contained in:
@@ -7,8 +7,8 @@ describe('angular-electron App', () => {
|
|||||||
page = new AngularElectronPage();
|
page = new AngularElectronPage();
|
||||||
});
|
});
|
||||||
|
|
||||||
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.getParagraphText()).toEqual('App works !');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ export class AngularElectronPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getParagraphText() {
|
getParagraphText() {
|
||||||
return element(by.css('app-root h1')).getText();
|
return element(by.css('app-home h1')).getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
src/typings.d.ts
vendored
8
src/typings.d.ts
vendored
@@ -1,5 +1,11 @@
|
|||||||
/* SystemJS module definition */
|
/* SystemJS module definition */
|
||||||
declare var module: NodeModule;
|
declare var nodeModule: NodeModule;
|
||||||
interface NodeModule {
|
interface NodeModule {
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare var window: Window;
|
||||||
|
interface Window {
|
||||||
|
process: any;
|
||||||
|
require: any;
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,8 +11,13 @@
|
|||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"paths": {
|
"paths": {
|
||||||
"environments": [ "./environments" ]
|
"environments": [
|
||||||
|
"./environments"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
"types": [
|
||||||
|
"node"
|
||||||
|
],
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user