From 2db7625a8289a925c581808708b87687723bae03 Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Fri, 28 Jun 2024 14:18:10 -0700 Subject: [PATCH] Backport missing e2e test function `expectToBeDisabled()` Signed-off-by: Phillip Rak --- cypress/e2e/po/components/async-button.po.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/e2e/po/components/async-button.po.ts b/cypress/e2e/po/components/async-button.po.ts index b173088893c..575551555d1 100644 --- a/cypress/e2e/po/components/async-button.po.ts +++ b/cypress/e2e/po/components/async-button.po.ts @@ -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'); }