私はNetzke(0.7.3)でRails(3.1.3)に取り組んでいます。
キュウリはとても新しいです。
add_account_for_user.feature
Feature: Add Account For User Feature
In order to add login account
As an Administrator
I want to add login account for other role
Scenario: Adding Login Account
When I login as an Administrator
Then I should be on admin page
When I click on 'Administration' button at right upper of page
Then I should see 'Administrator Management'
And I should see 'Add' button in Administrator Management toolbar
When I click on 'Add' button
Then I wait 10 seconds # for check what happen
問題はWhen I click on 'Add' button
段階にあります。合格しましたが、正しく機能していません。(イベントが発生するはずonAddInForm
です)読み込み中にハングし、新しいウィンドウパネルが表示されません。
my_steps.rb
Then /^(?:|I )click on '(\w*)'(?:|.*)$/ do |label|
click_link_or_button(label)
step "wait for the response from sever"
end
When /^(?:|I )wait for (?:.*)$/ do
page.driver.browser.execute_script(<<-JS)
JS
end