summaryrefslogtreecommitdiff
path: root/qa/qa/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Allow login validation before blockqa-fix-api-client-login-validationMark Lapierre2019-05-311-6/+3
| | | | | | Removes a block so that the login page is validated before the block, while the login page is still present, instead of after it when the login page is long gone
* Merge branch 'qa-extend-click-visit-actions' into 'master'Dan Davison2019-05-281-0/+1
|\ | | | | | | | | | | | | Implement dynamic validation on QA Pages Closes gitlab-qa#280 See merge request gitlab-org/gitlab-ce!25704
| * Implement dynamic validation on QA Pagesddavison2019-05-201-0/+1
| | | | | | | | | | | | 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
* | Move Chrome variables under conditionalqa-contain-chrome-varsddavison2019-05-201-3/+3
|/ | | | Dont specify disable-dev-shm-usage for non-chrome browsers
* Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-052-2/+0
|
* Add frozen_string_literal to qa/frozen_string_literal_qaThong Kuah2019-04-1312-0/+24
| | | | | This will be default in Ruby 3, so will be good to apply in QA ahead of time to be consistent.
* Allow token env var from gitlab-qaMark Lapierre2019-03-282-2/+2
| | | | | | | 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-272-0/+43
| | | | | | | | | | | 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)
* Added id to the namespace name generationTomislav Nikic2019-02-201-1/+3
| | | | Removed quarantine tag from the squash merges test;
* Move server responding check to scenario before hookMark Lapierre2019-02-141-0/+2
| | | | | This checks that the server is responding before any other actions, including before trying to add a license.
* Add e2e QA test for logging in using GitHub OAuthSanad Liaquat2019-02-011-0/+8
| | | | | Adds the test itself and the vendor page object model for GitHub login pages.
* [QA] Use public_email instead of email since it's availableRémy Coutable2019-01-231-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Let guard catch QA_REMOTE_GRID blank or nilddavison2019-01-171-1/+1
|
* Add specs to remote grid. Raise errors for #remote_grid_credentialsddavison2019-01-091-1/+7
| | | | Signed-off-by: ddavison <ddavison@gitlab.com>
* Dont pass extraneous chrome variables to other browsersddavison2019-01-092-10/+20
| | | | Extract remote_grid_credentials
* Convert passed browser to symddavison2019-01-091-1/+1
| | | | Signed-off-by: ddavison <ddavison@gitlab.com>
* Allow QA to run in remote grid environmentsddavison2019-01-092-17/+49
| | | | Signed-off-by: ddavison <ddavison@gitlab.com>
* Add option to use the same Chrome profileThong Kuah2018-12-062-0/+12
| | | | | | If CHROME_REUSE_PROFILE is enabled, QA will use the same profile everytime, which will be useful for local QA runs as the browser can then cache assets, etc.
* Adds QA_COOKIES option to gitlab-qaJohn Jarvis2018-11-282-0/+13
|
* Porting more changes from eeSanad Liaquat2018-11-261-3/+3
|
* More env vars for group & project names in QADylan Griffith2018-11-222-1/+9
| | | | | This will help with https://gitlab.com/gitlab-org/gitlab-qa/issues/349 as we need to use much shorter project and group names for HTTPS to work
* CE port of "qa-staging-15-use-existing-users-ee"Sanad Liaquat2018-11-191-0/+16
|
* Merge branch 'ml-qa-git-protocol-v2-spec' into 'master'Nick Thomas2018-11-081-0/+19
|\ | | | | | | | | 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-071-0/+19
| | | | | | | | | | | | | | | | 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-051-1/+1
|/ | | | | * Factory::Base -> Resource::Base, and therefore: * Factory::Resource::Project -> Resource::Project
* Merge branch 'ml-qa-repo-logging' into 'master'Robert Speicher2018-10-251-1/+3
|\ | | | | | | | | 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-251-1/+3
| |
* | Always use `attribute` to define the productLin Jen-Shin2018-10-251-1/+1
|/
* Log page actionsml-qa-loggingMark Lapierre2018-10-192-2/+31
| | | | | | | | | | | | | | | 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.
* First iteration to allow creating QA resources using the APIRémy Coutable2018-10-172-16/+23
|
* Initial commitSanad Liaquat2018-10-112-0/+8
| | | | | | | | | | Use ACCEPT_INSECURE_CERTS env var and fix step Simplify saml signin Fix rubo cop offence Add missing # frozen_string_literal: true
* Merge branch 'ml-qa-add-file-templates' into 'master'Sean McGivern2018-10-102-0/+32
|\ | | | | | | | | Add test of adding file templates via Web IDE and Files view See merge request gitlab-org/gitlab-ce!21914
| * Add tests of adding file templatesMark Lapierre2018-10-092-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | Adds tests that adds new files via file templates via the Files view and the Web IDE. Includes changes to page objects and associated code Fetches template content from the API rather than hardcoding strings that will need to be updated if the templates change. Some of the content is stored as flat files but we can't use them because they're not included in the docker images gitlab-qa uses.
* | Allow the registration e2e test to be skippedMark Lapierre2018-10-081-1/+13
|/ | | | | | | 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
* Enable signing in as admin when adding a licenseMark Lapierre2018-09-102-17/+23
| | | | | | | | Adds the ability to use admin credentials to add a license so that when testing an LDAP user on EE the LDAP user does not have to be an admin. Admin credentials default to GDK's root user. Can be overriden via ADMIN_USERNAME and ADMIN_PASSWORD environment variables.
* [QA] Improve the fork scenario to take a username and password instead of ↵qa-staging-2Rémy Coutable2018-08-202-3/+15
| | | | | | | | always creating a new user Fixes https://gitlab.com/gitlab-org/quality/staging/issues/2. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Reset local storage between qa testsDJ Mountney2018-07-251-0/+1
| | | | | | | | | | | | This is not done by default as it is said to incur a performance hit, paired with local storage not always being used by the site being tested. (https://github.com/teamcapybara/capybara/issues/1702#issuecomment-219483444) GitLab uses localStorage, for things like remembering which tab you used last (on the login page for example, between sign-in, ldap, and register) Fixes: https://gitlab.com/gitlab-org/gitlab-qa/issues/303
* Disambiguate 'File' under qa/ since we have a QA::Factory::Resource::File ↵Rémy Coutable2018-07-184-6/+6
| | | | | | class as well Signed-off-by: Rémy Coutable <remy@rymai.me>
* [QA] Fix duplicate year in namespace nameqa-fix-timestampRémy Coutable2018-07-121-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* [QA] Ensure screenshots are save in subfolder per QA runRémy Coutable2018-07-112-1/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
|
* [QA] Add a new scenario to test GitHub importRémy Coutable2018-07-062-1/+12
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Ensure QA specs are categorized as feature specs by RSpecRémy Coutable2018-07-051-0/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'qa-112-prefer-env-credentials-for-gcloud' into 'master'Grzegorz Bizon2018-07-041-0/+4
|\ | | | | | | | | Auto DevOps QA: Prefer gcloud credentials from env See merge request gitlab-org/gitlab-ce!20338
| * Auto DevOps QA: Prefer gcloud credentials from envDylan Griffith2018-07-031-0/+4
| |
* | [QA] Fix qa/qa/specs/features/login/ldap_spec.rb48159-qa-specs-features-login-ldap_spec-rb-is-failing-after-https-gitlab-com-gitlab-org-gitlab-ce-merge_requests-19964Rémy Coutable2018-06-201-1/+5
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Only clear the sessions if block_given? and no errorLin Jen-Shin2018-06-131-13/+1
| | | | | | Because otherwise capybara-screenshot/rspec can't take the screenshots for us. If we got an error, we don't want to continue anyway?
* Merge branch 'qa-112-fix-auto-devops-cluster-spec' into 'master'Grzegorz Bizon | off until 20th June2018-06-121-0/+12
|\ | | | | | | | | Qa 112 fix auto devops cluster spec See merge request gitlab-org/gitlab-ce!19584
| * Move ENV variables to Runtime::Env for auto devops QAqa-112-fix-auto-devops-cluster-specDylan Griffith2018-06-111-0/+12
| |
* | Improve the Runtime::API classesRémy Coutable2018-06-063-82/+82
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>