提交 69a3af73 编写于 作者: G Grzegorz Bizon

Merge branch 'qa-speedup-new-subgroup-click' into 'master'

Speed-up the click on 'New subgroup' if the 'No results' text is shown

See merge request gitlab-org/gitlab-ce!16803
......@@ -13,6 +13,10 @@ module QA
element :new_subgroup_button, /%input.*\.js-new-group-child/
end
view 'app/assets/javascripts/groups/constants.js' do
element :no_result_text, 'Sorry, no groups or projects matched your search'
end
def go_to_subgroup(name)
click_link name
end
......@@ -24,8 +28,12 @@ module QA
def has_subgroup?(name)
filter_by_name(name)
wait(reload: false) do
return false if page.has_content?('Sorry, no groups or projects matched your search')
page.has_link?(name)
end
end
def go_to_new_subgroup
click_new('subgroup')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册