Commit 08cc10de authored by Simon Knox's avatar Simon Knox Committed by Bob Van Landuyt

Fix spec not waiting for redirect

Accepting the confirm dialog triggers a redirect
We either need a wait_for_requests, or to assert we're not on the
group page anymore
parent e111cb62
......@@ -31,6 +31,7 @@ describe 'Groups > Members > Leave group' do
page.accept_confirm
wait_for_all_requests
expect(current_path).to eq(dashboard_groups_path)
expect(group.users).not_to include(user)
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