Bug 1874895

Summary: "chrome" hardcoded for Cypress integration tests
Product: OpenShift Container Platform Reporter: Hiro Miyamoto <hmiyamot>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:37:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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