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