Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-2594: Use selenium 4. #1161

Merged
merged 2 commits into from
Sep 6, 2022
Merged

EWPP-2594: Use selenium 4. #1161

merged 2 commits into from
Sep 6, 2022

Conversation

nagyad
Copy link
Member

@nagyad nagyad commented Sep 5, 2022

No description provided.

Copy link
Contributor

@brummbar brummbar left a comment

Choose a reason for hiding this comment

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

It's important to determine the correct set of options now, as we will use this as baseline for OpenEuropa.

@@ -55,7 +55,33 @@ default:
javascript_session: 'selenium2'
selenium2:
wd_host: '${selenium.host}:${selenium.port}/wd/hub'
capabilities: { "browser": "chrome", "version": "*" }
capabilities:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's start with the minimum set used by QA at https://webgate.ec.europa.eu/fpfis/qa/how-to?search=selenium:

capabilities:
  nativeEvents: true
  marionette: true
  browserName: chrome

phpunit.xml.dist Outdated
@@ -7,7 +7,7 @@
<env name="SIMPLETEST_BASE_URL" value="${drupal.base_url}"/>
<env name="SIMPLETEST_DB" value="mysql://${drupal.database.user}:${drupal.database.password}@${drupal.database.host}:${drupal.database.port}/${drupal.database.name}"/>
<env name="SIMPLETEST_SPARQL_DB" value="sparql://${drupal.sparql.host}:${drupal.sparql.port}/?module=sparql_entity_storage"/>
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["${selenium.browser}", null, "${selenium.host}:${selenium.port}/wd/hub"]'/>
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["${selenium.browser}", {"browserName":"chrome","chromeOptions":{"w3c": false, "args":["--no-sandbox", "--start-maximized", "--disable-gpu", "--window-size=1600,1200", "--disable-dev-shm-usage", "--disable-setuid-sandbox", "--disable-web-security", "--DNS-prefetch-disable", "--disable-translate", "--ignore-certificate-errors", "--test-type", "--disable-extensions", "--incognito", "--disable-infobars"]}}, "${selenium.host}:${selenium.port}/wd/hub"]'/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Even Joinup here uses a very basic string:

MINK_DRIVER_ARGS_WEBDRIVER="['chrome', { 'chromeOptions': { 'w3c': false } }, 'http://localhost:4444/wd/hub']"

Let's start with that.

@22Alexandra 22Alexandra merged commit 11fe254 into 3.x Sep 6, 2022
@22Alexandra 22Alexandra deleted the EWPP-2594 branch September 6, 2022 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants