Sha256: 891d87162f0f3d0051f8bf3f6e3d2b562c59a40d51012f7142117e18bcd74232
Contents?: true
Size: 1.32 KB
Versions: 7
Compression:
Stored size: 1.32 KB
Contents
require 'spec_helper' describe "Display Dashboard files" do before do sign_in :user_with_fixtures end it "should display the dashboard and have search" do click_link 'dashboard' fill_in "dashboard_search", with: "dash search" click_button "dashboard_submit" page.should have_content "Dashboard" page.should have_content "You searched for: dash search" find_field("search-field-header").value.should be_nil end it "should display the dashboard and want to upload files" do click_link 'dashboard' click_link 'Upload File(s)' page.should have_content "Upload" end it "should display the dashboard and want to search the whole system" do fill_in "search-field-header", with: "system search" click_button "search-submit-header" page.should have_content "You searched for: system search" page.should_not have_content "Dashboard" find_field("search-field-header").value.should match(/system search/) end # @culerity # Scenario: I have files on my dashboard I should see icons # #Given I load sufia fixtures # And I am logged in as "archivist1@example.com" # And I follow "dashboard" # Then I should see "Test Document Text" # When I follow the link within "a[href='/files/test3'].itemtrash" # Then I should see "The file has been deleted" end
Version data entries
7 entries across 7 versions & 1 rubygems