keycloak-scim/js/apps/admin-ui/cypress/support/pages/ViewHeaderPage.ts
Jon Koops fefe2f57ae
Use JavaScript private class features (#24054)
Uses JavaScript [private class features](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields) over TypeScript's `private` keyword. Also introduces some ESLint configuration to enforce this rule throughout the project.
2023-10-23 14:12:55 -04:00

8 lines
202 B
TypeScript

export default class ListingPage {
#actionMenu = "action-dropdown";
clickAction(action: string) {
cy.findByTestId(this.#actionMenu).click().findByTestId(action).click();
return this;
}
}