summaryrefslogtreecommitdiff
path: root/rubocop/cop/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 23:18:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 23:18:09 +0000
commit6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch)
treedc4d20fe6064752c0bd323187252c77e0a89144b /rubocop/cop/qa
parent9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff)
downloadgitlab-ce-6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde.tar.gz
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'rubocop/cop/qa')
-rw-r--r--rubocop/cop/qa/ambiguous_page_object_name.rb2
-rw-r--r--rubocop/cop/qa/element_with_pattern.rb2
-rw-r--r--rubocop/cop/qa/selector_usage.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/rubocop/cop/qa/ambiguous_page_object_name.rb b/rubocop/cop/qa/ambiguous_page_object_name.rb
index a4a2c04f61f..a331851bcc5 100644
--- a/rubocop/cop/qa/ambiguous_page_object_name.rb
+++ b/rubocop/cop/qa/ambiguous_page_object_name.rb
@@ -16,7 +16,7 @@ module RuboCop
# # good
# Page::Object.perform do |object| do ...
# Page::Another.perform { |another| ... }
- class AmbiguousPageObjectName < RuboCop::Cop::Cop
+ class AmbiguousPageObjectName < RuboCop::Cop::Base
include QAHelpers
MESSAGE = "Don't use 'page' as a name for a Page Object. Use `%s` instead."
diff --git a/rubocop/cop/qa/element_with_pattern.rb b/rubocop/cop/qa/element_with_pattern.rb
index d0a42497960..387ca3eb517 100644
--- a/rubocop/cop/qa/element_with_pattern.rb
+++ b/rubocop/cop/qa/element_with_pattern.rb
@@ -16,7 +16,7 @@ module RuboCop
# # good
# element :some_element
# element :some_element, required: true
- class ElementWithPattern < RuboCop::Cop::Cop
+ class ElementWithPattern < RuboCop::Cop::Base
include QAHelpers
MESSAGE = "Don't use a pattern for element, create a corresponding `%s` instead."
diff --git a/rubocop/cop/qa/selector_usage.rb b/rubocop/cop/qa/selector_usage.rb
index 568b1c30851..d615bd2926c 100644
--- a/rubocop/cop/qa/selector_usage.rb
+++ b/rubocop/cop/qa/selector_usage.rb
@@ -16,7 +16,7 @@ module RuboCop
# # good
# find('[data-testid="the_selector"]')
# find('#selector')
- class SelectorUsage < RuboCop::Cop::Cop
+ class SelectorUsage < RuboCop::Cop::Base
include QAHelpers
include CodeReuseHelpers