Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-06Try to reduce testing view port and unify itLin Jen-Shin
Hoping that we don't hit into Selenium::WebDriver::Error::NoSuchDriverError: invalid session id Again.
2018-11-01Fix typos in comments and specsGeorge Tsiolis
2018-04-23Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-13prefer &. to .tryMike Greiling
2018-04-13remove --disable-gpu flag as it is no longer neededMike Greiling
2018-04-13display relevant browser console output whenever an integration test failsMike Greiling
2018-02-24prevent localStorage.clear from running when it would cause an errorMike Greiling
2017-12-22Disable /dev/shm in CIStan Hu
According to the Chrome source code (https://chromium.googlesource.com/chromium/src/base/+/master/base_switches.cc#120): The /dev/shm partition is too small in certain VM environments, causing Chrome to fail or crash (see http://crbug.com/715363). Use this flag to work-around this issue (a temporary directory will always be used to create anonymous shared memory files). Addresses gitlab-org/gitlab-ee#4252 but doesn't appear to cure it completely.
2017-11-29add logging back to capybara config and clean up selenium option instantiationMike Greiling
2017-11-01make window resizing more resiliant on small screens when headless mode is offMike Greiling
2017-11-01move resize option the pre-test hooks instead of post-testMike Greiling
2017-11-01reset browser window size between testsMike Greiling
2017-10-21add CHROME_HEADLESS environment variable to disable headless modeMike Greiling
2017-10-20clear localStorage after each capybara test (global)Mike Greiling
2017-08-13Bump selenium-webdriver to 3.5.0 to make Capybara work properlyStan Hu
2017-08-12Expand Chrome window size to make specs passStan Hu
2017-08-03Merge branch 'master' into sh-headless-chrome-supportStan Hu
2017-07-28Ensure Gitlab::Application.routes.default_url_options are set correctly in ↵Rémy Coutable
Capybara + :js specs Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-22Don't reset the session when the example failed, because we need ↵Douwe Maan
capybara-screenshot to have access to it
2017-06-17Make Capybara::Screenshot work with headless ChromeStan Hu
2017-06-17Replace PhantomJS with headless Chrome for Rspec testsStan Hu
Closes #30876
2017-06-16Call Capybara.reset_sessions! before block_and_wait_for_requests_completeRémy Coutable
capybara/rspec already calls Capybara.reset_sessions! in an `after` hook, but `block_and_wait_for_requests_complete` is called before it so by calling it explicitely here, we prevent any new requests from being fired. See https://github.com/teamcapybara/capybara/blob/ffb41cfad620de1961bb49b1562a9fa9b28c0903/lib/capybara/rspec.rb#L20-L25 Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-12Let PhantomJS load local imagesRémy Coutable
This change fix a memory leak due to a Webkit bug: https://github.com/ariya/phantomjs/issues/12903 Also: - Whitelist only localhost and 127.0.0.1 in Capybara + JS specs - Blacklist all requests to media such as images, videos, PDFs, CSVs etc. - Log all the requests made. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31Properly eagerly-load the Capybara server for JS feature specs onlyRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31Eager-load the Capybara server to prevent timeoutsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-31Increase Capybara's timeoutRémy Coutable
Also disabled assets warming for Capybara/RSpec and remove a check to skip assets warming when ./tmp/cache/assets/test exists because assets are now served by webpack-dev-server. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-14Merge branch 'rs-capybara-screenshot-artifacts' into 'master' Kamil Trzciński
Store capybara screenshots as build artifacts Closes #13971 See merge request !7985
2017-03-08Decrease Capybara timeout for CI environmentRobert Speicher
2016-12-08Don't disable capybara-screenshot in CI environmentRobert Speicher
2016-11-28Pass `--load-images=no` to PhantomJS via Capybara/PoltergeistRobert Speicher
We were unintentionally hitting `gravatar.com` whenever a test that used Poltergeist was run. This was certainly wasting their resources and slowing down our tests even further, for no reason.
2016-03-15Fix Capybara 2.6.2 deprecation warningsStan Hu
2016-02-23Set window_size to 1366*768Alfredo Sumaran
2016-01-29Prevent transient Capybara timeouts during feature testsRobert Speicher
The problem occurred because asset compilation takes a long time, so when the asset cache didn't exist and the first test ran, it would often (randomly) time out during the generation before the actual test even had a chance to run. Now we check if the cache exists before the suite runs, and if not, we manually fire a request to the root URL in order to generate it. This should allow subsequent tests to use the cached assets.
2015-06-22Move CapybaraHelpers to its own support fileRobert Speicher
In case we end up wanting to use it in Spinach as well.
2015-06-15Add `allowing_for_delay` helper method for feature specsRobert Speicher
2015-04-26Don't use capybara-screenshot in CI environmentsRobert Speicher
2015-04-26Enable js_errors for Capybara in Spinach and RSpecRobert Speicher
2015-04-26Move RSpec setup for Capybara to its own support fileRobert Speicher