我使用Capybara
. 我有一个失败的测试,不知道如何解决。
失败:
1) ManageController ManageController check user login to manage admin success
Failure/Error: page.should have_content("Login")
Capybara::ElementNotFound:
****Unable to find xpath "/html"****
代码:
describe "POST perform_login" do
it ("check user login to manage admin success") do
visit('/manage')
page.should have_content("Login")
fill_in('email' , {:with=> 'moshe.tini@conduit.com'})
fill_in('password', {:with=>'1234'})
button_link 'submit_login'
page.should have_content("Fake Login")
end
end