-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: match alternate edge version string format #25457
fix: match alternate edge version string format #25457
Conversation
I've been looking into this one a little more and I'm not sure if the current format of these regex in the develop branch are even correct in the first place... I get this alternate format on both my linux machine and on a MacOS machine too. Do we know if they worked prior to me raising this PR as I would like to determine if we need to still support the existing version string format? |
To further follow up im seeing it in |
ee5a41e
to
124b7a1
Compare
Just to extend from my previous message at least, the updated regex should allow for both forms of the version string, the original I'm not sure if its the most appropriate way of doing this but the regex in the PR should return the version in either form as the 1st capture group regardless allowing the downstream code to remain unchanged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to get some unit tests in the future inside browsers_spec
to validate Edge discovery seeing we don't have any, but I feel that's likely out of scope here.
* develop: chore: fix changlelog section parsing and reference right ENV (#25633) feat: Debug page [IATR] (#25488) fix(deps): update dependency underscore.string to v3.3.6 🌟 (#25574) chore: Use upstream cypress-testing-library again (#25548) fix: match alternate edge version string format (#25457) chore: update name for graphql batch operations (#25610) chore: clean up config for external contibutors (#25552) chore: fix childProcess.execSync encoding (#25625) chore: update next-version to handle using the next bump package.json… (#25599) chore: update packages/example deployment script and cleanup package/example (#25091) fix: allow version 9 of the babel-loader peer dependency (#25569) docs: remove cypress-example-todomvc-redux from release-process (#25613) chore: bump version and remove misleading changelog entry (#25612)
* fix: match alternate edge version string format (#25457) * fix: match alternate edge version string format * chore: add changelog entry * Apply suggestions from code review * Update cli/CHANGELOG.md * Update cli/CHANGELOG.md * chore: update changelog to release on Tuesday for 12.5 * [run ci] --------- Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Bill Glesias <[email protected]> * chore: Use upstream cypress-testing-library again (#25548) * chore: Use upstream cypress-testing-library again * Update cypress-example-kitchensink commit hash * Revert "Update cypress-example-kitchensink commit hash" This reverts commit 8de5d1f. --------- Co-authored-by: Emily Rohrbough <[email protected]> * fix(deps): update dependency underscore.string to v3.3.6 🌟 (#25574) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bill Glesias <[email protected]> * feat: Debug page [IATR] (#25488) Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Ankit <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: elevatebart <[email protected]> Co-authored-by: Rocky <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Mark Noonan <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: amehta265 <[email protected]> Co-authored-by: Adam Stone-Lord <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Lachlan Miller <[email protected]> * chore: fix changlelog section parsing and reference right ENV (#25633) * test: skip flaky migration test (#25378) * chore: Update README to add Cloud badges (#25645) * perf: remove reporter logs for collapsed tests in run mode (#25632) Co-authored-by: Emily Rohrbough <[email protected]> * chore: 12.5.0 release (#25648) * dependency: update dependency simple-git to v3.16.0 [security] (#25603) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> * chore: renovate semantic types and percy ci updates (#25651) --------- Co-authored-by: Steven Collins <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Bill Glesias <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: Zachary Williams <[email protected]> Co-authored-by: Ankit <[email protected]> Co-authored-by: Stokes Player <[email protected]> Co-authored-by: elevatebart <[email protected]> Co-authored-by: Rocky <[email protected]> Co-authored-by: Mark Noonan <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: amehta265 <[email protected]> Co-authored-by: Adam Stone-Lord <[email protected]> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Lachlan Miller <[email protected]> Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Matt Schile <[email protected]>
User facing changelog
Additional details
Edge was returning an alternate format for its version string which meant the browser detection version regex was not matching. This change allows the regex to match on both the original form and the new format which switches the version number and channel places arround.
Affects of this change would allow Cypress to match version strings from Edge in both
Microsoft Edge Beta 109.0.1518.49
andMicrosoft Edge 109.0.1518.49 beta
forms. This also applies to the Edge Canary and Edge Dev browsers.Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?