Initial commit
This commit is contained in:
19
e2e/src/app.e2e-spec.ts
Normal file
19
e2e/src/app.e2e-spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { AppPage } from './app.po';
|
||||
|
||||
describe('new App', () => {
|
||||
let page: AppPage;
|
||||
|
||||
beforeEach(() => {
|
||||
page = new AppPage();
|
||||
});
|
||||
describe('default screen', () => {
|
||||
beforeEach(() => {
|
||||
page.navigateTo('/home');
|
||||
});
|
||||
it('should have a title saying Home', () => {
|
||||
page.getPageOneTitleText().then(title => {
|
||||
expect(title).toEqual('Home');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
15
e2e/src/app.po.ts
Normal file
15
e2e/src/app.po.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
export class AppPage {
|
||||
navigateTo(destination) {
|
||||
return browser.get(destination);
|
||||
}
|
||||
|
||||
getTitle() {
|
||||
return browser.getTitle();
|
||||
}
|
||||
|
||||
getPageOneTitleText() {
|
||||
return element(by.tagName('app-home')).element(by.deepCss('ion-title')).getText();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user