mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
refactor(demo): move the demo app
This commit is contained in:
15
packages/demos/angular/e2e/home.po.ts
Normal file
15
packages/demos/angular/e2e/home.po.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { browser, by, element } from 'protractor';
|
||||
|
||||
export class HomePage {
|
||||
navigateTo() {
|
||||
return browser.get('/home');
|
||||
}
|
||||
|
||||
navigateToRoot() {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
||||
getTitleText() {
|
||||
return element(by.css('.title')).getText();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user