Commit Graph

49 Commits

Author SHA1 Message Date
7b6a6bfc58 Add latest changes from gitlab-org/gitlab@master 2022-01-14 15:16:52 +00:00
e7b6cfeafe Add latest changes from gitlab-org/gitlab@master 2021-08-25 15:11:14 +00:00
f57f1c6cd8 Add latest changes from gitlab-org/gitlab@master 2021-07-26 18:09:51 +00:00
c916c6f79b Add latest changes from gitlab-org/gitlab@master 2020-09-25 03:09:30 +00:00
c9c77a8466 Add latest changes from gitlab-org/gitlab@master 2020-08-25 03:10:50 +00:00
ad0265eead Add latest changes from gitlab-org/gitlab@master 2020-04-09 09:10:17 +00:00
39fa7d1eeb Add latest changes from gitlab-org/gitlab@master 2020-03-27 12:07:43 +00:00
167894d0e7 Add latest changes from gitlab-org/gitlab@master 2020-01-24 21:09:09 +00:00
22a0d312ae Add latest changes from gitlab-org/gitlab@master 2020-01-17 18:08:41 +00:00
0820b29dca Add latest changes from gitlab-org/gitlab@master 2020-01-15 12:08:34 +00:00
775816e676 Add latest changes from gitlab-org/gitlab@master 2020-01-10 00:07:56 +00:00
5afd857550 Add latest changes from gitlab-org/gitlab@master 2020-01-09 09:07:51 +00:00
5a3f1ba53b Add latest changes from gitlab-org/gitlab@master 2019-11-20 00:06:22 +00:00
aaf124b0f7 Add latest changes from gitlab-org/gitlab@master 2019-11-18 21:06:19 +00:00
25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
3281e6db23 Treat element#selector_css string appropriately
Proper escaping should be used for page/base.rb#scroll_to
as it is a single quoted JS string
2019-07-10 16:20:31 -07:00
390e0d8906 Introduce data-qa-selector to supplant .qa-class
In order to break away from using CSS classes as
our primary method of element identification, we
need to provide the ability to search for data
attributes.

Make Test::Sanity::Selectors now work

Utilize regex to match on literal strings of the element name

Suggest the data-qa-selector pattern vs the qa-

Add data-qa-selector to login page to start

We need a page that is heavily used in order to be
confident that this functionality works. Let's start
with the Login page

Use appropriate HAML data tag practices
2019-07-10 16:09:43 -07:00
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
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
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
7d5b68d837 Implement dynamic validation on QA Pages
Elements now have the ability to be required on pages or not
Currently using the default wait mechanism
Altered the ElementWithPattern Cop to fit new splat for init
2019-05-20 12:35:51 -07:00
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
0be52bf32f Add frozen_string_literal to qa/
This will be default in Ruby 3, so will be good to apply in QA ahead of
time to be consistent.
2019-04-13 00:45:38 +12:00
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
97265d39e7 [CE] Improve wait_for_push 2019-02-11 09:04:59 +00:00
ff0b2cc61f Re-enable MethodCallWithoutArgsParentheses Cop
Re-enables and autocorrects all instances of the
Style/MethodCallWithoutArgsParentheses rule
2019-01-29 21:05:30 +02:00
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
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
441dee4c31 Log text_filter arg of find_element 2018-12-28 13:15:46 -05:00
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
a85c8e346f Re-enable debug logging of Git commands and output 2018-10-25 15:21:21 -04:00
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
1db52c79ad Disable the QA/ElementWithPattern cop for existing offenses
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-15 17:55:53 +02:00
182966312f [QA] Improve admin hashed-storage settings
This was introduced by https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7371
for which no QA was run, even though QA files were changed.

This is a follow-up to
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7531.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-10-02 12:11:44 +02:00
d2db7d40dd Disambiguate 'File' under qa/ since we have a QA::Factory::Resource::File class as well
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-18 15:06:53 +02:00
896ae6fc15 Move repository, storage, abuse settings and logging settings to expandable sections
Also reorganize application settings related to repository in more maninful sections

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-04-02 15:03:54 +03:00
a69b36264b Fix and simplify end-to-end tests for secret variables 2018-02-16 12:00:13 +01:00
e85ed5cbcf Fix few typos in QA selectors validation code 2018-01-10 11:15:57 +01:00
9910968f0c Fix QA selector class used to click on QA elements 2018-01-10 10:49:11 +01:00
7725a7071d Reduce duplication in QA page elements-related code 2018-01-09 14:28:10 +01:00
dee047aaca Add QA login page views / selectors definition 2018-01-09 13:21:23 +01:00
e0edf6c7af Improve QA sanity selectors test output message 2018-01-09 12:34:47 +01:00
fa07d23224 Add QA error when page class has no views defined 2018-01-09 12:06:58 +01:00
d5a92c53dd Implement QA pages and views validator 2018-01-09 11:28:14 +01:00
4b945e2845 Make it possible to define a QA-specific page element 2018-01-09 10:02:55 +01:00
d2c2f93fe6 Append page validation error if view partial is missing 2017-12-22 16:09:00 +01:00
d69e4541a4 Use composite pattern to return page view errors 2017-12-22 15:40:46 +01:00
481f461380 Add implementation for matching view elements in QA 2017-12-22 15:22:54 +01:00
856917520d Add domain specific language to define QA page elements 2017-12-22 13:01:12 +01:00