Sha256: f0c1e0c6b4e45eb6822efab516691065ad7a31a6090144c4c43d9370254f4d05

Contents?: true

Size: 880 Bytes

Versions: 8

Compression:

Stored size: 880 Bytes

Contents

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 "Collections created"
      expect(page).to have_content "Works created"
    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 works" do
      click_link "View Works"
      expect(page).to have_content "My Works"
      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

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.1.0 spec/features/display_dashboard_spec.rb
sufia-7.0.0 spec/features/display_dashboard_spec.rb
sufia-7.0.0.rc2 spec/features/display_dashboard_spec.rb
sufia-7.0.0.rc1 spec/features/display_dashboard_spec.rb
sufia-7.0.0.beta4 spec/features/display_dashboard_spec.rb
sufia-7.0.0.beta3 spec/features/display_dashboard_spec.rb
sufia-7.0.0.beta2 spec/features/display_dashboard_spec.rb
sufia-7.0.0.beta1 spec/features/display_dashboard_spec.rb