summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_close_reopen_button.html.haml
diff options
context:
space:
mode:
authorNailia Iskhakova <niskhakova@gitlab.com>2019-08-29 09:30:04 +0000
committerRémy Coutable <remy@rymai.me>2019-08-29 09:30:04 +0000
commit8a5aa52813b8aa54ea3de2a860dc853038fac616 (patch)
tree4e7c7ce52440f20a8bb2b57648a9f7aec780e31c /app/views/shared/issuable/_close_reopen_button.html.haml
parenta3c25718ac9dc37424234ade0ac59b789874d4f6 (diff)
downloadgitlab-ce-8a5aa52813b8aa54ea3de2a860dc853038fac616.tar.gz
Add E2E spec to ensure that issue closes
Add E2E spec to test that issue closes with commit message
Diffstat (limited to 'app/views/shared/issuable/_close_reopen_button.html.haml')
-rw-r--r--app/views/shared/issuable/_close_reopen_button.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_close_reopen_button.html.haml b/app/views/shared/issuable/_close_reopen_button.html.haml
index 4f6a71b6071..875cacd1f4f 100644
--- a/app/views/shared/issuable/_close_reopen_button.html.haml
+++ b/app/views/shared/issuable/_close_reopen_button.html.haml
@@ -9,7 +9,7 @@
class: "d-none d-sm-none d-md-block btn btn-grouped btn-close js-btn-issue-action #{issuable_button_visibility(issuable, true)}", title: "Close #{display_issuable_type}"
- if can_reopen
= link_to "Reopen #{display_issuable_type}", reopen_issuable_path(issuable), method: button_method,
- class: "d-none d-sm-none d-md-block btn btn-grouped btn-reopen js-btn-issue-action #{issuable_button_visibility(issuable, false)}", title: "Reopen #{display_issuable_type}"
+ class: "d-none d-sm-none d-md-block btn btn-grouped btn-reopen js-btn-issue-action #{issuable_button_visibility(issuable, false)}", title: "Reopen #{display_issuable_type}", data: { qa_selector: 'reopen_issue_button' }
- else
- if can_update && !are_close_and_open_buttons_hidden
= render 'shared/issuable/close_reopen_report_toggle', issuable: issuable