Skip to content

Instantly share code, notes, and snippets.

@elrayle
Created August 31, 2017 18:32
Show Gist options
  • Save elrayle/933b3ebd1aec2b8e3a8bf84b39ae4448 to your computer and use it in GitHub Desktop.
Save elrayle/933b3ebd1aec2b8e3a8bf84b39ae4448 to your computer and use it in GitHub Desktop.
1) hyrax/dashboard/collections/show.html.erb draws the page
Failure/Error: expect(rendered).to have_css('.stubbed-actions', text: 'THE ACTIONS')
expected to find visible css ".stubbed-actions" with text "THE ACTIONS" but there were no matches
# ./spec/views/hyrax/dashboard/collections/show.html.erb_spec.rb:40:in `block (2 levels) in <top (required)>'
2) hyrax/admin/collection_types/index.html.erb has delete buttons for non-special collection types
Failure/Error: expect(rendered).to have_button('Delete', count: 2)
expected to find visible button "Delete" 2 times, found 3 matches: "Delete", "Delete", "Delete"
# ./spec/views/hyrax/admin/collection_types/index.html.erb_spec.rb:30:in `block (2 levels) in <top (required)>'
3) hyrax/admin/collection_types/index.html.erb has edit buttons for all
Failure/Error: expect(rendered).to have_button('Edit', count: 4)
expected to find visible button "Edit" 4 times but there were no matches
# ./spec/views/hyrax/admin/collection_types/index.html.erb_spec.rb:26:in `block (2 levels) in <top (required)>'
4) collection All Collections tab (for admin users only) lists all collections for all users
Failure/Error: expect(page).to have_link(collection1.title)
expected to find visible link ["Title 63"] but there were no matches
# ./spec/features/dashboard/collection_spec.rb:65:in `block (3 levels) in <top (required)>'
5) collection edit collection with sharable set to true, it shows Sharable tab
Failure/Error: expect(page).to have_link('Sharable', href: '#sharable')
expected to find visible link "Sharable" but there were no matches
# ./spec/features/dashboard/collection_spec.rb:315:in `block (4 levels) in <top (required)>'
6) collection edit collection with discoverable set to true, it shows Discovery tab
Failure/Error: expect(page).to have_link('Discovery', href: '#discovery')
expected to find visible link "Discovery" but there were no matches
# ./spec/features/dashboard/collection_spec.rb:300:in `block (4 levels) in <top (required)>'
7) collection Your Collections tab when non-admin user lists only user's collections
Failure/Error: expect(page).to have_link(collection1.title)
expected to find visible link ["Title 72"] but there were no matches
# ./spec/features/dashboard/collection_spec.rb:27:in `block (4 levels) in <top (required)>'
8) collection Your Collections tab when admin user lists only admin_user's collections
Failure/Error: expect(page).to have_link(collection3.title)
expected to find visible link ["Title 75"] but there were no matches
# ./spec/features/dashboard/collection_spec.rb:51:in `block (4 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment