How can I test that a button is disabled after filling forms data?
<button id="ref_button" type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
I am using protractor an dcucmber and Chai to write the exectation. Ii fill teh data during atest and what I exepct is this:
dom.window.document.getElementById("ref_button").should.have.attr("[disabled]");
Aucun commentaire:
Enregistrer un commentaire