Commit Graph

13 Commits

Author SHA1 Message Date
Mark Lapierre 7d97102f72 Run tests in parallel via parallel_tests
Uses the parallel_tests gem to execute tests in multiple processes
simultaneously on the same machine.

Adds the `--parallel` CLI option that instructs the QA framework
to use the parallel_tests executable.

Tests need access to global state contained in `Runtime::Scenario`
so when `--parallel` is invoked `Runtime::Scenario` is serialized
to an environment variable, which is passed to parallel_tests,
and then deserialized in `spec_helper`.
2019-07-09 15:40:46 +00:00
Walmyr 8769eef340 Backport of EE changes from MR 13763
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13763
2019-06-14 05:07:29 +00:00
Mark Lapierre 5cccf313c3 Fix Web IDE add template test
Wait for the new file modal to stop animating before clicking it

We now need to click the commit button 3 times:
1. To enter commit mode
2. To being staging changes
3. To submit the commit
2019-06-05 08:46:30 +00:00
Mark Lapierre f00286bc0c Add branch_name qa selector
Uses the branch_name element to find a branch with a specific
name, instead of using a dynamic CSS class that can't be validated
by the sanity selector test
2019-05-07 12:43:10 +10:00
Sanad Liaquat ddef2f1fbd Update GitHub Import test
Removes the unnecessary :orchestrated tag and updates a few
selectors. Also wait_for_success for import before proceeding.
The test is currently placed in quarantine because of a bug.
2019-02-25 18:37:27 +05:00
Mark Lapierre 97265d39e7 [CE] Improve `wait_for_push` 2019-02-11 09:04:59 +00:00
Andrew Newdigate ff0b2cc61f Re-enable MethodCallWithoutArgsParentheses Cop
Re-enables and autocorrects all instances of the
Style/MethodCallWithoutArgsParentheses rule
2019-01-29 21:05:30 +02:00
Mark Lapierre dbb5324881 Fix failing E2E test
Sometimes add_list_delete_branches_spec.rb would not wait after
deleting a branch before checking that the branch was done. It would
fail when the UI was still processing.

This checks that the loading icon is gone before returning from
delete_branch.

It also makes sure credentials are added properly after recent changes
to QA::Git::Repository
2019-01-25 09:07:55 -05:00
Mark Lapierre 8299df7593 Wait for Web IDE commit animation
Wait for the "Commit..." button to disappear and the "Stage & Commit"
button to appear before clicking the latter button. The animation that
is shown while changing the buttons must complete before clicking
"Stage & Commit" will have any effect _even if_ the button is visible
before the animation is complete.
2019-01-07 15:33:55 -05:00
Mark Lapierre 441dee4c31 Log text_filter arg of find_element 2018-12-28 13:15:46 -05:00
Mark Lapierre cbfc00a1e5 Backport page object changes from EE
Add new page object methods from EE MR:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8937
2018-12-20 08:48:10 -05:00
Mark Lapierre a85c8e346f Re-enable debug logging of Git commands and output 2018-10-25 15:21:21 -04:00
Mark Lapierre 45860bc807 Log page actions
Override page object methods to log the actions taken by the methods
before or after the action, as appropriate.

Allow page object action logging to be turned on via a QA_DEBUG env var.
Unlike CHROME_HEADLESS (and the soon to arrive VERBOSE), QA_DEBUG
is false by default.

QA_DEBUG is used instead of just DEBUG because that enables Selenium
debug logging.

Mask passwords entered into fields with a QA selector with 'password'
in the name. Doesn't mask sensitive data entered into any other field.
2018-10-19 18:32:33 -04:00