Sha256: 182bd383806a159dba8a7396e8ee5c2f75fd728efc81456901240e52e09f8d4b

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

When /^I export the graph as an image$/ do
  click_link('heart_export_image')
  page.should_not have_content('RecordNotFound')
end

Then /^I should get an image$/ do
  page.driver.browser.switch_to.window page.driver.browser.window_handles.last do
    assert_match(/.png/, current_url)
    page.should_not have_content('RecordNotFound')
  end
end

When /^I export the graph as a text file$/ do
  check('tsv_export')
  click_button('Graph')
  page.should_not have_content('RecordNotFound')
end

Then /^I should get tab separated text$/ do
  page.driver.browser.switch_to.window page.driver.browser.window_handles.last do
    page.should have_content(3.days.ago.strftime("%Y/%-m/%-d"))
    page.should have_content("\t")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
heart-0.0.2 test/dummy/features/step_definitions/exporting_steps.rb
heart-0.0.1 test/dummy/features/step_definitions/exporting_steps.rb
heart-0.0.1.pre test/dummy/features/step_definitions/exporting_steps.rb