Sha256: a17c23c31a02fed898bdb0a7581b42c4d4a667e34c4d83360806ffeb34d2b7ff

Contents?: true

Size: 938 Bytes

Versions: 3

Compression:

Stored size: 938 Bytes

Contents

require 'spec_helper'

describe "The Dashboard" do

  before do
    sign_in :user_with_fixtures
  end

  context "upon sign-in" do

    it "should show the user's information" do
      page.should have_content "My Dashboard"
      page.should have_content "User Activity"
      page.should have_content "User Notifications"
      page.should have_content "Your Statistics"
    end

    it "should let the user upload files" do
      click_link "Upload"
      page.should have_content "Upload"
    end

    it "should let the user create collections" do
      click_link "Create Collection"
      page.should have_content "Create New Collection"
    end

    it "should let the user view files" do
      click_link "View Files"
      page.should have_content "My Files"
      page.should have_content "My Collections"
      page.should have_content "My Highlights"
      page.should have_content "Files Shared with Me"
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-4.0.1 spec/features/display_dashboard_spec.rb
sufia-4.0.0 spec/features/display_dashboard_spec.rb
sufia-4.0.0.rc2 spec/features/display_dashboard_spec.rb