summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-09-06 18:06:08 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-09-06 18:06:08 +0200
commit1813fbf910a1c966ecf970599ceba500808d68a4 (patch)
treecf1d3319626861142cd3b34334c3ae14e0a77c4b
parentaf0eb56ea1be60a1b99d6ba7a8dd8848f0a29a6c (diff)
downloadgitlab-ce-1813fbf910a1c966ecf970599ceba500808d68a4.tar.gz
Update view for testability
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 837707707a9..3b26b8df8a1 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -41,7 +41,7 @@
= link_to _('Edit'), '#', class: 'js-sidebar-dropdown-toggle edit-link float-right', data: { track_label: "right_sidebar", track_property: "milestone", track_event: "click_edit_button", track_value: "" }
.value.hide-collapsed
- if milestone.present?
- = link_to milestone[:title], milestone[:web_url], class: "bold has-tooltip", title: sidebar_milestone_remaining_days(milestone), data: { container: "body", html: 'true', boundary: 'viewport' }
+ = link_to milestone[:title], milestone[:web_url], class: "bold has-tooltip", title: sidebar_milestone_remaining_days(milestone), data: { container: "body", html: 'true', boundary: 'viewport', qa_selector: 'milestone_link' }
- else
%span.no-value
= _('None')