fefe2f57ae
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.
8 lines
202 B
TypeScript
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;
|
|
}
|
|
}
|