Unverified Commit b49b3367 authored by Benjamin Neff's avatar Benjamin Neff
Browse files

Wait for stream to load and deselect each aspect individually

closes #7543
parent cdc30849
......@@ -46,8 +46,13 @@ end
When /^I select only "([^"]*)" aspect$/ do |aspect_name|
click_link "My aspects"
expect(find("#aspect_stream_container")).to have_css(".loader.hidden", visible: false)
within("#aspects_list") do
all(".selected").each {|node| node.find(:xpath, "..").click }
all(".selected").each do |node|
aspect_item = node.find(:xpath, "..")
expect(aspect_item).to have_no_css ".selected"
expect(current_scope).to have_no_css ".selected"
step %Q(I select "#{aspect_name}" aspect as well)
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