Wait for stream to load and deselect each aspect individually
closes #7543
This commit is contained in:
parent
cdc3084990
commit
b49b33675f
1 changed files with 6 additions and 1 deletions
|
|
@ -46,8 +46,13 @@ end
|
||||||
|
|
||||||
When /^I select only "([^"]*)" aspect$/ do |aspect_name|
|
When /^I select only "([^"]*)" aspect$/ do |aspect_name|
|
||||||
click_link "My aspects"
|
click_link "My aspects"
|
||||||
|
expect(find("#aspect_stream_container")).to have_css(".loader.hidden", visible: false)
|
||||||
within("#aspects_list") do
|
within("#aspects_list") do
|
||||||
all(".selected").each {|node| node.find(:xpath, "..").click }
|
all(".selected").each do |node|
|
||||||
|
aspect_item = node.find(:xpath, "..")
|
||||||
|
aspect_item.click
|
||||||
|
expect(aspect_item).to have_no_css ".selected"
|
||||||
|
end
|
||||||
expect(current_scope).to have_no_css ".selected"
|
expect(current_scope).to have_no_css ".selected"
|
||||||
end
|
end
|
||||||
step %Q(I select "#{aspect_name}" aspect as well)
|
step %Q(I select "#{aspect_name}" aspect as well)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue