Trying to build a webui using Ionic & Angular
This commit is contained in:
17
ui/e2e/src/app.e2e-spec.ts
Normal file
17
ui/e2e/src/app.e2e-spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AppPage } from './app.po';
|
||||
|
||||
describe('new App', () => {
|
||||
let page: AppPage;
|
||||
|
||||
beforeEach(() => {
|
||||
page = new AppPage();
|
||||
});
|
||||
describe('default screen', () => {
|
||||
beforeEach(() => {
|
||||
page.navigateTo('/Inbox');
|
||||
});
|
||||
it('should say Inbox', () => {
|
||||
expect(page.getParagraphText()).toContain('Inbox');
|
||||
});
|
||||
});
|
||||
});
|
||||
11
ui/e2e/src/app.po.ts
Normal file
11
ui/e2e/src/app.po.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
export class AppPage {
|
||||
navigateTo(destination) {
|
||||
return browser.get(destination);
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
return element(by.deepCss('app-root ion-content')).getText();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user