From 992f458f3853eff8e33513d2e4b8d6a5ed22edb0 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 15:18:28 +0300 Subject: [PATCH 01/18] try version 74 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 32bb88386e..e0fa5643a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From adf976361957d35a7a05aa27aad0f16e84f9f055 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 15:32:18 +0300 Subject: [PATCH 02/18] version 75 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e0fa5643a5..530bd39418 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/75.0.3770.8/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From 92e37fc46b1b561a0768bedc5f39f711adc18fd2 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 15:41:05 +0300 Subject: [PATCH 03/18] vesion 75.0.3770.90 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 530bd39418..8e02f60b28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/75.0.3770.8/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From da601df0340208f58f3618ad13d18a40a952ff15 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 15:50:51 +0300 Subject: [PATCH 04/18] add no-sandbox mode --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8e02f60b28..6c9633ce21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ before_install: - sudo wget https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & + - google-chrome-stable --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 http://localhost & - yes | gem update --system --force - gem install bundler From 3f900a07efd7246c0a0e00863c0b1805547b422b Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 16:12:22 +0300 Subject: [PATCH 05/18] add chrome on addons --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 6c9633ce21..a8d9fd7869 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ services: - redis-server addons: + chrome: stable mariadb: '10.2' cache: From 24c164fbd3b4991d830e36058c9c635de273808a Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 16:57:15 +0300 Subject: [PATCH 06/18] remove chrome from addons --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a8d9fd7869..6c9633ce21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,6 @@ services: - redis-server addons: - chrome: stable mariadb: '10.2' cache: From 5d24e06d3a0ba7693e9659411c9897f1573e8293 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 16:58:11 +0300 Subject: [PATCH 07/18] version 76.0.3809.12 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6c9633ce21..dd09972681 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.12/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 http://localhost & From 167fd198b14e572ff547e16b10575c6fc9a025e9 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 17:44:10 +0300 Subject: [PATCH 08/18] version 76.0.3809.25 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dd09972681..5ea358469c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,10 +28,10 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.12/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.25/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - - google-chrome-stable --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 http://localhost & + - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & - yes | gem update --system --force - gem install bundler From 83697c37488fb19e317211648487ec5f4e13c82b Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 18:05:24 +0300 Subject: [PATCH 09/18] version 76.0.3809.68 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5ea358469c..d7b1924e73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.25/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.68/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From 8c2b60ca3772004847323e2a3893ca13eac40625 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 18:06:36 +0300 Subject: [PATCH 10/18] version 76.0.3809.126 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d7b1924e73..e1e1c35263 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.68/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.126/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From 6215e954bf33e663cedefc6bc1f7532f7cef52a0 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 18:18:29 +0300 Subject: [PATCH 11/18] add chrome and driver in apt --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e1e1c35263..0d019f9952 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,9 @@ services: - redis-server addons: + apt: + - google-chrome-stable + - chromium-chromedriver mariadb: '10.2' cache: @@ -28,7 +31,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/76.0.3809.126/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/77.0.3865.10/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & From 46df0d0bdeb6ee23a55e2d60355b23ac01544650 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 18:34:16 +0300 Subject: [PATCH 12/18] fix chrome crash error --- test/application_system_test_case.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 7284e44c85..a165633341 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -3,7 +3,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase chromeOptions = %w(--headless --disable-gpu --no-sandbox --remote-debugging-port=9222) caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"args" => chromeOptions}) - driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps } + driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps, args: ["headless" "disable-gpu", "no-sandbox", "disable-dev-shm-usage"] } + # https://web.archive.org/web/20170730200309/http://blog.paulrugelhiatt.com/rails/testing/capybara/dropzonejs/2014/12/29/test-dropzonejs-file-uploads-with-capybara.html def drop_in_dropzone(file_path, dropzoneSelector) From 11237b05153c5a83cd864109ab50f54d03c517fa Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 18:50:14 +0300 Subject: [PATCH 13/18] remove chrome from addons --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0d019f9952..9469860394 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,6 @@ services: - redis-server addons: - apt: - - google-chrome-stable - - chromium-chromedriver mariadb: '10.2' cache: From 06c381aea30523a02b4874dd7474bf9afdf30196 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 19:22:58 +0300 Subject: [PATCH 14/18] use version 84.0.4147.30 --- .travis.yml | 2 +- test/application_system_test_case.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9469860394..10d09f04a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/77.0.3865.10/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - sudo chmod +x /usr/local/bin/chromedriver - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index a165633341..7284e44c85 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -3,8 +3,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase chromeOptions = %w(--headless --disable-gpu --no-sandbox --remote-debugging-port=9222) caps = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {"args" => chromeOptions}) - driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps, args: ["headless" "disable-gpu", "no-sandbox", "disable-dev-shm-usage"] } - + driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps } # https://web.archive.org/web/20170730200309/http://blog.paulrugelhiatt.com/rails/testing/capybara/dropzonejs/2014/12/29/test-dropzonejs-file-uploads-with-capybara.html def drop_in_dropzone(file_path, dropzoneSelector) From 62ef0c28b644af68f0c262c2ee48d2ca61564f89 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 19:40:52 +0300 Subject: [PATCH 15/18] use webnicer --- .travis.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10d09f04a1..4267a28e38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,10 +28,20 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip - - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ + + - sudo wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_75.0.3770.142-1_amd64.deb \ + - O google-chrome.deb && \ + - sudo dpkg -i google-chrome.deb && \ + - sudo apt-get -fy install && \ + - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip && \ + - sudo unzip chromedriver_linux64.zip && \ + - sudo mv chromedriver /usr/local/bin/chromedriver && \ - sudo chmod +x /usr/local/bin/chromedriver - - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & + + # - sudo wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip + # - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ + # - sudo chmod +x /usr/local/bin/chromedriver + # - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & - yes | gem update --system --force - gem install bundler From b13b742539f967dc2f0b8dd500926063af30aaf7 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 19:45:45 +0300 Subject: [PATCH 16/18] install wholly --- .travis.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4267a28e38..84b1a6a507 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,13 +30,8 @@ env: before_install: - sudo wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_75.0.3770.142-1_amd64.deb \ - - O google-chrome.deb && \ - - sudo dpkg -i google-chrome.deb && \ - - sudo apt-get -fy install && \ - - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip && \ - - sudo unzip chromedriver_linux64.zip && \ - - sudo mv chromedriver /usr/local/bin/chromedriver && \ - - sudo chmod +x /usr/local/bin/chromedriver + O google-chrome.deb && \ dpkg -i google-chrome.deb && \ apt-get -fy install && \ wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip && \ + unzip chromedriver_linux64.zip && \ mv chromedriver /usr/local/bin/chromedriver && \ chmod +x /usr/local/bin/chromedriver # - sudo wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip # - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ From 9dd2187153213625ad537004b5b7448c572ec86e Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 19:51:36 +0300 Subject: [PATCH 17/18] install chrome as is in dockerfile --- .travis.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 84b1a6a507..a6f60583d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,15 +28,12 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_75.0.3770.142-1_amd64.deb \ - O google-chrome.deb && \ dpkg -i google-chrome.deb && \ apt-get -fy install && \ wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip && \ - unzip chromedriver_linux64.zip && \ mv chromedriver /usr/local/bin/chromedriver && \ chmod +x /usr/local/bin/chromedriver - - # - sudo wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip - # - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ - # - sudo chmod +x /usr/local/bin/chromedriver - # - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & + # - sudo wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip + - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip + - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/ + - sudo chmod +x /usr/local/bin/chromedriver + - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & - yes | gem update --system --force - gem install bundler From 5b123d2924b875f5bf0311812427daddceab6d02 Mon Sep 17 00:00:00 2001 From: Cess Date: Tue, 28 Jul 2020 20:02:57 +0300 Subject: [PATCH 18/18] remove trailing chars --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a6f60583d4..f9a59e9483 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ env: - RAILS_SYSTEM_TESTING_SCREENSHOT=simple before_install: - - sudo wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_75.0.3770.142-1_amd64.deb \ + - sudo wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_75.0.3770.142-1_amd64.deb # - sudo wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip - sudo wget https://chromedriver.storage.googleapis.com/74.0.3729.6/chromedriver_linux64.zip - sudo unzip chromedriver_linux64.zip -d /usr/local/bin/