Commit 5bfaaaa3 authored by Douwe Maan's avatar Douwe Maan

Click form instead of body, because clicking body would actually click inside the dropdown again

parent a818d7bb
...@@ -72,13 +72,13 @@ feature 'Protected Branches', :js do ...@@ -72,13 +72,13 @@ feature 'Protected Branches', :js do
find(".js-allowed-to-merge").click find(".js-allowed-to-merge").click
click_link 'No one' click_link 'No one'
end end
find('body').click find(form).click
within form do within form do
find(".js-allowed-to-push").click find(".js-allowed-to-push").click
click_link 'Developers + Masters' click_link 'Developers + Masters'
end end
find('body').click find(form).click
visit project_protected_branches_path(project) visit project_protected_branches_path(project)
......
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