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
This commit is contained in:
Rémy Coutable 2019-02-18 10:01:04 +00:00
commit 250bde53e2
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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?)