Sha256: 71c9ad6065d1ab5dfc7261b036078004cc11bc8900d6b6947a36b6ed1af23d41

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

Given /^users navigate to the portal$/ do
  @grid.iterate {|browser| browser.goto "http://gridinit.com/examples/logon.html" }
end

When /^they enter their credentials$/ do
  @grid.iterate do |browser|
    browser.text_field(:name => "email").set "tim@mahenterprize.com"
    browser.text_field(:name => "password").set "mahsecretz"
    browser.button(:type => "submit").click
  end
end

Then /^they should see their account settings$/ do
  @grid.iterate do |browser|
    browser.text.should =~ /Maybe I should get a real Gridinit account/
  end
end

Then /^the response time should be less than (\d+) seconds$/ do |response_time|
  @grid.iterate do |browser|
    browser.performance.summary[:response_time].should < response_time.to_i * 1000
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watirgrid-1.1.5 examples/cucumber/step_definitions/example_steps.rb
watirgrid-1.1.4 examples/cucumber/step_definitions/example_steps.rb
watirgrid-1.1.4.pre examples/cucumber/step_definitions/example_steps.rb
watirgrid-1.1.3 examples/cucumber/step_definitions/example_steps.rb
watirgrid-1.1.3.pre examples/cucumber/step_definitions/example_steps.rb