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] ESM docu update II #43731

Merged
merged 5 commits into from
Jul 22, 2024
Merged

[cypress] ESM docu update II #43731

merged 5 commits into from
Jul 22, 2024

Conversation

muhme
Copy link
Contributor

@muhme muhme commented Jul 2, 2024

Summary of Changes

With #43676 the Cypress tests are moved to ESM and the small problem has arisen that npx uses cypress.config.js in error messages, although cypress.config.mjs is used. This was 'fixed' in using npm with #43702 . Unfortunately, it turned out that:

  • npx cypress run --spec

is not replaceable by:

  • npm run cypress:run --spec

Therefore, the places that use the --spec option have been changed back to npx and a short note has been added to the Troubleshooting section.

It was also discovered that the environment variable in the sudo call was set in the wrong order, which has been corrected too.

Testing Instructions

  • Please execute all code samples with copy&paste – do they do what is documented?

Actual result BEFORE applying this Pull Request

  • Not all code samples are working as intended.

Expected result AFTER applying this Pull Request

  • All code samples are working as intended.

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

With the joomla#43702 ESM documentation update, the small problem has arisen that `npx` uses `cypress.config.js` in error messages, although `cypress.config.mjs` is used. This was 'fixed' in using `npm`.

Unfortunately, it turned out that:
* npx cypress run --spec
is not replaceable by:
* npm run cypress:run --spec
therefore changed back.

A short note has been added to the Troubleshooting section.

It was also discovered that the environment variable in the `sudo` call was set in the wrong order, which has been corrected.
@laoneo laoneo merged commit 1221ba2 into joomla:4.4-dev Jul 22, 2024
0 of 2 checks passed
@muhme muhme deleted the esm-docu-update2 branch July 24, 2024 07:27
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