Sha256: 8c88eba6c4f89557e9d61357c2119693c53ddf7b85de3a8f57898ff24517013a

Contents?: true

Size: 700 Bytes

Versions: 33

Compression:

Stored size: 700 Bytes

Contents

require 'rails_helper'
feature "Dragonfly integration", js: true do
  background do
    auth_as_user
  end

  scenario "Upload, view and remove image" do
    visit new_admin_book_path
    create_resource do
      fill_in "Title", with: "xx"
      attach_file "Cover image", File.expand_path('../fixtures/cs.png', __dir__)
    end

    find(".field[data-name='cover_image'] a.ajaxbox" ).click
    expect(page).to have_css(".ajaxbox-inner img.mfp-img")
    find(".ajaxbox-inner button.close" ).click
    expect(page).to have_no_css(".ajaxbox-inner img.mfp-img")

    update_resource do
      check "Remove"
    end
    expect(page).to have_no_css(".field[data-name='cover_image'] a.ajaxbox")
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
releaf-core-2.0.0 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.22 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.21 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.20 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.19 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.18 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.17 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.16 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.15 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.14 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.13 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.12 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.11 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.10 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.9 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.8 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.7 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.6 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.5 spec/features/dragonfly_integration_spec.rb
releaf-core-1.1.4 spec/features/dragonfly_integration_spec.rb