keycloak-scim/cypress/support/pages/admin_console/manage/authentication/OTPPolicies.ts

27 lines
596 B
TypeScript
Raw Normal View History

2021-12-13 10:39:41 +00:00
export default class OTPPolicies {
goToTab() {
2022-06-22 11:35:10 +00:00
cy.findAllByTestId("policies").click().get("#pf-tab-2-otpPolicy").click();
2021-12-13 10:39:41 +00:00
return this;
}
setPolicyType(type: string) {
cy.findByTestId(type).click();
return this;
}
increaseInitialCounter() {
cy.get('#initialCounter > .pf-c-input-group > [aria-label="Plus"]').click();
return this;
}
checkSupportedActions(supportedActions: string) {
cy.findByTestId("supportedActions").should("have.value", supportedActions);
return this;
}
save() {
cy.findByTestId("save").click();
return this;
}
}