summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-02-18 10:01:04 +0000
committerRémy Coutable <remy@rymai.me>2019-02-18 10:01:04 +0000
commit250bde53e22406ebd101a34bfc52dd8886dedba9 (patch)
treedbcdff8250935b7267d79a22963c54c9e57fb148
parent431bbfa20a9d92d3afbcc0d1bdce5f1c2566a645 (diff)
parent18d5541cc96f7956a329082d5b172996a005a4e0 (diff)
downloadgitlab-ce-250bde53e22406ebd101a34bfc52dd8886dedba9.tar.gz
Merge branch 'qa-ml-add-label-selector' into 'master'
Fix failing e2e test: qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb Closes gitlab-org/quality/staging#38 See merge request gitlab-org/gitlab-ce!25304
-rw-r--r--app/views/shared/empty_states/_priority_labels.html.haml2
-rw-r--r--qa/qa/page/label/index.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/shared/empty_states/_priority_labels.html.haml b/app/views/shared/empty_states/_priority_labels.html.haml
index 555cb4f4af9..bba3475d244 100644
--- a/app/views/shared/empty_states/_priority_labels.html.haml
+++ b/app/views/shared/empty_states/_priority_labels.html.haml
@@ -1,4 +1,4 @@
.text-center
- .svg-content
+ .svg-content.qa-label-svg
= image_tag 'illustrations/priority_labels.svg'
%p Star labels to start sorting by priority
diff --git a/qa/qa/page/label/index.rb b/qa/qa/page/label/index.rb
index f0d323ca3b4..de0cfa9f293 100644
--- a/qa/qa/page/label/index.rb
+++ b/qa/qa/page/label/index.rb
@@ -14,6 +14,10 @@ module QA
element :label_svg
end
+ view 'app/views/shared/empty_states/_priority_labels.html.haml' do
+ element :label_svg
+ end
+
def go_to_new_label
# The 'labels.svg' takes a fraction of a second to load after which the "New label" button shifts up a bit
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_element?)