You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2024. It is now read-only.
When the BROWSERS env variable (passed from Jenkins) contains white spaces between each browsers, browsers after the first one are not parsed correctly and excluded from the test run.
Note: Setting browsers using the --browsers CLI option works as expected. This is an issue only when setting browsers using the BROWSERS env variable.
Steps to Reproduce
Identify a project that has the useSeleniumGrid option set to true and does NOT have the browsers option set in Jenkinsfile. When no browsers are provided and build using selenium grid, this will default to build in chrome, firefox, and IE.
Build the project in Jenkins.
Go to the Test step and notice that the tests are ran only in chrome but not in firefox or IE.
Additional Context / Screenshots
The BROWSERS env set in Jenkins looks like this - BROWSERS=[chrome, firefox, ie] (notice the space before firefox and ie)
When each browser is split into the array the white space between each browsers is not removed. As a result, the browsers array ends up like [ 'chrome', ' firefox', ' ie' ] (notice the space before firefox and ie).
Due to the extra space getCapabilities would fail to match and add firefox and ie as browser capabilities.
Expected Behavior
Possible Solution
Environment
Component Name and Version:
Browser Name and Version:
Node/npm Version: [e.g. Node 8/npm 5]
Webpack Version:
Operating System and version (desktop or mobile):
@ Mentions
The text was updated successfully, but these errors were encountered:
benbcai
changed the title
[terra-functional-testing] BROWSERS env with empty spaces not parsed correctly
[terra-functional-testing] Tests are not executed in all the browsers provided by the BROWSERS env variable
Jul 21, 2021
Bug Report
Description
When the
BROWSERS
env variable (passed from Jenkins) contains white spaces between each browsers, browsers after the first one are not parsed correctly and excluded from the test run.Note: Setting browsers using the
--browsers
CLI option works as expected. This is an issue only when setting browsers using theBROWSERS
env variable.Steps to Reproduce
useSeleniumGrid
option set totrue
and does NOT have thebrowsers
option set in Jenkinsfile. When no browsers are provided and build using selenium grid, this will default to build in chrome, firefox, and IE.Additional Context / Screenshots
BROWSERS=[chrome, firefox, ie]
(notice the space before firefox and ie)[ 'chrome', ' firefox', ' ie' ]
(notice the space before firefox and ie).Expected Behavior
Possible Solution
Environment
@ Mentions
The text was updated successfully, but these errors were encountered: