mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
test(actionsheet): fix selector
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
|
||||
it('should open action sheet', function() {
|
||||
element(by.css('button')).click();
|
||||
element(by.css('.e2eOpenActionSheet')).click();
|
||||
});
|
||||
|
||||
it('should close with backdrop click', function() {
|
||||
|
@ -10,7 +10,7 @@ class IonicApp {
|
||||
this.actionSheet = actionSheet;
|
||||
}
|
||||
|
||||
openMenu() {
|
||||
openActionSheet() {
|
||||
|
||||
this.actionSheet.open({
|
||||
buttons: [
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
<ion-content padding>
|
||||
<button (click)="openMenu()">Open Action Sheet</button>
|
||||
<button class="e2eOpenActionSheet" (click)="openActionSheet()">Open Action Sheet</button>
|
||||
</ion-content>
|
||||
|
||||
<ion-overlay></ion-overlay>
|
||||
|
Reference in New Issue
Block a user