Skip to content

[53][Cypress] Don't Force SSL#45089

Merged
laoneo merged 2 commits intojoomla:5.3-devfrom
muhme:53-cypress-dont-force-ssl
Mar 8, 2025
Merged

[53][Cypress] Don't Force SSL#45089
laoneo merged 2 commits intojoomla:5.3-devfrom
muhme:53-cypress-dont-force-ssl

Conversation

@muhme
Copy link
Contributor

@muhme muhme commented Mar 7, 2025

Summary of Changes

With #44850 during Joomla installation the configuration parameter force_ssl is set to 2 (Force HTTP Entire Site). This prevents the Joomla System Tests from running on HTTP. And as the test shows it is not necessary for the Joomla System Tests. Even without explicit setting the parameter force_ssl the Joomla System Tests can be run over either HTTP or HTTPS.

Testing Instructions

Run Joomla System Tests once with HTTP and once with HTTPS by web server setup and configuring baseUrl in cypress.config.mjs accordingly.

Actual result BEFORE applying this Pull Request

  • On HTTP the Joomla System Tests
    • install/Installation.cy.js and API tests are working
    • ❌ 94 of 134 tests are failing with network error, e.g. administrator/components/com_banners/Banner.cy.js
  • ✅ On HTTPS the Joomla System Tests are passing successfully

Expected result AFTER applying this Pull Request

  • ✅ On HTTP the Joomla System Tests are passing successfully
  • ✅ On HTTPS the Joomla System Tests are passing successfully

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 joomla#44850 during Joomla installation the configuration parameter `force_ssl` is set to 2 (Force HTTP Entire Site).
This prevents the Joomla System Tests from running with HTTP. And as the test shows it is not necessary for the Joomla System Tests.
Even without explicit setting the parameter `force_ssl` the Joomla System Tests can be run over either HTTP or HTTPS.
@brianteeman
Copy link
Contributor

its pointless to run tests on http as NO real site will ever run on HTTP in 2025

moreover running on HTTP prevents several real tests from running correctly

@laoneo
Copy link
Member

laoneo commented Mar 7, 2025

It is ok to remove the restriction. Like that you are able to define only with the base url in the cypress config if the tests should run on http or https. It would even be better to actually create a test if this flag works the way it is expected.

@laoneo laoneo merged commit a589d2d into joomla:5.3-dev Mar 8, 2025
3 checks passed
@laoneo
Copy link
Member

laoneo commented Mar 8, 2025

Thanks!

@laoneo laoneo added this to the Joomla! 5.3.0 milestone Mar 8, 2025
@muhme muhme deleted the 53-cypress-dont-force-ssl branch March 8, 2025 05:53
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.

4 participants