-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(e2e): Move Code into src Folder for Better Organization (#31505
) ### Parent Issue #31504 ### Proposed Changes This pull request includes several changes to improve the organization and import paths of the end-to-end (E2E) test files in the `dotcms-e2e-node` frontend project. The most important changes involve renaming directories and updating import paths to use aliases for better maintainability and readability. Directory and file structure changes: * Renamed the `e2e/dotcms-e2e-node/frontend/pages` directory to `e2e/dotcms-e2e-node/frontend/src/pages` and updated the paths accordingly. (`[e2e/dotcms-e2e-node/frontend/src/pages/listingContentTypes.pages.tsL2-R2](diffhunk://#diff-014d304e7a539457bd4c8fff2c9192b089340dcd1a69370e64118e8073c8d2c2L2-R2)`) * Renamed the `e2e/dotcms-e2e-node/frontend/tests` directory to `e2e/dotcms-e2e-node/frontend/src/tests` and updated the paths accordingly. (`[[1]](diffhunk://#diff-29922bdcd9462a057fcd1b7a617e2a8b6a26e88c6d392a495895ac10f3dd2438L5-R10)`, `[[2]](diffhunk://#diff-a3f281f417d2e319f033b783619addd3e6ce17396cf87d66b32a27a45494ac9cL5-R16)`, `[[3]](diffhunk://#diff-a6a51a1183a9184ea790646a476dd07a3118fc332dd118d91e73987a065c875cL3-R3)`) Import path updates: * Updated import paths in `e2e/dotcms-e2e-node/frontend/src/pages/listingContentTypes.pages.ts` to use aliases (`@utils/api`). (`[e2e/dotcms-e2e-node/frontend/src/pages/listingContentTypes.pages.tsL2-R2](diffhunk://#diff-014d304e7a539457bd4c8fff2c9192b089340dcd1a69370e64118e8073c8d2c2L2-R2)`) * Updated import paths in `e2e/dotcms-e2e-node/frontend/src/tests/contentSearch/contentEditing.spec.ts` to use aliases (`@utils/dotCMSUtils`, `@locators/navigation/menuLocators`). (`[e2e/dotcms-e2e-node/frontend/src/tests/contentSearch/contentEditing.spec.tsL5-R10](diffhunk://#diff-29922bdcd9462a057fcd1b7a617e2a8b6a26e88c6d392a495895ac10f3dd2438L5-R10)`) * Updated import paths in `e2e/dotcms-e2e-node/frontend/src/tests/contentSearch/portletIntegrity.spec.ts` to use aliases (`@utils/dotCMSUtils`, `@locators/globalLocators`, `@locators/navigation/menuLocators`). (`[e2e/dotcms-e2e-node/frontend/src/tests/contentSearch/portletIntegrity.spec.tsL5-R16](diffhunk://#diff-a3f281f417d2e319f033b783619addd3e6ce17396cf87d66b32a27a45494ac9cL5-R16)`) * Updated import paths in `e2e/dotcms-e2e-node/frontend/src/tests/login/translations.spec.ts` to use aliases (`@utils/dotCMSUtils`). (`[e2e/dotcms-e2e-node/frontend/src/tests/login/translations.spec.tsL3-R3](diffhunk://#diff-a6a51a1183a9184ea790646a476dd07a3118fc332dd118d91e73987a065c875cL3-R3)`) * Updated import paths in `e2e/dotcms-e2e-node/frontend/src/utils/contentUtils.ts` to use aliases (`@locators/globalLocators`). (`[e2e/dotcms-e2e-node/frontend/src/utils/contentUtils.tsL7-R7](diffhunk://#diff-9db0bb632d4d5a4d318659569358e671b816bcd7549f3fc46df4477bb5d2544bL7-R7)`) Test directory configuration: * Changed the `testDir` configuration in `e2e/dotcms-e2e-node/frontend/playwright.config.ts` to point to the new `src/tests` directory. (`[e2e/dotcms-e2e-node/frontend/playwright.config.tsL41-R41](diffhunk://#diff-2db21369684b5f6dd698eb7a6eb71c0d0a92d245e61e26ed3a3c33bed5f6d0faL41-R41)`) ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable)
- Loading branch information
Showing
22 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ontend/pages/listingContentTypes.pages.ts → ...nd/src/pages/listingContentTypes.pages.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...frontend/tests/login/translations.spec.ts → ...tend/src/tests/login/translations.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ms-e2e-node/frontend/utils/dotCMSUtils.ts → ...2e-node/frontend/src/utils/dotCMSUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters