summaryrefslogtreecommitdiff
path: root/qa/spec
Commit message (Collapse)AuthorAgeFilesLines
* Allow token env var from gitlab-qaMark Lapierre2019-03-281-3/+3
| | | | | | | gitlab-qa accepts an env var named GITLAB_QA_ACCESS_TOKEN, but here we only accepted PERSONAL_ACCESS_TOKEN. This change replaces PERSONAL_ACCESS_TOKEN with GITLAB_QA_ACCESS_TOKEN
* Set feature flag via command lineMark Lapierre2019-03-277-12/+127
| | | | | | | | | | | First attempt at allowing a feature flag to be set via the command line when running tests. This will enable the flag, run the tests, and then disable the flag. Using OptionParser meant changing how scenarios get the instance address, so this also allows the address to be set as a command line option. It's backwards compatible (you can still provide the address as the command line option after the scenario)
* Skip contexts in quarantineMark Lapierre2019-03-113-401/+272
| | | | This avoids running before/after blocks for tests that are in quarantine
* [QA] Fail early if a Git command failsRémy Coutable2019-02-281-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update GitHub Import testSanad Liaquat2019-02-251-5/+10
| | | | | | 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.
* Retry failed tests with rspec-retrySanad Liaquat2019-02-192-0/+63
| | | | Does not retry if tagged :quarantine. Also adds unit tests.
* Move server responding check to scenario before hookMark Lapierre2019-02-141-14/+0
| | | | | This checks that the server is responding before any other actions, including before trying to add a license.
* Skip contexts in quarantineMark Lapierre2019-02-142-173/+226
| | | | This avoids running before/after blocks for tests that are in quarantine
* [CE] Improve `wait_for_push`Mark Lapierre2019-02-1112-8/+184
|
* Load login page only if gitlab_address is definedqa-check-server-responding-before-suitSanad Liaquat2019-02-071-3/+5
|
* Wait for login page to load at the beginning of QA suiteSanad Liaquat2019-02-071-0/+12
|
* Add e2e QA test for logging in using GitHub OAuthSanad Liaquat2019-02-011-0/+9
| | | | | Adds the test itself and the vendor page object model for GitHub login pages.
* Merge branch 'qa-ml-improve-git-repo-auth' into 'master'Rémy Coutable2019-01-311-42/+92
|\ | | | | | | | | | | | | Add git credentials to .netrc when needed Closes gitlab-org/quality/nightly#57 and #56857 See merge request gitlab-org/gitlab-ce!24691
| * Don't use .netrc with SSHMark Lapierre2019-01-301-11/+0
| | | | | | | | | | | | There was a bug that required credentials when using SSH key auth when using LFS. That bug was fixed so we shouldn't need to add credentials to .netrc when using SSH anymore.
| * Add git credentials to .netrc when neededMark Lapierre2019-01-281-42/+103
| | | | | | | | | | Avoid having to remember to call try_add_credentials_to_netrc after setting credentials.
* | Re-enable MethodCallWithoutArgsParentheses CopAndrew Newdigate2019-01-292-2/+2
|/ | | | | Re-enables and autocorrects all instances of the Style/MethodCallWithoutArgsParentheses rule
* Fix failing E2E testMark Lapierre2019-01-251-1/+9
| | | | | | | | | | | | 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
* [QA] Use public_email instead of email since it's availableRémy Coutable2019-01-231-0/+118
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Resource attribute bugMark Lapierre2019-01-151-0/+36
| | | | | Allow Resources to have the same attribute name but different attribute values
* [QA] Retrieve the current user name and emailRémy Coutable2019-01-101-4/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add specs to remote grid. Raise errors for #remote_grid_credentialsddavison2019-01-091-0/+59
| | | | Signed-off-by: ddavison <ddavison@gitlab.com>
* Quarantine spec code review changesMark Lapierre2019-01-082-20/+19
| | | | | | | - Clarify message shown when skipping quarantined tests because they don't have all the specified tags. - Simplify rejecting item from array - Remove 'pass' from example descriptions to avoid confusion
* Skip quarantined tests via filtersMark Lapierre2019-01-082-0/+299
| | | | | | | | Instead of modifying the runner, use config hooks to skip quarantined tests, and to allow only quarantined tests to be run, if desired. This way quarantined tests are skipped, not excluded completely, so they are still included in test results.
* Revert "Allow tests to be quarantined"Mark Lapierre2019-01-081-77/+14
| | | | This reverts commit 8ef418d57c5a9511b862bf0711aadbb977086c91.
* Allow tests to be quarantinedMark Lapierre2019-01-081-14/+77
| | | | Exclude quarantined tests by default.
* Wait for Web IDE commit animationMark Lapierre2019-01-071-0/+14
| | | | | | | | 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.
* Log text_filter arg of find_elementMark Lapierre2018-12-281-0/+9
|
* Backport page object changes from EEMark Lapierre2018-12-201-0/+7
| | | | | Add new page object methods from EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8937
* Merge branch 'ml-qa-git-protocol-v2-spec' into 'master'Nick Thomas2018-11-083-11/+80
|\ | | | | | | | | Add e2e test of push over SSH using Git protocol v2 See merge request gitlab-org/gitlab-ce!22548
| * Add e2e test of push over SSH over Git protocol v2ml-qa-git-protocol-v2-specMark Lapierre2018-11-073-11/+80
| | | | | | | | | | | | | | | | Adds a new end-to-end test to check that Git protocol v2 can be used to push over SSH. Includes a change in Git::Repository to use Runtime::Env.debug? to enable logging instead of .verbose?
* | Rename QA::Factory to QA::Resource53224-rename-to-resource-base-qaLin Jen-Shin2018-11-054-77/+77
| | | | | | | | | | * Factory::Base -> Resource::Base, and therefore: * Factory::Resource::Project -> Resource::Project
* | Merge branch 'ml-create-user-via-api-qa' into 'master'Grzegorz Bizon2018-11-051-0/+36
|\ \ | | | | | | | | | | | | Create users via the API See merge request gitlab-org/gitlab-ce!22779
| * | Create users via the APIml-create-user-via-api-qaMark Lapierre2018-11-021-0/+36
| | | | | | | | | | | | Allows users to be fetched/created via the API.
* | | Don't log fabricate argsMark Lapierre2018-11-021-3/+3
|/ / | | | | | | Prevents logging of sensitive data
* | CE: Absorb product into factoryLin Jen-Shin2018-10-312-58/+27
|/
* Merge branch 'qa-59-ldap-ssl-scenario' into 'master'Stan Hu2018-10-261-2/+10
|\ | | | | | | | | | | | | E2E Test - LDAP login with SSL Closes gitlab-qa#59 See merge request gitlab-org/gitlab-ce!22574
| * Rename SSL to TLSSanad Liaquat2018-10-251-4/+4
| |
| * Renamed to ldap_no_ssl and ldap_sslSanad Liaquat2018-10-241-2/+10
| |
* | Merge branch 'ml-qa-repo-logging' into 'master'Robert Speicher2018-10-252-0/+12
|\ \ | | | | | | | | | | | | Re-enable debug logging of Git commands and output See merge request gitlab-org/gitlab-ce!22608
| * | Re-enable debug logging of Git commands and outputml-qa-repo-loggingMark Lapierre2018-10-252-0/+12
| |/
* | Always use `attribute` to define the productLin Jen-Shin2018-10-253-179/+109
|/
* Merge branch 'qa-backport-recent-ee-changes' into 'master'Douglas Barbosa Alexandre2018-10-221-8/+7
|\ | | | | | | | | [QA] Port recent changes from EE See merge request gitlab-org/gitlab-ce!22391
| * [QA] Port recent changes from EEqa-backport-recent-ee-changesRémy Coutable2018-10-221-8/+7
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Log page actionsml-qa-loggingMark Lapierre2018-10-195-10/+145
|/ | | | | | | | | | | | | | | 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.
* Merge branch 'ml-qa-code-owners' into 'master'Rémy Coutable2018-10-181-0/+26
|\ | | | | | | | | QA: Add support for pushing and viewing files See merge request gitlab-org/gitlab-ce!21911
| * Add support for pushing and viewing filesMark Lapierre2018-10-171-0/+26
| | | | | | | | | | | | | | | | The MR below adds a test for the code owners feature. This adds the part of those changes specific to CE - the ability to add and view files in a project. https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7368
* | First iteration to allow creating QA resources using the APIRémy Coutable2018-10-178-85/+416
|/
* Disable the QA/ElementWithPattern cop for existing offensesRémy Coutable2018-10-152-5/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Initial commitSanad Liaquat2018-10-111-0/+9
| | | | | | | | | | Use ACCEPT_INSECURE_CERTS env var and fix step Simplify saml signin Fix rubo cop offence Add missing # frozen_string_literal: true
* Allow the registration e2e test to be skippedMark Lapierre2018-10-082-16/+38
| | | | | | | If SIGNUP_DISABLED is true skip any tests with a context :skip_signup_disabled. The context is set for the registration tests. This allows the tests to be skipped when run on the staging, which doesn't allow registration