cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.

Home Page:https://cypress.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress not finding beta/dev builds of Edge on linux

CarbonCollins opened this issue · comments

Current behavior

After installing Edge Beta and Edge Dev on my machine I do not see them listed as an option to run my E2E tests against. The Stable version does appear in the UI with no issues.

Desired behavior

After installing Edge Beta and Edge Dev on my machine I should see them listed as an option to run my E2E tests against
Test code to reproduce

Test code to reproduce

There is no test code to run as the bug appears before any tests are run.

Cypress Version

12.4.1

Node version

v18.12.1

Operating System

Manjaro Linux 6.0.15-1-MANJARO

Debug Logs

No response

Other

After looking into how Cypress knows about browsers I noticed two potential issues with the version regex in the packages/launcher/lib/browsers.ts file and the binary names.

For the version regex I'm not sure if this would be the cause of the issue but the regex for Edge Dev is /Microsoft Edge Dev (\S+)/m and for Edge Beta is /Microsoft Edge Beta (\S+)/m but when running /usr/bin/microsoft-edge-dev --version it returns Microsoft Edge 110.0.1587.6 dev which would not match the regex string. This is the same for the beta version where it returns Microsoft Edge 109.0.1518.49 beta

Re-opened issue as the previous one #25455 was closed upon release with only 1 of the fixes merged

The remaining PR that solves the version matching: #25457

@CarbonCollins oh shoot....this was not expected to have been a 2 part PR. The summary text partially closes https://github.com/cypress-io/cypress/issues/25455 automatically closed this issue as resolved.

It happens :D

Just so the two issues are linked at least ill mention the other on here #25455