Sha256: 144fa3d1fae7de1b292974bfc746e5860de93627b59d0b841100996da54cc428

Contents?: true

Size: 719 Bytes

Versions: 13

Compression:

Stored size: 719 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[]", File.dirname(__FILE__)+"/../../spec/fixtures/image.jp2")
    attach_file("files[]", File.dirname(__FILE__)+"/../../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-4.0.1 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.rc2 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.rc1 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.beta4 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.beta3 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.beta2 spec/features/ingest_upload_files_spec.rb
sufia-4.0.0.beta1 spec/features/ingest_upload_files_spec.rb
sufia-3.7.2 spec/features/ingest_upload_files_spec.rb
sufia-3.7.1 spec/features/ingest_upload_files_spec.rb
sufia-3.7.0 spec/features/ingest_upload_files_spec.rb
sufia-3.6.1 spec/features/ingest_upload_files_spec.rb
sufia-3.6.0 spec/features/ingest_upload_files_spec.rb