keycloak-scim/cypress/support/pages/admin_console/manage/authentication/DuplicateFlowModal.ts
2021-10-14 16:54:07 +02:00

15 lines
428 B
TypeScript

export default class DuplicateFlowModal {
private aliasInput = "alias";
private descriptionInput = "description";
private confirmButton = "confirm";
fill(name?: string, description?: string) {
if (name) {
cy.findByTestId(this.aliasInput).clear().type(name);
if (description) cy.get(this.descriptionInput).type(description);
}
cy.findByTestId(this.confirmButton).click();
return this;
}
}