RSpec::Expectations::ExpectationNotMetError: expected to find visible css "input#payment_plan_plan1" but there were no matches. Also found "", which matched the selector but not all filters.
如果在RSPEC中对以下字符执行have_selector,将输出上述错误
rails控制台:
kk = "<input type=\"hidden\" name=\"payment_plan\" id=\"payment_plan_plan1\" value=\"plan1\" />"
expect(kk).to have_selector "input#payment_plan_plan1"
让我知道为什么以上命令无法执行。
※从Rails 5.16升级到5.2.1后,上述命令无法执行
感谢您阅读我的问题。