Commit 51897df5 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'qa/mk-fix-unable-to-click-new-project-in-dropdown' into 'master'

[CE backport] Fix intermittently failed click in dropdown in QA

See merge request gitlab-org/gitlab-ce!16738
parents fca48225 a1a45827
......@@ -25,7 +25,12 @@ module QA
def go_to_new_subgroup
within '.new-project-subgroup' do
find('.dropdown-toggle').click
# May need to click again because it is possible to click the button quicker than the JS is bound
wait(reload: false) do
find('.dropdown-toggle').click
page.has_css?("li[data-value='new-subgroup']")
end
find("li[data-value='new-subgroup']").click
end
......@@ -34,7 +39,12 @@ module QA
def go_to_new_project
within '.new-project-subgroup' do
find('.dropdown-toggle').click
# May need to click again because it is possible to click the button quicker than the JS is bound
wait(reload: false) do
find('.dropdown-toggle').click
page.has_css?("li[data-value='new-project']")
end
find("li[data-value='new-project']").click
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment