update aside e2e

This commit is contained in:
Adam Bradley
2015-08-18 13:42:21 -05:00
parent 34bcf3ff32
commit e4efd94482
3 changed files with 11 additions and 3 deletions

View File

@@ -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();
});

View File

@@ -23,8 +23,13 @@ class HomePage {
})
class E2EApp {
constructor() {
constructor(app: IonicApp) {
this.app = app;
this.rootView = HomePage;
}
closeMenu() {
this.app.getComponent('mainMenu').close();
}
}

View File

@@ -16,6 +16,9 @@
<ion-item>
Potatoes
</ion-item>
<ion-item (^click)="closeMenu()" id="e2eCloseMenu">
Close Menu
</ion-item>
</ion-list>
</ion-aside>