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/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-03 12:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-03 12:09:20 +0300
commit3d8459c18b7a20d9142359bb9334b467e774eb36 (patch)
tree109d881c19a27cdae131bf5e82f1216401d9df2b /qa
parente0a415ccb7a7e59c7a6c16841bdd1668d2ef0be5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/issue/show.rb5
-rw-r--r--qa/qa/support/matchers/have_matcher.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb
index 882924c003b..8092b69d377 100644
--- a/qa/qa/page/project/issue/show.rb
+++ b/qa/qa/page/project/issue/show.rb
@@ -77,6 +77,11 @@ module QA
has_element?('delete-issue-button')
end
+ def has_no_delete_issue_button?
+ open_actions_dropdown
+ has_no_element?('delete-issue-button')
+ end
+
def delete_issue
has_delete_issue_button?
diff --git a/qa/qa/support/matchers/have_matcher.rb b/qa/qa/support/matchers/have_matcher.rb
index c77b585ada8..6fa88ef205b 100644
--- a/qa/qa/support/matchers/have_matcher.rb
+++ b/qa/qa/support/matchers/have_matcher.rb
@@ -30,6 +30,7 @@ module QA
alert_with_title
incident
framework
+ delete_issue_button
].each do |predicate|
RSpec::Matchers.define "have_#{predicate}" do |*args, **kwargs|
match do |page_object|