mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
feat(demo): add demo Angular application
This commit is contained in:
15
packages/angular/demo/e2e/home.po.ts
Normal file
15
packages/angular/demo/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('/');
|
||||
}
|
||||
|
||||
getTitle() {
|
||||
return element(by.css('.title')).getText();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user