mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-02-04 13:16:08 +08:00
update aside e2e
This commit is contained in:
@@ -4,6 +4,6 @@ it('should toggle open aside', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should toggle close aside', function() {
|
||||
element(by.css('#e2eHeaderToggleAside')).click();
|
||||
it('should close aside', function() {
|
||||
element(by.css('#e2eCloseMenu')).click();
|
||||
});
|
||||
|
||||
@@ -23,8 +23,13 @@ class HomePage {
|
||||
})
|
||||
class E2EApp {
|
||||
|
||||
constructor() {
|
||||
constructor(app: IonicApp) {
|
||||
this.app = app;
|
||||
this.rootView = HomePage;
|
||||
}
|
||||
|
||||
closeMenu() {
|
||||
this.app.getComponent('mainMenu').close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
<ion-item>
|
||||
Potatoes
|
||||
</ion-item>
|
||||
<ion-item (^click)="closeMenu()" id="e2eCloseMenu">
|
||||
Close Menu
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-aside>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user