Sha256: ffbe88e14c2c484e3fb31c5ee76cd68c78d35c3e42e5581593b79d81a11346a0

Contents?: true

Size: 480 Bytes

Versions: 10

Compression:

Stored size: 480 Bytes

Contents

require 'test_helper'

class ImageModalTest < ActionDispatch::IntegrationTest

  setup do
  	browser_start
  end
  teardown do
  	browser_end
  end

  test "should see a modal when clicking on an image" do
    visit lentil.images_path
    assert page.has_no_content?('six #hunttesting')
    assert page.has_no_selector?('.fancybox-image')
    all('.fancybox').first.click
    assert page.has_content?('six #hunttesting')
    assert page.has_selector?('.fancybox-image')
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lentil-0.5.0 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.4.2 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.4.0 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.3.1 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.3.0 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.2.3 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.2.2 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.2.1 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.2.0 test/integration/lentil/javascript/image_modal_test.rb
lentil-0.1.8 test/integration/lentil/javascript/image_modal_test.rb