keycloak-scim/apps/admin-ui/cypress/support/forms/Form.ts
2023-02-07 12:00:34 +01:00

17 lines
349 B
TypeScript

export default class Form {
static assertSaveButtonEnabled() {
this.#getSaveButton().should("be.enabled");
}
static assertSaveButtonDisabled() {
this.#getSaveButton().should("be.disabled");
}
static clickSaveButton() {
this.#getSaveButton().click();
}
static #getSaveButton() {
return cy.findByTestId("save");
}
}