Sha256: 5fd194cf5dfb4efb5a7b8d2e9f599674999e68c7a976f023a9f5b2804d73b06e

Contents?: true

Size: 654 Bytes

Versions: 21

Compression:

Stored size: 654 Bytes

Contents

require 'test_helper'

class EventTrackingBattleTest < ActionDispatch::IntegrationTest
  test "battle pick image" do
    VCR.use_cassette('battle_images_events') do
      browser_start
      Lentil::ThisorthatController.any_instance.stubs(:get_images).returns([lentil_images(:dos), lentil_images(:one)])
      visit lentil.thisorthat_battle_path
      first_image = all('.battle-form').first()
      image_id = first_image['value']
      first_image.click
      assert_equal("_trackEvent,battle_view,pick,#{image_id}", console_message)
      find('.battle-result-arrow-wrap') # this should wait for the ajax to finish
      browser_end
    end
  end
 end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lentil-1.0.3 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-1.0.2 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-1.0.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-1.0.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.9.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.9.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.8.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.7.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.6.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.5.2 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.5.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.5.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.4.2 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.4.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.3.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.3.0 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.2.3 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.2.2 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.2.1 test/integration/lentil/javascript/event_tracking_battle_test.rb
lentil-0.2.0 test/integration/lentil/javascript/event_tracking_battle_test.rb