Sha256: d43e633a586e3a2d923ab2f8e69ef6a1c86560ba864c1ac2f18b46893a1f02c3

Contents?: true

Size: 1.88 KB

Versions: 6

Compression:

Stored size: 1.88 KB

Contents

When (/^performing a successful action on the object test page$/) do
  step %{on the object test page}
  @page.clickmeID
end

When (/^the conditional button is hidden$/) do
  @page.hideButton
end

When (/^the conditional button is revealed$/) do
  @page.revealButton
end

When (/^the conditional button on the events test page is invisible$/) do
  step %{on the events test page}
  step %{the conditional button is hidden}
end

When (/^the alert message box appears$/) do
  step %{on the events test page}
  @message = @page.will_alert do
    @page.alert
  end
end

When (/^the confirmation message box appears$/) do
  step %{on the events test page}
  @message = @page.will_confirm(true) do
    @page.confirm
  end
end

When (/^the prompt message box appears$/) do
  step %{on the events test page}
  @response = @page.will_prompt("Darth Bane") do
    @page.prompt
  end
end

Then (/^the test should wait for a success page$/) do
  @page.wait_for(10, "success page did not come up in time") do
    @page.text.include? 'Success'
  end
end

Then (/^the conditional button can be clicked$/) do
  @page.conditional
end

Then (/^the test will wait until the conditional button is invisible$/) do
  @page.conditional_button.when_not_visible
end

Then (/^after that time the conditional button should not be visible$/) do
  @page.conditional_visible?.should == false
end

Then (/^the test will wait until the conditional button is visible before clicking it$/) do
  @page.conditional_button.when_visible
  @page.conditional
end

Then (/^the alert message should be "([^"]*)"$/) do |text|
  @message.should == text
end

Then (/^the confirmation message should be "([^"]*)"$/) do |text|
  @message.should == text
end

Then (/^the prompt message should be "([^"]*)"$/) do |text|
  @response[:message].should == text
end

Then (/^the prompt default value should be "([^"]*)"$/) do |value|
  @response[:default_value].should == value
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
symbiont-0.1.7 specs/support/test_steps/action_steps_events.rb
symbiont-0.1.6 specs/support/test_steps/action_steps_events.rb
symbiont-0.1.5 specs/support/test_steps/action_steps_events.rb
symbiont-0.1.4 specs/support/test_steps/action_steps_events.rb
symbiont-0.1.3 specs/support/test_steps/action_steps_events.rb
symbiont-0.1.2 specs/support/test_steps/action_steps_events.rb