Sha256: ef6c55bdbfd58de48dd730f1955675d63af6414c40a32afb7e84e0eab64d7227

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

Given(/^the text "(.*?)" appears on the web objects page$/) do |text|
  on_view(WebObjects).check_for_text(text)
end

Given(/^the markup "(.*?)" appears in the web objects page$/) do |text|
  on_view(WebObjects).check_for_markup(text)
end

Given(/^the title "(.*?)" appears for the web objects page$/) do |text|
  on_view(WebObjects).check_for_title(text)
end

Given(/^the url "(.*?)" matches the web objects page$/) do |text|
  on_view(WebObjects).check_for_url(text)
end

Given(/^the "(.*?)" text field should have focus on initial loading of the web objects page$/) do |element|
  on_view(WebObjects).check_for_focus(element)
end

When(/^setting the focus on the chameleoflage armor field$/) do
  on_view(WebObjects).set_focus_for(:id => "camoArmor")
end

Then(/^the "(.*?)" checkbox should have focus$/) do |element|
  on(WebObjects).check_for_focus(element)
end

Given(/^going back from the web objects to the home page$/) do
  on_view(Home).check_for_title("Home | Symbiote")
  on_view(WebObjects).check_for_title("Web Objects | Symbiote")
  on(WebObjects).back
  on(Home).check_for_title("Home | Symbiote")
end

Given(/^going forward from the home page to the web objects page$/) do
  on(Home).forward
  on(WebObjects).check_for_title("Web Objects | Symbiote")
end

Given(/^refreshing the web objects page$/) do
  on(WebObjects).refresh
  on(WebObjects).check_for_title("Web Objects | Symbiote")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 specs/steps/evaluators_steps.rb
symbiont-0.2.0 specs/steps/evaluators_steps.rb