Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-30 12:10:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-30 12:10:38 +0300
commit4310bd9b3d275c371bc26045ba52dead17a96260 (patch)
treed0217024611eef99004a08b3feb5445f8fa8ea43 /danger
parentbb1221318722595bcf917354f9d29621ca7413d5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r--danger/qa_selector/Dangerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/danger/qa_selector/Dangerfile b/danger/qa_selector/Dangerfile
index 57f992ec160..c8450bffe27 100644
--- a/danger/qa_selector/Dangerfile
+++ b/danger/qa_selector/Dangerfile
@@ -2,13 +2,15 @@
return if helper.stable_branch?
-data_testids = /testid|data-testid|find_by_testid|within_testid/
+data_testids = /testid/
deprecated_qa_selectors = /(?=qa_selector|data-qa-selector)|(?!.*\bdata-qa-)(?=class=.*qa-.*|class: .*qa-.*)/
def filter_changed_lines(files, pattern)
lines = []
files.each do |file|
+ next if file.start_with?('spec/', 'ee/spec/', 'qa/')
+
testid_changed_lines = helper.changed_lines(file).select { |line| line =~ pattern }
next unless testid_changed_lines.any?