Sha256: fd18b50721395e308c61c182c7c6a52c18a219a0e39d8738d3ea1c899bc7b5b5
Contents?: true
Size: 894 Bytes
Versions: 4
Compression:
Stored size: 894 Bytes
Contents
require 'spec_helper' describe "Uploading files via web form", type: :feature do before do sign_in :user click_link "Upload" end it "has an ingest screen" do expect(page).to have_content "Select files" expect(page).to have_content "Start upload" expect(page).to have_content "Cancel upload" expect(page).to have_xpath '//input[@type="file"]' end context "the terms of service", :js do it "is required to be checked" do attach_file("files[]", File.dirname(__FILE__) + "/../../spec/fixtures/image.jp2", visible: false) attach_file("files[]", File.dirname(__FILE__) + "/../../spec/fixtures/jp2_fits.xml", visible: false) expect(page).to have_css("button#main_upload_start[disabled]") find('#main_upload_start_span').hover expect(page).to have_content "Please accept Deposit Agreement before you can upload." end end end
Version data entries
4 entries across 4 versions & 1 rubygems