Commit Graph

299 Commits

Author SHA1 Message Date
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