mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
aside e2e
This commit is contained in:
9
ionic/components/aside/test/basic/e2e.ts
Normal file
9
ionic/components/aside/test/basic/e2e.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
it('should toggle open aside', function() {
|
||||
element(by.css('#e2eToggleAside')).click();
|
||||
});
|
||||
|
||||
|
||||
it('should toggle close aside', function() {
|
||||
element(by.css('#e2eToggleAside')).click();
|
||||
});
|
||||
@@ -4,4 +4,10 @@ import {App} from 'ionic/ionic';
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class IonicApp {}
|
||||
class IonicApp {
|
||||
|
||||
toggleAside() {
|
||||
console.log('toggleAside')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,13 +16,14 @@
|
||||
</ion-list>
|
||||
</ion-aside>
|
||||
|
||||
<ion-content #content>
|
||||
<ion-content #content class="padding">
|
||||
|
||||
<h2>Content</h2>
|
||||
|
||||
<p>
|
||||
<button id="e2eToggleAside" primary (click)="toggleAside()">Toggle Aside</button>
|
||||
</p>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<!--
|
||||
<ion-aside side="right" [content]="content" style="background-color: green">
|
||||
<h2 style="color: white">RIGHT</h2>
|
||||
</ion-aside>
|
||||
-->
|
||||
</ion-view>
|
||||
|
||||
Reference in New Issue
Block a user