bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
88 stars 20 forks source link

WordPress release candidates compatibility issues #138

Open marko-medic96 opened 3 months ago

marko-medic96 commented 3 months ago

Describe the bug WP-Cypress does not recognize WP release candidate versions when passed inside cypress.config.js file.

To Reproduce Steps to reproduce the behavior:

  1. Open cypress.config.js
  2. Set WP release candidate, eg: 6.6-RC3 as wordpress version
  3. Run cypress tests

Expected behavior Cypress tests should run as expected

Screenshots

Screenshot from 2024-07-16 11-49-08

Desktop (please complete the following information):

Additional context It looks to me that issue is within lib/modules/verifyWPVersion.js file which looks for locale version of WP instead of non-locale. So, when we visit this URL (non-locale), we can see WP hash: https://wordpress.org/wordpress-6.6-RC3.zip.md5 But in this one (locale version) we cannot see WP hash: https://wordpress.org/wordpress-6.6-RC3.zip.md5