キュウリのシナリオに「次にページを表示してください」という行を追加すると、同僚のコンピューターでは同じ設定で機能しますが、私のコンピューターでは機能しません。実際、一時停止ステップの定義を追加して呼び出すことは、完全に無視されているようです。
ステップの定義:
Then /^show me the page$/ do
save_and_open_page
end
AfterStep('@pause') do
print "Press Return to continue"
STDIN.getc
end
特徴:
(line 25) Scenario Outline: An authorised user visits the blah..,
Given a blah: ... blah ...
And I am logged in as <role>
And the date is 1 April 2012
When I go to the blah page
And I click "foobar"
Then I should see "Blah foobar"
And I should see "Foobar on Mon Apr 1 00:00:00 2012 by <email>"
Then show me the page
And ...
コマンドライン:
cucumber features/blah/foos.feature:25 --require features --tags @pause
Firefox 16.02 を使用する (17 のバグを回避する)
両方のマシンに git-fetch'd、pull'd、bundle install'd があるため、すべての gem は同一であり、どちらも Rbenv バージョン * 1.9.3-p327-perf を使用しています。私は明らかな何かを見逃しているかもしれません...
更新: tmp/capybara/ にはファイルが含まれていないため、現在保存されていません...
Beerlington のおかげで解決: show me the page line を 1 行上に移動します。ページを表示する前にエラーが発生したため、表示されませんでした。