8000 Fix installJoomlaMultilingualSite by muhme · Pull Request #29 · joomla-projects/joomla-cypress · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix installJoomlaMultilingualSite #29

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

Merged

Conversation

muhme
Copy link
Contributor
@muhme muhme commented Jul 27, 2024

Finally, the custom command installJoomlaMultilingualSite deletes the installation folder. It is checked whether this was successful with 404 - Not Found.

But there are two problems:

  • Even if the files are deleted, the web server sometimes still delivers content. And then the command fails.
  • Some web servers does not answer with human readable number 404 in HTML text, e.g. one answer seen was Forbidden - You don't have permission to access this ressource. For such cases it needs to check the response status and not the page content.

This PR implements that it is tried again one second later, for 10 retries.

Additional

  • Standardisation of the coding style by omitting single remaining semicolons

Tests

This PR was extensively tested based on joomla-cpress 1.1.0 together with #28 on:

  • Intel macOS 14.5 Sonoma native with Joomla 4.4-dev
  • Intel macOS 14.5 Sonoma docker-based with Joomla 4.4-dev, 5.1-dev, 5.2-dev and 6.0-dev
  • Windows 11 Pro Laragon with Joomla 5.1-dev
  • Windows 11 Pro WSL 2 docker-based with Joomla 4.4-dev, 5.1-dev, 5.2-dev and 6.0-dev

👉 The custom command installJoomlaMultilingualSite is actual not used in Joomla System Tests.

muhme added 4 commits June 19, 2024 09:58
When the files are deleted, the web server sometimes still delivers content
and does not fail as expected with 404 - Not Found.
In such cases, we try again one second later for 10 retries.
@laoneo laoneo merged commit 84390f0 into joomla-projects:main Aug 6, 2024
@laoneo
Copy link
Contributor
laoneo commented Aug 6, 2024

Thanks!

@muhme muhme deleted the fix-installJoomlaMultilingualSite branch August 6, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0