2013-04-30 79 views
1

我跑水豚,我不斷收到此錯誤波紋管Twitter的引導提示和水豚

✔ 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,但我仍然有同樣的問題

回答

2

嘗試指定鏈接的ID在click_link方法或嘗試使用類似find('#new-agreement').click

+0

find('#new-agreement')。click do the trick。謝謝。現在我必須爲所有創建鏈接添加一個ID – Marrento 2013-04-30 20:49:01

0

您也可以嘗試find('a[data-original-title="New Agreement Template"]').click。 (這對我的工作在類似的情況。)