Sha256: 64ab64e2c3d093e48af31e92c4b44848d51544ddc29752992feb486d7181d809

Contents?: true

Size: 659 Bytes

Versions: 13

Compression:

Stored size: 659 Bytes

Contents

require 'spec_helper'

describe "Uploading files via web form" do

  before do
    sign_in :user
  end

  it "should have an ingest screen" do
    click_link "upload"
    page.should have_content "Select files"
    page.should have_content "Start upload"
    page.should have_content "Cancel upload"
    page.should have_xpath '//input[@type="file"]'
  end

  it "should require checking the terms of service" do
    click_link "upload"
    attach_file("files[]", "spec/fixtures/image.jp2")
    attach_file("files[]", "spec/fixtures/jp2_fits.xml")
    click_button 'Start upload'
    page.should have_content "You must accept the terms of service!"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sufia-3.5.0 spec/features/ingest_upload_files.rb
sufia-3.4.0 spec/features/ingest_upload_files.rb
sufia-3.4.0.rc4 spec/features/ingest_upload_files.rb
sufia-3.4.0.rc3 spec/features/ingest_upload_files.rb
sufia-3.3.1 spec/features/ingest_upload_files.rb
sufia-3.4.0.rc2 spec/features/ingest_upload_files.rb
sufia-3.4.0.rc1 spec/features/ingest_upload_files.rb
sufia-3.3.0 spec/features/ingest_upload_files.rb
sufia-3.2.1 spec/features/ingest_upload_files.rb
sufia-3.1.3 spec/features/ingest_upload_files.rb
sufia-3.1.2 spec/features/ingest_upload_files.rb
sufia-3.1.1 spec/features/ingest_upload_files.rb
sufia-3.1.0 spec/features/ingest_upload_files.rb