Unit/System Tests PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar muhme
muhme
7 Mar 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

avatar muhme muhme - open - 7 Mar 2025
avatar muhme muhme - change - 7 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Mar 2025
Category JavaScript Unit Tests
avatar brianteeman
brianteeman - comment - 7 Mar 2025

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

avatar laoneo
laoneo - comment - 7 Mar 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.

avatar laoneo laoneo - change - 7 Mar 2025
Labels Added: Unit/System Tests PR-5.3-dev
avatar laoneo laoneo - change - 8 Mar 2025
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-03-08 05:53:04
Closed_By laoneo
avatar laoneo laoneo - close - 8 Mar 2025
avatar laoneo laoneo - merge - 8 Mar 2025
avatar laoneo
laoneo - comment - 8 Mar 2025

Thanks!

Add a Comment

Login with GitHub to post a comment