diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-01-18 18:10:49 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-01-18 18:10:49 +0500 |
commit | 10763a9d8845e6fb685418efa8c11bbf7964a87b (patch) | |
tree | 875fa8b7ca3ca5962ec08cf17032d6cd47e53608 /qa | |
parent | c9504df601566a4a1cff5b1383a2e994c104e210 (diff) | |
download | gitlab-ce-10763a9d8845e6fb685418efa8c11bbf7964a87b.tar.gz |
Wait for label svg to load
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/label/index.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/page/label/index.rb b/qa/qa/page/label/index.rb index 323acd57743..effe8ca0372 100644 --- a/qa/qa/page/label/index.rb +++ b/qa/qa/page/label/index.rb @@ -6,7 +6,17 @@ module QA element :label_create_new end + view 'app/views/shared/empty_states/_labels.html.haml' do + element :label_svg + end + def go_to_new_label + wait(reload: false) do + within_element(:label_svg) do + has_css?('.js-lazy-loaded') + end + end + click_element :label_create_new end end |