Re-use a Chrome profile for QA specs
When running QA specs locally, I find that sometimes, the 1st sign-in page takes a very long time to load assets. (main.chunk.js
is about 1Mb)
Re-using chrome profile could be an answer
tkgl:gitlab tkuah$ git diff
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb
index 4c64270ce92..278000a238d 100644
--- a/qa/qa/runtime/browser.rb
+++ b/qa/qa/runtime/browser.rb
@@ -69,6 +69,9 @@ def self.configure!
# Disable /dev/shm use in CI. See https://gitlab.com/gitlab-org/gitlab-ee/issues/4252
options.add_argument("disable-dev-shm-usage") if QA::Runtime::Env.running_in_ci?
+ qa_profile_dir = ::File.expand_path('../../tmp/qa-profile', __dir__)
+ options.add_argument("user-data-dir=#{qa_profile_dir}")
+
Edited by Thong Kuah