【发布时间】:2016-05-12 18:52:00
【问题描述】:
我有一个非常简单的规范,如下所示:
scenario 'show error message' do
expect(page).to have_text 'Invalid email or password.'
end
升级到 Rails 5 rc1 后失败:
1) Sign in when email and password are invalid show error message
Failure/Error: expect(page).to have_text 'Invalid email or password.'
expected to find text "Invalid email or password." in "× Invalid Email or password. Sign in Please fill the form to sign in to your account * Email * Password Remember me (if this is a private computer) Forgot password? Copyright @ 2016"
测试在 Rails 5 beta3 上通过。
有什么想法吗?
【问题讨论】:
标签: ruby-on-rails ruby capybara ruby-on-rails-5