keycloak-scim/apps/admin-ui/cypress/support/forms/Form.ts

18 lines
349 B
TypeScript
Raw Normal View History

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");
}
}