Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cypress] Rename deleteFolder to clarify function #43663

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

muhme
Copy link
Contributor

@muhme muhme commented Jun 17, 2024

Summary of Changes

  • rename deleteFolder > deleteRelativePath
    • to respect the custom task also deletes files and it does it relative to cmsPath
  • rename writeFile > writeRelativeFile
    • to unify task naming and to clarify it writes files relative to cmsPath
  • additional:
    • small comment enhancements
    • using name path from require('path');
  • no functionality is changed
  • only method name, variable name and comments are changed

Testing Instructions

  • Tested on branch dev-4.4 successfully in running full System Test
  1. Run full System Test:
npx cypress run
  1. Verify task names are changed in tests/System/README.md

Actual result BEFORE applying this Pull Request

./.

Expected result AFTER applying this Pull Request

The system tests are running successfully with the renamed user-defined tasks and the README has been updated.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

- rename deleteFolder > deleteRelativePath
  - to respect the custom task also deletes files and it does it relative to cmsPath
- rename writeFile > writeRelativeFile
  - to unify task naming and to clarify it write relative to cmsPath
- additinal:
  - small comment enhancements
  - using const name 'path' from require('path');

- no functionality is changed, only method name, variable name and comment changes
- this is a follow-up to PR joomla#43656
- tested on branch dev-4.4 successfully
@laoneo laoneo merged commit 6de4a74 into joomla:4.4-dev Jun 20, 2024
3 checks passed
@laoneo
Copy link
Member

laoneo commented Jun 20, 2024

Thanks!

@laoneo laoneo added this to the Joomla! 4.4.6 milestone Jun 20, 2024
LadySolveig added a commit to LadySolveig/joomla-cms that referenced this pull request Jun 20, 2024
LadySolveig added a commit to LadySolveig/joomla-cms that referenced this pull request Jun 20, 2024
laoneo added a commit that referenced this pull request Jun 24, 2024
* [4.4] Move the Cypress Tests to ESM

* drone  signature

* resolve conflicts with #43663 - part 2

* Fix path.join

* Fix path.join - 2

* Fix import join from path

* Remove the forgotten commented out orginial imports from plugin/index.js

---------

Co-authored-by: Allon Moritz <allon.moritz@digital-peak.com>
@muhme muhme deleted the cypress-rename-deleteFolder branch July 12, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants