summaryrefslogtreecommitdiff
path: root/spec/support/capybara.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@12-6-stable-eeGitLab Bot2019-12-201-0/+1
|
* Add latest changes from gitlab-org/gitlab@12-5-stable-eeGitLab Bot2019-11-191-1/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-2/+2
|
* Enable CSP in gitlab.yml.exampleenable-csp-in-dev-and-ci-ceHeinrich Lee Yu2019-08-221-0/+3
| | | | This enables CSP in dev and CI
* Add frozen_string_literal to spec/supportThong Kuah2019-07-251-0/+2
| | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Add Aria support to capybaraNick Thomas2019-07-221-0/+1
|
* Upgrade to Capybara 3Heinrich Lee Yu2019-06-121-0/+2
| | | | | Fix whitespace in specs because normalize_ws is slightly different from Capybara 2 behavior
* Explicitly set Chrome user-data-dir58882-explicit-chrome-data-dirHeinrich Lee Yu2019-06-111-0/+3
| | | | | This is a temporary measure to prevent some system specs causing Chrome to crash
* Try to reduce testing view port and unify itLin Jen-Shin2019-05-071-3/+8
| | | | | | | | | Hoping that we don't hit into Selenium::WebDriver::Error::NoSuchDriverError: invalid session id Again.
* Fix typos in comments and specsGeorge Tsiolis2018-11-011-1/+1
|
* Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable2018-04-231-0/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* prefer &. to .tryMike Greiling2018-04-131-1/+1
|
* remove --disable-gpu flag as it is no longer neededMike Greiling2018-04-131-7/+1
|
* display relevant browser console output whenever an integration test failsMike Greiling2018-04-131-0/+19
|
* prevent localStorage.clear from running when it would cause an errorMike Greiling2018-02-231-2/+4
|
* Disable /dev/shm in CIsh-disable-dev-shmStan Hu2017-12-221-0/+3
| | | | | | | | | | | 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.
* add logging back to capybara config and clean up selenium option instantiationclean-capybara-configMike Greiling2017-11-291-8/+28
|
* make window resizing more resiliant on small screens when headless mode is offMike Greiling2017-11-011-3/+7
|
* move resize option the pre-test hooks instead of post-testMike Greiling2017-11-011-3/+3
|
* reset browser window size between testsMike Greiling2017-11-011-0/+3
|
* add CHROME_HEADLESS environment variable to disable headless modeMike Greiling2017-10-211-1/+4
|
* clear localStorage after each capybara test (global)Mike Greiling2017-10-201-0/+3
|
* Bump selenium-webdriver to 3.5.0 to make Capybara work properlyStan Hu2017-08-121-1/+1
|
* Expand Chrome window size to make specs passStan Hu2017-08-111-1/+1
|
* Merge branch 'master' into sh-headless-chrome-supportStan Hu2017-08-021-2/+10
|\
| * Ensure Gitlab::Application.routes.default_url_options are set correctly in ↵Rémy Coutable2017-07-281-1/+8
| | | | | | | | | | | | Capybara + :js specs Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Don't reset the session when the example failed, because we need ↵dm-restore-capybara-screenshotDouwe Maan2017-06-211-2/+3
| | | | | | | | capybara-screenshot to have access to it
* | Make Capybara::Screenshot work with headless ChromeStan Hu2017-06-161-0/+4
| |
* | Replace PhantomJS with headless Chrome for Rspec testsStan Hu2017-06-161-13/+10
|/ | | | Closes #30876
* Call Capybara.reset_sessions! before block_and_wait_for_requests_complete33779-reset-session-before-blocking-requestsRémy Coutable2017-06-161-0/+9
| | | | | | | | | | | 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>
* Let PhantomJS load local imagesrc/load-images-in-phantomjsRémy Coutable2017-06-121-1/+3
| | | | | | | | | | | | | 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>
* Properly eagerly-load the Capybara server for JS feature specs onlyRémy Coutable2017-03-311-2/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Eager-load the Capybara server to prevent timeoutsRémy Coutable2017-03-311-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Increase Capybara's timeoutRémy Coutable2017-03-311-2/+2
| | | | | | | | 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>
* Merge branch 'rs-capybara-screenshot-artifacts' into 'master' Kamil Trzciński2017-03-141-6/+3
|\ | | | | | | | | | | | | Store capybara screenshots as build artifacts Closes #13971 See merge request !7985
| * Don't disable capybara-screenshot in CI environmentrs-capybara-screenshot-artifactsRobert Speicher2016-12-081-6/+3
| |
* | Decrease Capybara timeout for CI environmentrs-lower-capybara-timeoutRobert Speicher2017-03-081-1/+1
|/
* Pass `--load-images=no` to PhantomJS via Capybara/Poltergeistrs-phantomjs-disable-imagesRobert Speicher2016-11-281-1/+9
| | | | | | 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.
* Fix Capybara 2.6.2 deprecation warningsStan Hu2016-03-151-1/+1
|
* Set window_size to 1366*768Alfredo Sumaran2016-02-231-1/+1
|
* Prevent transient Capybara timeouts during feature testsrs-transient-capybara-timeoutRobert Speicher2016-01-281-0/+6
| | | | | | | | | | | 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.
* Move CapybaraHelpers to its own support fileRobert Speicher2015-06-221-33/+0
| | | | In case we end up wanting to use it in Spinach as well.
* Add `allowing_for_delay` helper method for feature specsRobert Speicher2015-06-141-0/+33
|
* Don't use capybara-screenshot in CI environmentsrs-capybara-screenshotRobert Speicher2015-04-251-3/+5
|
* Enable js_errors for Capybara in Spinach and RSpecRobert Speicher2015-04-251-1/+1
|
* Move RSpec setup for Capybara to its own support fileRobert Speicher2015-04-251-0/+19