Bug 1874895 - "chrome" hardcoded for Cypress integration tests
Summary: "chrome" hardcoded for Cypress integration tests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.6
Hardware: Unspecified
OS: All
low
low
Target Milestone: ---
: 4.6.0
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-02 14:12 UTC by Hiro Miyamoto
Modified: 2020-10-27 16:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:37:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6481 0 None open Bug 1874895: Enabling use of $BRIDGE_E2E_BROWSER_NAME with Cypress 2020-09-02 18:45:52 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:37:26 UTC

Description Hiro Miyamoto 2020-09-02 14:12:08 UTC
Description of problem:
When running Cypress-based integration tests, it always runs with "chrome," and there is no easy way to run them with "firefox" as one can do with Protractor.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. export BRIDGE_E2E_BROWSER_NAME=firefox
2. ./test-cypress.sh
3.

Actual results:
Cypress would run with Chrome.

Expected results:
Cypress would run with Firefox.

Additional info:
This "works" with Protractor/test-gui.sh, as README instructs.

Comment 3 XiaochuanWang 2020-09-03 09:01:40 UTC
This could be verified with the merged code on latest commit: $ git log
commit 15064a2b472a7771b16f634d2c687c3769ff2592 (HEAD -> release-4.6, origin/release-4.6)
Merge: 3ad0d44f7 f1efb0166

$ export BRIDGE_E2E_BROWSER_NAME=firefox && echo ${BRIDGE_E2E_BROWSER_NAME:=chrome} 
firefox

Run tests:
$ cd /home/xiaocwan/go/src/github.com/openshift/console/ && ./test-cypress.sh 
+ cd frontend
+ yarn install
yarn install v1.21.0
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "jquery.1" is incompatible with requested version "jquery@~3.4.1"
warning Resolution field "victory-shared-events.8" is incompatible with requested version "victory-shared-events@^35.0.8"
warning Resolution field "victory-shared-events.8" is incompatible with requested version "victory-shared-events@^35.0.8"
warning Resolution field "victory-shared-events.8" is incompatible with requested version "victory-shared-events@^35.0.8"
warning Resolution field "victory-shared-events.8" is incompatible with requested version "victory-shared-events@^35.0.8"
warning Resolution field "jquery.1" is incompatible with requested version "jquery@~3.4.1"
warning Resolution field "minimist.5" is incompatible with requested version "minimist.8"
warning Resolution field "minimist.5" is incompatible with requested version "minimist.8"
warning Resolution field "minimist.5" is incompatible with requested version "minimist@~0.0.1"
success Already up-to-date.
Done in 1.23s.
+ trap generateReport EXIT
+ yarn run test-cypress-headless
yarn run v1.21.0
$ cd packages/integration-tests-cypress && node --max-old-space-size=4096 ../../node_modules/.bin/cypress run --env openshift=true --browser ${BRIDGE_E2E_BROWSER_NAME:=chrome} --headless

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    5.0.0                                                                              │
  │ Browser:    Firefox 70 (headless)                                                              │
  │ Specs:      4 found (crud/k8-openshift-cruds.spec.ts, crud/namespace-crud.spec.ts, monitoring/ │
  │             monitoring.spec.ts, storage/snapshot.spec.ts)                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  crud/k8-openshift-cruds.spec.ts

Comment 6 errata-xmlrpc 2020-10-27 16:37:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196


Note You need to log in before you can comment on or make changes to this bug.