Skip to content

Commit

Permalink
Backport missing e2e test function expectToBeDisabled()
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
  • Loading branch information
rak-phillip committed Jun 28, 2024
1 parent 523f4b6 commit 2db7625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/po/components/async-button.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export default class AsyncButtonPo extends ComponentPo {
return this.self().click({ force });
}

expectToBeDisabled(): Cypress.Chainable {
return this.self().should('have.attr', 'disabled', 'disabled');
}

expectToBeEnabled(): Cypress.Chainable {
return this.self().should('not.have.attr', 'disabled');
}
Expand Down

0 comments on commit 2db7625

Please sign in to comment.