From aaf124b0f7698f5def277b02ab97f3992fe1569d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 18 Nov 2019 21:06:19 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- Gemfile | 1 + Gemfile.lock | 26 ++++++++ Guardfile | 43 ++++++++++++++ .../boards/components/modal/index.vue | 3 +- app/views/projects/issues/_issue.html.haml | 2 +- ...ate-boards-components-models-index-vue.yml | 5 ++ .../testing_guide/best_practices.md | 8 +++ .../testing_guide/end_to_end/page_objects.md | 59 +++++++++++++++++++ qa/qa/page/base.rb | 18 ++++-- qa/qa/page/element.rb | 10 +++- qa/qa/page/project/issue/index.rb | 4 ++ qa/qa/resource/issue.rb | 4 ++ .../issue/check_mentions_for_xss_spec.rb | 7 +-- .../2_plan/issue/close_issue_spec.rb | 3 +- .../collapse_comments_in_discussions_spec.rb | 3 +- .../2_plan/issue/comment_issue_spec.rb | 3 +- .../2_plan/issue/create_issue_spec.rb | 9 +-- .../issue/filter_issue_comments_spec.rb | 3 +- .../2_plan/issue/issue_suggestions_spec.rb | 3 +- .../browser_ui/2_plan/issue/mentions_spec.rb | 3 +- qa/spec/page/element_spec.rb | 18 ++++++ 21 files changed, 205 insertions(+), 30 deletions(-) create mode 100644 Guardfile create mode 100644 changelogs/unreleased/Update-boards-components-models-index-vue.yml diff --git a/Gemfile b/Gemfile index 5dd7688579f..d27bc276088 100644 --- a/Gemfile +++ b/Gemfile @@ -411,6 +411,7 @@ group :test do gem 'concurrent-ruby', '~> 1.1' gem 'test-prof', '~> 0.10.0' gem 'rspec_junit_formatter' + gem 'guard-rspec' end gem 'octokit', '~> 4.9' diff --git a/Gemfile.lock b/Gemfile.lock index 5b7785b9475..15465cd6b03 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -446,6 +446,20 @@ GEM googleapis-common-protos-types (~> 1.0) gssapi (1.2.0) ffi (>= 1.0.1) + guard (2.15.1) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-rspec (4.7.3) + guard (~> 2.1) + guard-compat (~> 1.1) + rspec (>= 2.99.0, < 4.0) haml (5.0.4) temple (>= 0.8.0) tilt @@ -561,6 +575,10 @@ GEM xml-simple licensee (8.9.2) rugged (~> 0.24) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) locale (2.1.2) lograge (0.10.0) actionpack (>= 4) @@ -570,6 +588,7 @@ GEM loofah (2.3.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) + lumberjack (1.0.13) mail (2.7.1) mini_mime (>= 0.1.1) mail_room (0.9.1) @@ -598,6 +617,7 @@ GEM mustermann (~> 1.0.0) nakayoshi_fork (0.0.4) nap (1.1.0) + nenv (0.3.0) net-ldap (0.16.0) net-ntp (2.1.3) net-ssh (5.2.0) @@ -608,6 +628,9 @@ GEM mini_portile2 (~> 2.4.0) nokogumbo (1.5.0) nokogiri + notiffany (0.1.3) + nenv (~> 0.1) + shellany (~> 0.0) numerizer (0.1.1) oauth (0.5.4) oauth2 (1.4.1) @@ -898,6 +921,7 @@ GEM ruby-progressbar (1.10.1) ruby-saml (1.7.2) nokogiri (>= 1.5.10) + ruby_dep (1.5.0) ruby_parser (3.13.1) sexp_processor (~> 4.9) rubyntlm (0.6.2) @@ -939,6 +963,7 @@ GEM faraday (>= 0.7.6, < 1.0) settingslogic (2.0.9) sexp_processor (4.12.0) + shellany (0.0.1) shoulda-matchers (4.0.1) activesupport (>= 4.2.0) sidekiq (5.2.7) @@ -1193,6 +1218,7 @@ DEPENDENCIES graphql-docs (~> 1.6.0) grpc (~> 1.24.0) gssapi + guard-rspec haml_lint (~> 0.31.0) hamlit (~> 2.8.8) hangouts-chat (~> 0.0.5) diff --git a/Guardfile b/Guardfile new file mode 100644 index 00000000000..8a43f414ca9 --- /dev/null +++ b/Guardfile @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +# More info at https://github.com/guard/guard#readme + +cmd = ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec' + +guard :rspec, cmd: cmd do + require "guard/rspec/dsl" + dsl = Guard::RSpec::Dsl.new(self) + + directories %w(app ee lib spec) + + # RSpec files + rspec = dsl.rspec + watch(rspec.spec_helper) { rspec.spec_dir } + watch(rspec.spec_support) { rspec.spec_dir } + watch(rspec.spec_files) + + # Ruby files + ruby = dsl.ruby + dsl.watch_spec_files_for(ruby.lib_files) + + # Rails files + rails = dsl.rails(view_extensions: %w(erb haml slim)) + dsl.watch_spec_files_for(rails.app_files) + dsl.watch_spec_files_for(rails.views) + + watch(rails.controllers) do |m| + [ + rspec.spec.call("routing/#{m[1]}_routing"), + rspec.spec.call("controllers/#{m[1]}_controller") + ] + end + + # Rails config changes + watch(rails.spec_helper) { rspec.spec_dir } + watch(rails.routes) { "#{rspec.spec_dir}/routing" } + watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" } + + # Capybara features specs + watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") } + watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") } +end diff --git a/app/assets/javascripts/boards/components/modal/index.vue b/app/assets/javascripts/boards/components/modal/index.vue index defa1f75ba2..618c2ada1f8 100644 --- a/app/assets/javascripts/boards/components/modal/index.vue +++ b/app/assets/javascripts/boards/components/modal/index.vue @@ -1,6 +1,7 @@