mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
ion-list-header directive
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
|
||||
it('should toggle checkbox state with label click', function() {
|
||||
element(by.css('#appleLabel')).click();
|
||||
it('should check apple via checkbox element click', function() {
|
||||
element(by.css('#e2eAppleCheckbox')).click();
|
||||
});
|
||||
|
||||
|
||||
it('should enable/check grape via buttons', function() {
|
||||
element(by.css('#e2eGrapeDisabled')).click();
|
||||
element(by.css('#e2eGrapeChecked')).click();
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-checkbox value="apple" checked="true" ng-control="appleCtrl">
|
||||
<ion-checkbox value="apple" checked="true" ng-control="appleCtrl" id="e2eAppleCheckbox">
|
||||
Apple, value=apple, init checked
|
||||
</ion-checkbox>
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
</form>
|
||||
|
||||
<p aria-hidden="true" class="align-center">
|
||||
<button (click)="toggleGrapeChecked()" outline primary small>Grape Checked</button>
|
||||
<button (click)="toggleGrapeDisabled()" outline primary small>Grape Disabled</button>
|
||||
<button (click)="toggleGrapeChecked()" outline primary small id="e2eGrapeChecked">Grape Checked</button>
|
||||
<button (click)="toggleGrapeDisabled()" outline primary small id="e2eGrapeDisabled">Grape Disabled</button>
|
||||
<button (click)="doSubmit($event)" outline primary small>Submit</button>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user