mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): use class selectors in e2e
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
it('should open alert', function() {
|
||||
element(by.css('#e2eOpenAlert')).click();
|
||||
element(by.css('.e2eOpenAlert')).click();
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ it('should close alert', function() {
|
||||
|
||||
|
||||
it('should open prompt', function() {
|
||||
element(by.css('#e2eOpenPrompt')).click();
|
||||
element(by.css('.e2eOpenPrompt')).click();
|
||||
});
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ it('should close prompt', function() {
|
||||
|
||||
|
||||
it('should open confirm', function() {
|
||||
element(by.css('#e2eOpenConfirm')).click();
|
||||
element(by.css('.e2eOpenConfirm')).click();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<ion-content padding>
|
||||
|
||||
<button id="e2eOpenAlert" (click)="doAlert()">Alert</button>
|
||||
<button id="e2eOpenPrompt" (click)="doPrompt()">Prompt</button>
|
||||
<button id="e2eOpenConfirm" (click)="doConfirm()">Confirm</button>
|
||||
<button class="e2eOpenAlert" (click)="doAlert()">Alert</button>
|
||||
<button class="e2eOpenPrompt" (click)="doPrompt()">Prompt</button>
|
||||
<button class="e2eOpenConfirm" (click)="doConfirm()">Confirm</button>
|
||||
|
||||
<pre>
|
||||
Alert Opened: {{alertOpen}}
|
||||
|
||||
Reference in New Issue
Block a user