Sha256: 43cf87ee496e721a7c96485a69a667daa3a4d38f5b2be4273e324162d4691058

Contents?: true

Size: 966 Bytes

Versions: 6

Compression:

Stored size: 966 Bytes

Contents

require 'spec_helper'

describe "The Dashboard", type: :feature do
  before do
    sign_in :user_with_fixtures
  end

  context "upon sign-in" do
    it "shows the user's information" do
      expect(page).to have_content "My Dashboard"
      expect(page).to have_content "User Activity"
      expect(page).to have_content "User Notifications"
      expect(page).to have_content "Your Statistics"
    end

    it "lets the user upload files" do
      click_link "Upload"
      expect(page).to have_content "Upload"
    end

    it "lets the user create collections" do
      click_link "Create Collection"
      expect(page).to have_content "Create New Collection"
    end

    it "lets the user view files" do
      click_link "View Files"
      expect(page).to have_content "My Files"
      expect(page).to have_content "My Collections"
      expect(page).to have_content "My Highlights"
      expect(page).to have_content "Files Shared with Me"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-6.7.0 spec/features/display_dashboard_spec.rb
sufia-6.6.1 spec/features/display_dashboard_spec.rb
sufia-6.6.0 spec/features/display_dashboard_spec.rb
sufia-6.5.0 spec/features/display_dashboard_spec.rb
sufia-6.4.0 spec/features/display_dashboard_spec.rb
sufia-6.3.0 spec/features/display_dashboard_spec.rb