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,11 +1,11 @@
|
||||
|
||||
it('should check apple via switch element click', function() {
|
||||
element(by.css('#e2eAppleCheckbox .media-switch')).click();
|
||||
element(by.css('.e2eAppleCheckbox .media-switch')).click();
|
||||
});
|
||||
|
||||
|
||||
it('should enable/check grape via buttons and submit form', function() {
|
||||
element(by.css('#e2eGrapeDisabled')).click();
|
||||
element(by.css('#e2eGrapeChecked')).click();
|
||||
element(by.css('#e2eSubmit')).click();
|
||||
element(by.css('.e2eGrapeDisabled')).click();
|
||||
element(by.css('.e2eGrapeChecked')).click();
|
||||
element(by.css('.e2eSubmit')).click();
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-switch value="apple" checked="true" ng-control="appleCtrl" id="e2eAppleCheckbox">
|
||||
<ion-switch value="apple" checked="true" ng-control="appleCtrl" class="e2eAppleCheckbox">
|
||||
Apple, value=apple, init checked
|
||||
</ion-switch>
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
</form>
|
||||
|
||||
<p aria-hidden="true" class="align-center">
|
||||
<button (click)="toggleGrapeChecked()" outline small id="e2eGrapeChecked">Grape Checked</button>
|
||||
<button (click)="toggleGrapeDisabled()" outline small id="e2eGrapeDisabled">Grape Disabled</button>
|
||||
<button (click)="doSubmit($event)" outline small id="e2eSubmit">Submit</button>
|
||||
<button (click)="toggleGrapeChecked()" outline small class="e2eGrapeChecked">Grape Checked</button>
|
||||
<button (click)="toggleGrapeDisabled()" outline small class="e2eGrapeDisabled">Grape Disabled</button>
|
||||
<button (click)="doSubmit($event)" outline small class="e2eSubmit">Submit</button>
|
||||
</p>
|
||||
|
||||
<p aria-hidden="true" padding>
|
||||
|
||||
Reference in New Issue
Block a user