Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

[terra-functional-testing] Add useSeleniumStandalonService option #646

Merged
merged 5 commits into from
May 6, 2021

Conversation

benbcai
Copy link
Contributor

@benbcai benbcai commented Apr 30, 2021

Summary

Added useSeleniumStandalonService option to determine whether to use the standalone-chrome or the the selenium docker service when not using the selenium grid.

Closes #637

Additional Details

  • When the Selenium Grid is not used (gridUrl is not provided) to run wdio tests, Jenkins will now set the USE_SELENIUM_STANDALONE_SERVICE env variable to allow us to determine whether to use standalone-chrome as the hostname or start the selenium docker service. This is similar to how the CI env is used in terra-toolkit-boneyard.
  • I didn't include useSeleniumStandalonService in the CLI options documentation because consumers should not need to know about or set this locally since it should only be used by Jenkins.

@cerner/terra

@benbcai benbcai self-assigned this Apr 30, 2021
@mjhenkes mjhenkes temporarily deployed to terra-toolki-local-sele-rhk6e1 April 30, 2021 23:29 Inactive
@@ -143,6 +143,11 @@ const cli = {
describe: 'Whether or not to automatically update all reference screenshots with the latest screenshots.',
default: false,
},
useSeleniumStandalonService: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open to suggestions if there is a better name to use.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems good enough to me

Suggested change
useSeleniumStandalonService: {
useSeleniumStandaloneService: {

@mjhenkes mjhenkes temporarily deployed to terra-toolki-local-sele-rhk6e1 April 30, 2021 23:31 Inactive
Copy link
Contributor

@mjhenkes mjhenkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 with updated spelling

@mjhenkes mjhenkes temporarily deployed to terra-toolki-local-sele-rhk6e1 May 3, 2021 18:51 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-toolki-local-sele-rhk6e1 May 3, 2021 19:49 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-toolki-local-sele-rhk6e1 May 5, 2021 17:42 Inactive
@benbcai benbcai merged commit 129028f into main May 6, 2021
@benbcai benbcai deleted the local-selenium-service branch May 6, 2021 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[terra-functional-testing] Handle Jenkins setting to disable selenium docker service
4 participants