Sha256: ebd568db44a03820fd10c3c1ff8a101335722f3f5ee114653986bf6bf81b811b

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

require 'test_helper'

class GoogleAnalyticsTest < ActionDispatch::IntegrationTest
  
  # FIXME maybe should use puffing-billy gem for this?
  setup do
    WebMock.disable!
    Capybara.current_driver = Capybara.javascript_driver
    visit root_path(q: 'printing')
  end

  test "should capture google analytics data for all links in module" do
    within("#catalog") do
      click_link('Books & Media')
    end
    assert page.has_content?('heading')

    click_link('book results')
    assert page.has_content?('see-all-results')

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quick_search-core-0.0.1 test/integration/google_analytics_test.rb
quick_search-core-0.0.1.test test/integration/google_analytics_test.rb