I'm very fresh to the angular testing and please help to write the protractor angular e2e testing code to below term and condition checkbox.
create profile button will be enable when the check box is clicked only.
//when clicked the checkbox
<md-checkbox ng-model="terms" aria-label="Terms & Conditions" required="" tabindex="0" type="checkbox" role="checkbox" class="md-checked ng-not-empty ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" aria-required="true" aria-checked="true" aria-invalid="false" style=""><div class="md-container md-ink-ripple" md-ink-ripple="" md-ink-ripple-checkbox=""><div class="md-icon"></div><div class="md-ripple-container"></div></div><div ng-transclude="" class="md-label"><span class="ng-scope">
I agree to example</span><a target="_blank" href="https://example.com/" class="ng-scope">Terms & Conditions</a>
</div></md-checkbox>
//when not clicked the checkbox
<md-checkbox ng-model="terms" aria-label="Terms & Conditions" required="" tabindex="0" type="checkbox" role="checkbox" class="ng-dirty ng-valid-parse ng-touched ng-empty ng-invalid ng-invalid-required" aria-required="true" aria-checked="false" aria-invalid="true" style=""><div class="md-container md-ink-ripple" md-ink-ripple="" md-ink-ripple-checkbox=""><div class="md-icon"></div><div class="md-ripple-container"></div></div><div ng-transclude="" class="md-label"><span class="ng-scope">
I agree to example </span><a target="_blank" href="https://example.com/" class="ng-scope">Terms & Conditions</a>
</div></md-checkbox>
Aucun commentaire:
Enregistrer un commentaire