cypress-io / circleci-orb

Install, cache and run Cypress.io tests on CircleCI with minimal configuration.
https://circleci.com/orbs/registry/orb/cypress-io/cypress
MIT License
160 stars 101 forks source link

Edge example fails - web docs #482

Open MikeMcC399 opened 1 month ago

MikeMcC399 commented 1 month ago

Issue

The usage example published to the CircleCI website - cypress-io/cypress@3.3.1 for running Cypress against the Microsoft Edge web browser using the Cypress CircleCI Orb fails.

There is no Edge browser available, only the default Electron browser bundled with Cypress.

The failing example code is:

version: '2.1'
orbs:
  cypress: cypress-io/cypress@3
workflows:
  use-my-orb:
    jobs:
      - cypress/run:
          cypress-command: npx cypress run --browser edge
          start-command: npm run start:dev

Logs

DevTools listening on ws://127.0.0.1:33367/devtools/browser/b3d05bc3-1f27-4c8b-a846-b3991acbfb1f
Can't run because you've entered an invalid browser name.

Browser: edge was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - electron
Can't run because you've entered an invalid browser name.

Browser: edge was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - electron

Exited with code exit status 1

Previous issue

MikeMcC399 commented 1 month ago

There are also associated issues:

  1. The example source code src/examples/edge.yml doesn't work either, since cypress/run-tests has no provision for an alternate executor.
  2. The web example on https://circleci.com/developer/orbs/orb/cypress-io/cypress#usage-edge is not a copy of the example on https://github.com/cypress-io/circleci-orb/blob/master/src/examples/edge.yml so it seems that something is going wrong with the publishing process. The deployment logs however give no detail to aid debugging - see https://app.circleci.com/pipelines/github/cypress-io/circleci-orb/1929.