Commit Graph

299 Commits

Author SHA1 Message Date
Dan Davison 739ecdb664 Merge branch 'ce-backport-of-ml-web-terminal-spec-qa' into 'master'
Backport changes from EE MR 8186

See merge request gitlab-org/gitlab-ce!31707
2019-08-29 23:46:47 +00:00
Mark Lapierre 7a2bc31e38 Backport changes from EE
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8186
2019-08-29 13:07:43 +10:00
Sanad Liaquat 2ad1621c7f Merge branch 'qa-restric-access-by-ip-address-spec-ce' into 'master'
CE Backport of EE changes

See merge request gitlab-org/gitlab-ce!32203
2019-08-28 05:11:21 +00:00
Mark Lapierre 4a55138efc Merge branch 'sh-rate-limits-qa' into 'master'
Add QA specs for using IP rate limits

See merge request gitlab-org/gitlab-ce!32177
2019-08-27 22:41:38 +00:00
Dan Davison ca5724be5d Merge branch 'qa-autodevops-smoke-check' into 'master'
Ensure autodevops is enabled before running Smoke test

See merge request gitlab-org/gitlab-ce!31867
2019-08-27 17:13:13 +00:00
Sanad Liaquat 7a162e1a8f CE Backport of EE changes
Add qa selector elements and files from the EE branch
2019-08-27 10:48:04 +05:00
Stan Hu 9f219873a1 Add QA specs for using IP rate limits
This will help prevent issues such as
https://gitlab.com/gitlab-org/gitlab-ce/issues/66449.
2019-08-26 22:07:13 -07:00
Peter Leitzen 093e954616 Extract gcloud and minikube cluster provider
Add cluster provider k3d
2019-08-26 16:55:03 +00:00
Yorick Peterse 6aa215aaea
Support X_if_ee methods for QA tests
For the QA tests to use the new injection methods, we must require the
initializer and ensure that the "constantize" method is available.
2019-08-19 09:43:37 +02:00
ddavison 790a1cd911
Ensure autodevops is enabled before running Smoke test
Extract #enable_autodevops to new page object
Change Smoke test naming to only running pipeline
Generate AutoDevOps project with SecureRandom suffix
2019-08-15 13:36:38 -07:00
Mark Lapierre 8ff68917b8 Revert "Merge branch 'backport-fix-remaining-prepend-lines' into 'master'"
This reverts merge request !31379
2019-08-05 04:02:08 +00:00
Yorick Peterse 27194e0852
Support X_if_ee methods for QA tests
For the QA tests to use the new injection methods, we must require the
initializer and ensure that the "constantize" method is available.
2019-08-01 16:10:05 +02:00
Tomislav Nikic 7906503d97 Getting on par with EE
This commit covers all the files that where changed in the
identically named branch on EE that is creating an elasticsearch
test case.
2019-07-30 08:04:26 +00:00
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
Jennifer Louie 700853a178 QA: transfer project spec 2019-07-02 08:05:31 +00:00
ddavison 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
Sean McGivern c6456830b5 Add QA tests for the performance bar
These are very high-level. Currently, they test:

1. That the performance bar appears.
2. That it has detailed metrics for Postgres and Gitaly.
3. That AJAX requests are included in the request selector.
2019-04-16 14:33:06 +01:00
Mark Lapierre 67c38a6573 Set feature flag via command line
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)
2019-03-27 19:03:03 +00:00
Roman Verevkin e6c24bdbae Add a new test to create a snippet
Add "smoke" tag to the test

Fix links to views in Page Object files

Review fixes

Remove useless view block

Implement Snippets::Show page object class

Fix review suggestions

Fix review suggestions 2

Fix test with empty snippets state

Remove useless css class

Fix issues
2019-03-13 23:16:11 +03:00
Mark Lapierre c6a6b8a24e Skip contexts in quarantine
This avoids running before/after blocks for tests that are in quarantine
2019-03-11 11:50:09 +00:00
ddavison 5ae46fe7a5
Add smoke test for autodevops
Add tag validation on pipeline page
2019-02-21 09:20:07 -08:00
Sanad Liaquat 87026ee3aa Refactor select_*_filter methods
Also use refactor retry_on_excpetion and use it in select_*_filter
methods
2019-02-19 11:41:52 +05:00
Mark Lapierre 97265d39e7 [CE] Improve `wait_for_push` 2019-02-11 09:04:59 +00:00
Mesut Güneş ec3c3d2bd7 adding a spec for issues/310 2019-02-01 14:38:07 +00:00
Sanad Liaquat e8f8adfe27 Add e2e QA test for logging in using GitHub OAuth
Adds the test itself and the vendor page object model for GitHub
login pages.
2019-02-01 10:50:24 +05:00
Mark Lapierre 38fcb11f97 Fix flaky wiki create test
There's an svg on the page that allows you to create a wiki page.
The svg takes a fraction of a second to load after which the
"Create your first page" button shifts up a bit. This can cause
 webdriver to miss the hit so we wait for the svg to load before
clicking the button.

Also update the elements used in the test to conform to our best
practice.

And replace `act` with `perform`

Finally, remove the `before` block and `login` method, making the
code slightly simpler.
2019-01-29 16:18:04 -05:00
Walmyr Filho 29819c49c7 Split `Page::Project::Menu` into separate submenus
https://gitlab.com/gitlab-org/quality/team-tasks/issues/84
2019-01-24 16:43:21 +01:00
Walmyr 14165f3a26 Add test case to check that branches are correctly listed after CRUD operations 2019-01-16 17:55:15 +00:00
Ramya Authappan d3c73487c5 Collapsible Comments Test for Issues 2019-01-03 14:57:51 +00:00
Zeff Morgan 12c358f1b7 Add tests for plain diff/email patch options
Add spec file using before(:context) to reduce test time. With testing
almost identical things, unnecessary to make them completely atomic.
Includes two helper methods. Since the raw_content method is the only
function needed on that page, created the method in the spec instead
of adding another page object.

Setup new project/commit page object and update project/show to add
go_to_commit method. The go_to_commit method is near duplicate of
go_to_file method, but decided to split them off to reduce overall
refactoring and simplify language.

Also add selectors to commit box partial and update qa.rb to load
new page object.
2018-12-11 14:06:22 -05:00
Mark Lapierre c61c5cf2d9 Update E2E tests for Project overview UI changes
Includes updates to how clone URLs are accessed.
2018-12-10 13:07:38 -05:00
Mark Lapierre 1e033f5bd4 Add e2e test: push mirroring over HTTP
Adds an end-to-end test of push mirroring a repository over HTTP.

Includes addition of QA selectors to views
2018-12-05 08:58:05 -05:00
Sanad Liaquat 553a65df04 Port ee changes 2018-11-26 13:04:48 +05:00
Lin Jen-Shin 4d0fd75cd5 Rename QA::Factory to QA::Resource
* Factory::Base -> Resource::Base, and therefore:
* Factory::Resource::Project -> Resource::Project
2018-11-05 22:20:57 +08:00
Lin Jen-Shin e7741b0e52 CE: Absorb product into factory 2018-10-31 02:44:47 +00:00
Marcel Amirault 14fc739c94 Renaming Secret Variables in the codebase 2018-10-30 08:49:26 +00:00
Stan Hu 1815aa561a Merge branch 'qa-59-ldap-ssl-scenario' into 'master'
E2E Test - LDAP login with SSL

Closes gitlab-qa#59

See merge request gitlab-org/gitlab-ce!22574
2018-10-26 15:59:49 +00:00
Lin Jen-Shin 5151801964 Always use `attribute` to define the product 2018-10-25 20:29:24 +00:00
Sanad Liaquat f49034ba49 Rename SSL to TLS 2018-10-25 13:11:19 +05:00
Sanad Liaquat 7983c798af Renamed to ldap_no_ssl and ldap_ssl 2018-10-24 17:43:30 +05:00
Sanad Liaquat 38a6ecbe3e Added ldap_ssl tag to existing test 2018-10-24 13:45:09 +05: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
Rémy Coutable b6f2f738c7 First iteration to allow creating QA resources using the API 2018-10-17 18:08:20 +00:00
Aleksandr Soborov a68b6315f1 Extend Create New Merge Request test to also add a label 2018-10-17 12:17:32 +00:00
Stan Hu bf4568811a Add GitLab QA spec for adding a deploy token 2018-10-12 06:07:41 -07:00
Rémy Coutable 5b6b2871df Merge branch 'qa-257-instance-wide-saml-sso' into 'master'
Instance SAML SSO e2e test

Closes gitlab-qa#257

See merge request gitlab-org/gitlab-ce!22271
2018-10-11 14:17:51 +00:00
Sanad Liaquat 154ce29d05 Initial commit
Use ACCEPT_INSECURE_CERTS env var and fix step

Simplify saml signin

Fix rubo cop offence

Add missing # frozen_string_literal: true
2018-10-11 13:19:53 +05:00
Mark Lapierre 5944ff572c Add test to add a new project member
Adds a new QA test and the required page objects and related changes
2018-10-10 15:17:22 -04:00
Sean McGivern 687fa6641c Merge branch 'ml-qa-add-file-templates' into 'master'
Add test of adding file templates via Web IDE and Files view

See merge request gitlab-org/gitlab-ce!21914
2018-10-10 08:41:53 +00:00
Rémy Coutable ca440758be Merge branch 'qa-60-reorganize-menu-classes' into 'master'
Reorganize menu files

Closes gitlab-org/quality/team-tasks#60

See merge request gitlab-org/gitlab-ce!22115
2018-10-09 16:54:30 +00:00
Mark Lapierre d36055cbef Add tests of adding file templates
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.
2018-10-09 11:17:02 -04:00
Rémy Coutable cf7aea84f3 Merge branch 'qa-304-auto-devops-open-live-environment' into 'master'
Assert prod environment is live after Auto Devops

See merge request gitlab-org/gitlab-ce!22131
2018-10-09 14:34:48 +00:00
sliaquat b7a5b204ba Reorganize menu files
Add missed files

Use correct method

Implement review feedback

Add missing frozen_string_literal

Squash 5 commits
2018-10-09 16:24:29 +05:00
Thong Kuah bde028c4af Assert prod environment is live after Auto Devops
Goes to Operations > Environments and clicks on the
"View deployment" link for production.
2018-10-08 09:06:00 +13:00
Ramya Authappan 637df35f08 Adding qa-selectors for e2e tests 2018-10-05 09:00:55 +00:00
Rémy Coutable 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
Robert Speicher c44d8bab91 Merge branch 'ml-qa-spec-use-ssh-key' into 'master'
Add a new scenario to add an SSH key, perform Git actions with it, and then remove the key

See merge request gitlab-org/gitlab-ce!19754
2018-09-17 23:05:07 +00:00
Mark Lapierre 6cf55e5129 Add an SSH key and use it to clone and push
Adds 2 end-to-end tests:

1. Add and remove an SSH key
2. Add an SSH key and use it to clone and push

Includes changes to factories to allow Git actions via SSH
2018-09-15 11:09:34 -04:00
Rémy Coutable cbae3e974d
[QA] Change Test::Sanity::Failing to Test::Sanity::Framework
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-06 17:53:23 +02:00
Rémy Coutable 70b7cf3588
[QA] Ensure groups filtering does not happen before the groups list is loaded
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-05 15:35:33 +02:00
Grzegorz Bizon 13f557d0b8 Merge branch 'qa-28' into 'master'
[QA] Add a new Test::Sanity::Failing scenario that always fails

Closes gitlab-qa#28

See merge request gitlab-org/gitlab-ce!21477
2018-09-04 15:37:20 +00:00
Rémy Coutable c43a6bb3b7
[QA] Move Page::Shared::ClonePanel to Page::Component::ClonePanel
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-03 18:06:21 +02:00
Rémy Coutable 86e5dcdb21
[QA] Add a new Test::Sanity::Failing scenario that always fails
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-03 17:41:44 +02:00
Stan Hu 14105b5ee9 Merge branch 'master' into sh-add-object-storage-qa 2018-08-29 10:54:24 -07:00
Rémy Coutable 3f64b1ad20
[QA] Re-add Test::Instance for back-compatibility with GitLab < 11.3
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-22 10:21:14 +02:00
Grzegorz Bizon 6232c26ac7 Merge branch 'master' into sh-add-object-storage-qa
* master: (31 commits)
2018-08-21 11:12:23 +02:00
Stan Hu 00aa4d4c8c Add basic QA test for testing attachment uploads 2018-08-20 11:56:23 -07:00
Dan Davison d67936b68f add initial smoke tests and documentation 2018-08-20 18:13:54 +00:00
Sanad Liaquat 7e1f90ab90 QA scenario to add/edit/delete a file via the Web UI 2018-07-17 13:34:55 +00:00
Rémy Coutable 5507ad8f7a
Ensure Encoding.default_external is set to UTF-8 when running QA scenarios
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-12 17:41:57 +02:00
Mykhailo Formus 29955c9c47 Adding spec to test basic forking functionalities 2018-07-12 11:59:40 +00:00
Dan Davison f72adcc981 Milestone tests 2018-07-11 14:59:00 +00:00
Rémy Coutable 2ad990bba0 [QA] Add a new scenario to test GitHub import
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-06 14:22:00 +02:00
Rémy Coutable 01796734d0 [QA] Add a new Page::Issuable::Show page
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-07-06 14:22:00 +02:00
Ramya A bc07b89fc2 Added Wiki Scenario Automation gitlab-qa#263 2018-06-20 17:22:05 +00:00
Rémy Coutable 9e5841a0ae
Improve the Runtime::API classes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-06-06 20:12:29 +02:00
Dylan Griffith 2ae48f1ca9 Add QA integration test for full Auto DevOps flow 2018-06-04 17:20:48 +02:00
Lin Jen-Shin 1421469e22 Merge remote-tracking branch 'upstream/master' into qa-add-more-key-tests
* upstream/master: (166 commits)
  Flowdock uses Gitaly, not Grit
  Removes 'no job log' from trace action
  Fix missing namespace for some internal users
  Dedupe yarn dependencies
  Downgrade MySQL CI service from 8.0 to 5.7
  Atomic internal ids for all models
  Add documentation on how to configure Redis Sentinel by persistent class
  Update CHANGELOG.md for 10.7.0
  Update index.md
  Resolve "Text from the diff is showing within a table header inside the discussion after the discussion is resolved"
  Don't include lfs_file_locks data in export bundle
  Documentation: Frontend Building Checklist
  Fix a documentation typo for GitLab pages
  Refactored activity calendar
  Add an API endpoint to download git repository snapshots
  Fix issues without links when added from boards new issue  modal
  Respect visibility options and description when importing project from template
  Resolve "Improve tooltips of collapsed sidebars"
  Update Container Scanning documentation
  Fix typo in vue.md
  ...
2018-04-23 17:42:56 +08:00
Lin Jen-Shin 8d4ad0c7db Merge remote-tracking branch 'upstream/master' into qa-add-more-key-tests
* upstream/master: (536 commits)
  Fix flash errors in performance bar for cached responses
  Force content to align right
  Method to track recoverable exceptions in sentry
  Move PipelineFailed vue component
  fixed targetmode being included in project
  FE Docs: Fix header hierarchy in Vuex section of Vue.md
  Adds helpers to remove withespace and linebreaks
  `package-qa` was renamed to `package-and-qa`
  Fix container scanning in vendored GitLab CI configuration for Auto Devops
  Fixed web IDE not working for sub-groups
  Remove web ide beta flag from docs and update
  Make the message break into a new line instead of truncating it
  Backport Web IDE docs to gitlab-ce
  link to product handbook piece on permissions
  Update faraday_middlewar to 0.12.2
  Double-check next value for internal ids.
  Resolve "skeleton placeholder on diff has white background"
  Replace the `project/commits/comments.feature` spinach test with an rspec analog
  Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb
  Update docs on `.gitlab-ci.yml` and variables policy
  ...
2018-04-17 20:55:47 +08:00
Oswaldo Ferreira 55e4867d8b Add QA tests for protected branches 2018-04-16 16:35:13 -03:00
Dmitriy Zaporozhets 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
Lin Jen-Shin 187711c1b0 Remove test against DSA ssh keys because
we're not really supporting them out of the box. See:
https://gitlab.com/gitlab-org/gitlab-ce/issues/44363
2018-03-29 19:40:32 +08:00
Lin Jen-Shin 211b2f390c Implement other ssh keys and use ssh-keygen instead 2018-03-29 19:40:32 +08:00
Lin Jen-Shin 9a538b9eeb Introduce Key namespace so we could put more keys 2018-03-29 19:40:32 +08:00
Felipe Artur 73e5039573 test merge request rebase 2018-02-19 16:16:56 -03:00
Lin Jen-Shin 59d49f70c3 Rename Git::Repository::Location to Git::Location 2018-02-13 23:35:45 +08:00
Lin Jen-Shin 09a3b8fb65 Merge remote-tracking branch 'upstream/master' into qa-clone-with-deploy-key
* upstream/master: (466 commits)
  Set initial password for instance in LDAP QA test
  Backport EE changes to some hashed storage documentation to CE
  Remove allow_n_plus_1 from Git::Repository#branches_filter
  Bumps Gitlab Shell version to 6.0.3
  Make resetting column information overridable in EE
  Added 'clear' button to ci lint editor
  Issues and merge requests in subgroups docs
  Update docs labels CE
  Refactored merge_requests/show path in dispatcher.js
  wording
  don't check against a hardcoded user name
  10.5 Update the dependencies license list
  10.5 Update the .gitignore, .gitlab-ci.yml, and Dockerfile templates
  Create update guide for 10.5
  Update 10.5 source install guide
  Add docs for MR link in commit page
  Add groups to OpenID Connect claims
  Replaced $.get with axois.get
  Memoize MergeRequest#rebase_in_progress? to prevent N+1 queries in Gitaly
  Update style_guide_scss.md
  ...
2018-02-09 18:12:20 +08:00
Stan Hu 739916748d Address review comments for LDAP QA test 2018-02-06 16:27:37 -08:00
Lin Jen-Shin 1264e2b6e8 WIP 2018-02-05 23:34:40 +08:00
Stan Hu 9638ecbcbc Add QA specs for LDAP login 2018-02-04 21:38:07 -08:00
Rémy Coutable 2f4d088fb4
Introduce a new QA::Gitlab::Page::Component::Dropzone class
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-31 11:09:21 +01:00
Rémy Coutable 38f3000817
Port changes from gitlab-org/gitlab-ee!4064 to CE
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-30 14:06:16 +01:00
Grzegorz Bizon 57892e6dec Merge branch 'qa_78_create_merge_request' into 'master'
Create merge request factory

See merge request gitlab-org/gitlab-ce!15964
2018-01-29 13:00:04 +00:00
Felipe Artur 3a1e06d6a2 Create merge request spec 2018-01-26 12:03:25 -02:00
Grzegorz Bizon d77ced23a5 Merge branch 'qa/ee-4698-backport' into 'master'
Backport QA changes from EE

Closes gitlab-ee#4698

See merge request gitlab-org/gitlab-ce!16728
2018-01-26 11:24:23 +00:00
Rémy Coutable 4a85dfd0b2 Merge branch 'filipefreire_155' into 'master'
gitlab-qa !155 - push creates event on activity page

See merge request gitlab-org/gitlab-ce!16423
2018-01-26 11:21:59 +00:00
Lin Jen-Shin b54beca7ab Merge remote-tracking branch 'upstream/master' into qa/ee-4698-backport
* upstream/master:
  Just don't expand if it's already expanded
  fix bug in webpack_helper in which force_same_domain argument was ignored breaking local rspec tests
  Fix rubocop offenses introduced in !16623
  Prefer local variables over given/let
  Try to restore page's state
  Add more views check
  Respect the latest changes from master
  Add a scenario for adding secret variables
2018-01-26 17:25:48 +08:00
Gabriel Mazetto a33f7050be Backport QA changes from EE 2018-01-26 04:17:33 +01:00
Filipe Freire 03b87ec943 Merge branch 'master' of https://gitlab.com/filipefreire/gitlab-ce into filipefreire_155 2018-01-25 20:23:19 +00:00
Lin Jen-Shin 7d26eddece Merge remote-tracking branch 'upstream/master' into qa-secret-variables-scenario
* upstream/master:
  Make Gitaly RepositoryExists opt-out
  Fix .batch_lfs_pointers accepting a lazy enumerator
  Look at notes created just before merge when deciding if an MR can be reverted
  Update missing paths
  Default to HTTPS for all Gravatar URLs
  Add note within ux documentation that further changes should be made within the design.gitlab project
  Moves status icon into a vue file and adds tests Moves merging component into a vue file, adds i18n and better test cases
  Prefer local variables instead
  Add an test for QA::Runtime::RSAKey
  Move initialize method later.
  Also test if the fingerprint is correct
  Generate ssh key on the fly for QA
2018-01-25 22:35:56 +08:00
Lin Jen-Shin 8586391e07 Respect the latest changes from master
Basically using the new expand_section
2018-01-25 21:11:44 +08:00
Grzegorz Bizon 7ea8ea8e1a Merge branch 'qa-deploy-key-scenario' into 'master'
Generate ssh key on the fly for QA

See merge request gitlab-org/gitlab-ce!16562
2018-01-25 12:01:28 +00:00
Lin Jen-Shin 209c4c5e3e Merge remote-tracking branch 'upstream/master' into qa-secret-variables-scenario
* upstream/master: (136 commits)
  Revert "Merge branch 'osw-updates-merge-status-on-api-actions' into 'master'"
  Add modal for deleting a milestone
  Revert "Merge branch 'remove-rugged-walk' into 'master'"
  Resolve "Link to Clusters in Auto DevOps instead of Kubernetes service"
  Update CHANGELOG.md for 10.4.1
  Add a gRPC health check to ensure Gitaly is up
  Add formatted_data attribute to Git::WikiPage
  Avoid array indices to fixtures in JS specs
  Migrate .batch_lfs_pointers to Gitaly
  Updates `Revert this merge request` text
  Work around a bug in DatabaseCleaner when using the deletion strategy on MySQL
  Use the DatabaseCleaner 'deletion' strategy instead of 'truncation'
  Workaround a recaptcha pop-up that cannot be tested
  Uses sprite icon to render verified commit badge and uniforms css colors
  Moves more mr widget components into vue files Adds i18n Adds better test coverage
  Execute system hooks after-commit when executing project hooks
  Remove one Spinach job and add one RSpec job
  Remove callback as we already update accordingly on services
  Fix typo in `.gitlab-ci.yml` heading
  Migrate repository bundling to Gitaly
  ...
2018-01-25 19:52:07 +08:00
Lin Jen-Shin ada39be67a Merge remote-tracking branch 'upstream/master' into qa-deploy-key-scenario
* upstream/master: (106 commits)
  Remove callback as we already update accordingly on services
  added missing imports
  correctly imports performance bar
  Added imports for dispatcher routes
  Make the exposing of the Application secret more explicit
  Add documentation about when the application API was added
  Add application create API
  Return a blank JSON response for a missing .js file to prevent Rails CSRF errors
  add CHANGELOG.md entry for !15804
  disable CopyAsGFM on iOS due to bug in webkit
  Update changelog
  GitalyClient::ConflictsService#conflicts? should return true for conflicts with missing side
  Return more consistent values for merge_status on MR API
  Fix a migration spec messing up the MergeRequestDiff DB schema
  Backport changes to Gitlab::Checks::ChangeAccess from EE
  remove webpack bundle tag for monitoring:environments:metrics
  Set timezone for karma to UTC
  Upgrade jasmine + raven to newer versions
  Ensure Gitaly Ruby gems are installed using the correct Gemfile and at the correct location
  Clarify that a feature that isn't in review by the 1st or 3rd doesn't necessarily miss the freeze
  ...
2018-01-24 23:13:56 +08:00
Grzegorz Bizon 41498864a0 Merge branch 'master' into qa/gb/ci-cd-qa-pipelines
* master: (69 commits)

Conflicts:
	qa/qa.rb
2018-01-23 13:04:58 +01:00
Grzegorz Bizon ededa488f2 Assert on pipeline jobs statuses in CI/CD QA tests 2018-01-23 12:56:06 +01:00
Grzegorz Bizon 5cb94835c0 Refactor QA instance test scenario and tags 2018-01-23 12:04:01 +01:00
Brett Walker b8b9e9eb8e Add ability to drive the API in QA specs 2018-01-23 10:23:23 +00:00
Grzegorz Bizon 50a82f64e5 Add end-to-end test for registering GitLab Runner 2018-01-22 14:03:03 +01:00
Lin Jen-Shin ca7e1058e8 Add a scenario for adding secret variables 2018-01-22 18:22:44 +08:00
Grzegorz Bizon d0b08f1c50 Add GitLab Runner service to GitLab QA 2018-01-22 09:59:55 +01:00
Lin Jen-Shin ccceb26617 Generate ssh key on the fly for QA 2018-01-22 15:41:52 +08:00
Filipe Freire d7caa2f8cc improvements after CR
+ move activity click to side.rb
+ add element check on activity.rb
+ minor fixes
2018-01-16 20:20:57 +00:00
Filipe Freire a1a5d14298 improvement after CR
- test reaches Activity page
- the actual git push seems to be failing
- had problems with defining selectors
2018-01-12 17:45:08 +00:00
Grzegorz Bizon d5a92c53dd Implement QA pages and views validator 2018-01-09 11:28:14 +01:00
Grzegorz Bizon 489267e6dd Merge branch 'master' into qa/gb/validate-qa-selectors
* master: (429 commits)
2018-01-09 09:42:43 +01:00
Brett Walker 6762d2875e Resolve "Allow QA tests to run with `CHROME_HEADLESS=false`" 2018-01-08 12:44:32 +00:00
Lin Jen-Shin 1e79ebf044 Put all menus under menu module 2018-01-02 22:27:01 +08:00
Lin Jen-Shin 7945878d45 Introduce common project settings and just put
everything in the scenario without a before block.
2018-01-02 22:27:01 +08:00
Lin Jen-Shin 9f7fe67741 Introduce Factory::Resource::DeployKey 2018-01-02 22:27:01 +08:00
Lin Jen-Shin bc5552b359 Introduce Menu::Side 2018-01-02 22:27:01 +08:00
Lin Jen-Shin 2078cb4e84 Rename DeployKey to DeployKeys 2017-12-28 20:50:22 +08:00
Lin Jen-Shin 7377b97c5f QA: Add a scenario for adding a deploy key 2017-12-28 17:20:33 +08:00
Grzegorz Bizon 208411ee62 Add QA classes that represent view partials and elements 2017-12-22 11:54:08 +01:00
Grzegorz Bizon 32424e461b Add QA sanity selectors scenario entrypoint 2017-12-22 11:51:25 +01:00
Grzegorz Bizon 6df36c9d90 Add support for defining explicit dependencies to QA factories 2017-12-21 09:38:06 +00:00
Grzegorz Bizon 890066e20d Fix remaining calls to GitLab QA factories 2017-12-15 10:46:58 +01:00
Grzegorz Bizon 5c393b39ab Rename QA scenarios to make factory concept explicit 2017-12-15 10:46:58 +01:00
Grzegorz Bizon 9b9c62202c Merge branch 'master' into qa/gb/selenium-handle-domain-sessions
* master: (93 commits)
2017-12-11 14:17:11 +01:00
Felipe Artur 77c9632e9c Turn push file into a scenario 2017-12-07 11:30:32 -02:00
Grzegorz Bizon fc00d739fc Merge branch 'master' into qa/gb/selenium-handle-domain-sessions
* master: (694 commits)

Conflicts:
	qa/qa/page/base.rb
	qa/qa/page/main/entry.rb
2017-12-07 13:40:25 +01:00
Rémy Coutable dabd858812 Backport QA code that belongs to CE from EE Geo
Merge branch 'qa/gb/add-geo-integration-tests' into 'master'

See merge request gitlab-org/gitlab-ee!3294
2017-11-22 11:18:07 +01:00
Grzegorz Bizon 6e1df95ed3 Remove GitLab entry page class in QA
[ci skip]
2017-11-17 17:51:09 +01:00
Grzegorz Bizon 0430524bfe WIP Handle domain sessions better in QA test scenario
[ci skip]
2017-11-17 15:19:42 +01:00
Rémy Coutable 49d17e78ce Change Page::Main::Entry to only visit an entrypoint and introduce Page::Main::Login to handle actual log-in
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-11-10 16:06:29 +01:00
Grzegorz Bizon 7710364667 Make it possible to define global scenario attributes 2017-11-09 11:53:57 +00:00
Richard Clamp ce3b81b953 Add tests for mattermost login via oauth
* Adds Runtime::Scenario as a place to record the properties of the
  Scenario we're interested in.

* Adds a positional argument to Test::Integration::Mattermost to specify
  Runtime::Scenario.mattermost

* Adds Page::Mattermost::{Main,Login} to model the mattermost pages we
  need to interact with.

* Adds qa/features/mattermost/login_spec to perform a login via oauth
  and ensure we are logged in.
2017-10-30 14:48:40 +00:00
Richard Clamp 60e8347c7f Add Test::Integration::Mattermost
Here we add a new entrypoint for the test suite,
Test::Integration::Mattermost.  It is to ensure that mattermost
integration is working when enabling the embedded mattermost of
gitlab-omnibus

It runs all the example groups from Test::Instance, in addition to any
groups tagged :mattermost

* Extracts a common entrypoint class from Test::Instance as
  Scenario::Entrypoint, and uses that as the base for Test::Instance and
  Test::Integration::Mattermost

* RSpec groups defined in `specs/features/mattermost/**_spec.rb` are
  tagged with :mattermost so they can be filtered out of the default
  run.

* Tests tagged :mattermost are filtered out by default, and are
  un-filtered by Test::Integration::Mattermost
2017-10-13 14:04:38 +01:00
Robert Speicher 395820782f Add QA::Scenario::Gitlab::Group::Create 2017-10-09 14:25:38 +02:00
Robert Speicher 348c610592 Add QA::Page::Group::New to fill in the "Create group" form 2017-10-06 15:27:19 +02:00
Robert Speicher 9972b0e6a0 Use autoloading instead of an explicit require 2017-10-06 12:59:06 +02:00
Grzegorz Bizon a6ac872b86 Fix new project selectors in GitLab QA 2017-07-21 12:13:27 +02:00
Grzegorz Bizon 1eeb70843f Fix QA test scenario for creating a new project 2017-07-10 11:42:21 +02:00
Grzegorz Bizon 0731365b9d Add GitLab QA CE strategy and simplify inflector 2017-03-13 13:54:33 +01:00
Grzegorz Bizon 6373ef07c7 Remove EE classes from GitLab QA merged into CE 2017-03-09 12:29:55 +01:00
Grzegorz Bizon 92c3a9941c Fix using release inflector to define autoloads 2017-03-09 12:22:47 +01:00
Grzegorz Bizon 5becdf0194 Implement GitLab QA release inflection strategy 2017-03-09 12:18:55 +01:00
Grzegorz Bizon 161d0aa43d Fix Rubocop offense and remove QA Rubocop from deps 2017-03-09 10:36:27 +01:00
Grzegorz Bizon 7d20e47622 Add GitLab QA integrations tests to GitLab CE / EE 2017-03-09 10:36:27 +01:00