Gem Capybara 里面的部分匹配的问题

zlx_star · January 28, 2013 · Last by zlx_star replied at January 29, 2013 · 1650 hits

使用 Capybara 测试时: 当页面里面有 '待回复问答' 这样的链接时,page.should have_link('回复') 这个测试代码会通过。

相关问题: https://github.com/jnicklas/capybara/issues/681

请问各位测试达人有什么解决方案。

within("#id") { page.should have xxx }

You need to Sign in before reply, if you don't have an account, please Sign up first.