Sha256: 16821b27ad01fa35fc5d15d9bd799833737f9b1ba6f35f9469cf3bb93f4d787a

Contents?: true

Size: 746 Bytes

Versions: 1

Compression:

Stored size: 746 Bytes

Contents

#include Briar::Alerts_and_Sheets

Then /^I should see alert with "([^"]*)" button$/ do |button_id|
  should_see_alert_button button_id
end

Then /^I should see alert with title "([^"]*)"$/ do |title|
  unless query('alertView child label', :text).include?(title)
    screenshot_and_raise "i do not see an alert view with title '#{title}'"
  end
end


Then /^I should see alert with message "([^"]*)"$/ do |message|
  unless query('alertView child label', :text).include?(message)
    screenshot_and_raise "i do not see an alert view with message '#{message}'"
  end
end

Then /^I should not see an alert$/ do
  res = query('alertView')
  unless res.empty?
    screenshot_and_raise "i expected to see no alert view, but found '#{res}'"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
briar-0.0.6 features/step_definitions/alerts_and_sheets/alert_view_steps.rb