我正在运行 capybara,并且在下面不断收到此错误
✔ When I visit the agreement templates page
! And I follow "New Agreement Template"
~ And I fill out and submit the form
~ Then I should see the new agreement template
~ And I should be on the agreement template
no link with title, id or text 'New Agreement Template' found
在页面工具提示已将“标题”更改为“数据原始标题”,因此测试找不到“新协议模板”。
我试图改变我的测试
click_link('New Agreement Template')
至
find('#new-agreement').click_link('New Agreement Template')
将新协议添加为 ID,但我仍然遇到同样的问题