Skip to content

Commit

Permalink
Issue #3278730: Switch to use Selenium Server Standalone 3.141.59 to …
Browse files Browse the repository at this point in the history
…follow with Latest Chrome Browser and Chrome Driver options
  • Loading branch information
Natshah committed May 4, 2022
1 parent 8bdd7c7 commit d7c4eaf
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 329 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ commands:
done
echo Failed waiting for MySQL && exit 1
## Install composer ~2.1
## Install Composer
- run:
name: Install composer ~2.1
name: Install Composer
command: |
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/ --filename=composer --2;
composer config -g github-oauth.github.com $GITHUB_TOKEN
Expand Down Expand Up @@ -207,13 +207,13 @@ commands:
../bin/drush config:set system.logging error_level all --yes
../bin/drush cr
## Run selenium standalone server.
## Run Selenium Standalone server.
- run:
name: Run selenium standalone server
name: Run Selenium Standalone server
command: |
if [[ ! -f /home/circleci/selenium-server-standalone-2.53.1.jar ]]; then wget -O /home/circleci/selenium-server-standalone-2.53.1.jar http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar; fi
if [[ ! -f /home/circleci/selenium-server-standalone-3.141.59.jar ]]; then wget -O /home/circleci/selenium-server-standalone-3.141.59.jar https://github.com/SeleniumHQ/selenium/releases/download/selenium-3.141.59/selenium-server-standalone-3.141.59.jar; fi
cd /home/circleci/
java -jar selenium-server-standalone-2.53.1.jar -port 4445
java -jar selenium-server-standalone-3.141.59.jar -port 4445
background: true

## Add testing users.
Expand Down
37 changes: 17 additions & 20 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,33 +63,30 @@ default:
browserName: chrome
version: "*"
extra_capabilities:
loggingPrefs:
performance: ALL
browser: ALL
chromeOptions:
w3c: false
args:
- "--headless"
- "--start-maximized"
- "--disable-gpu"
- "--window-size=1600,1200"
- "--no-sandbox"
- "--disable-dev-shm-usage"
- "--disable-setuid-sandbox"
w3c: false
chrome:
switches:
- "--headless"
- "--start-maximized"
- "--disable-gpu"
- "--window-size=1600,1200"
- "--no-sandbox"
- "--disable-dev-shm-usage"
- "--disable-setuid-sandbox"
- "--disable-web-security"
- "--DNS-prefetch-disable"
- "--whitelisted-ips"
- "--disable-translate"
- "--ignore-certificate-errors"
- "--test-type"
- "--disable-extensions"
- "--incognito"
- "--ignore-certificate-errors"
- "--disable-infobars"
- "--disable-web-security"
- "--DNS-prefetch-disable"
- "--disable-translate"
- "--ignore-certificate-errors"
- "--test-type"
- "--disable-extensions"
- "--incognito"
- "--disable-infobars"
- "--remote-debugging-port=9222"
- "--allowed-ips=*"
- "--whitelisted-ips=*"
base_url: 'http://varbase.test'
# browser_name: 'firefox'
browser_name: 'chrome'
Expand Down
50 changes: 24 additions & 26 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ sudo mv -f chromedriver /usr/bin/
rm chromedriver_linux64.zip
```

### Get selenium standalone server.
### Get Selenium Standalone server.
```
wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar
wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-3.141.59/selenium-server-standalone-3.141.59.jar
```

## Run selenium standalone server.
## Run Selenium Standalone server.

```
$ java -jar selenium-*.jar -port 4445
Expand All @@ -180,32 +180,30 @@ To run the automated testing with behat you will need to change the [ wd_host an
browserName: chrome
version: "*"
extra_capabilities:
loggingPrefs:
performance: ALL
browser: ALL
chromeOptions:
w3c: false
args:
- "--headless"
- "--start-maximized"
- "--disable-gpu"
- "--window-size=1920,1080"
w3c: false
chrome:
switches:
- "--headless"
- "no-sandbox"
- "--no-sandbox"
- "--disable-web-security"
- "--DNS-prefetch-disable"
- "--whitelisted-ips"
- "--start-maximized"
- "--disable-translate"
- "--ignore-certificate-errors"
- "--test-type"
- "--disable-dev-shm-usage"
- "--disable-extensions"
- "incognito"
- "enable-precise-memory-info"
- "ignore-certificate-errors"
- "disable-infobars"
- "js-flags=--expose-gc"
- "--profile-directory=Default"
- "--user-data-dir=~/.config/google-chrome"
- "--window-size=1600,1200"
- "--no-sandbox"
- "--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"
- "--remote-debugging-port=9222"
- "--allowed-ips=*"
- "--whitelisted-ips=*"
base_url: 'http://varbase.test'
# browser_name: 'firefox'
browser_name: 'chrome'
Expand Down
17 changes: 0 additions & 17 deletions tests/tools/drush/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions tests/tools/drush/clear-flood.feature

This file was deleted.

7 changes: 0 additions & 7 deletions tests/tools/drush/drush-dis-ds_ui.feature

This file was deleted.

7 changes: 0 additions & 7 deletions tests/tools/drush/drush-en-ds_ui.feature

This file was deleted.

11 changes: 0 additions & 11 deletions tests/tools/google/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions tests/tools/google/gmail.feature

This file was deleted.

13 changes: 0 additions & 13 deletions tests/tools/google/search.feature

This file was deleted.

62 changes: 0 additions & 62 deletions tests/tools/install-selenium-server/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit d7c4eaf

Please sign in to comment.