Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(e2e): Use POM Pattern (#31512)
### Parent Issue #31493 ### Proposed Changes This pull request includes several changes to the `e2e/dotcms-e2e-node/frontend` directory, focusing on renaming files, updating imports, and refactoring classes to improve code readability and maintainability. The most important changes include the renaming of utility files to page objects, updating the ESLint configuration, and removing redundant parameters from methods. ### File Renaming and Class Refactoring: * Renamed `accessibilityUtils.ts` to `accessibility.page.ts` and refactored `accessibilityUtils` class to `AccessibilityPage` with updated constructor and method signatures. * Renamed `contentUtils.ts` to `content.page.ts` and refactored `ContentUtils` class to `ContentPage` with removed redundant `page` parameter from methods. [[1]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L8-R27) [[2]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L58) [[3]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L67-R89) [[4]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L129-R136) [[5]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L152-R165) [[6]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L185-R177) [[7]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L233-R227) [[8]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L264-R252) [[9]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L291-R287) [[10]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L309-L323) [[11]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L333-R327) [[12]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L356-R339) [[13]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L382-R364) [[14]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L413) [[15]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L424-R409) [[16]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L458-R442) [[17]](diffhunk://#diff-14c98255d020377d45cd4c99080be3f77cedadb51f795a6cfbb2ed2c0eabab35L479) ### ESLint Configuration: * Added a new script `ts:check` to the `package.json` for TypeScript checking. ### Code Formatting and Cleanup: * Fixed trailing comma issue in `defaultContentType.ts`. * Updated the `ContentTypeFormPage` class for better readability by reformatting locator definitions. ### Export Updates: * Added exports for several page objects in `index.ts` to streamline imports across the project. ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable)
- Loading branch information