derp; find always returns the first element in capybara
This commit is contained in:
parent
4b363548a2
commit
4c7e82fec9
1 changed files with 2 additions and 2 deletions
|
|
@ -154,5 +154,5 @@ When /^I click the "([^"]*)" post$/ do |post_text|
|
|||
end
|
||||
|
||||
Then /^"([^"]*)" should be the first canvas frame$/ do |post_text|
|
||||
find(".canvas-frame:first").should have_content(post_text)
|
||||
end
|
||||
find(".canvas-frame").should have_content(post_text)
|
||||
end
|
||||
Loading…
Reference in a new issue