ion-list-header directive

This commit is contained in:
Adam Bradley
2015-08-06 15:51:07 -05:00
parent b8e08a442a
commit 782723ca84
12 changed files with 75 additions and 35 deletions

View File

@@ -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();
});

View File

@@ -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>