-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with bookmarked records not staying checked (#1465)
* Fix issue with bookmarked records not staying checked * Add test that checking/unchecking bookmarks succeeds.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe 'Bookmarks' do | ||
it 'shows bookmarks as checkboxes', js: true do | ||
visit solr_document_path('aoa271aspace_a951375d104030369a993ff943f61a77') | ||
check 'Bookmark' | ||
click_link 'Bookmarks' | ||
|
||
visit solr_document_path('aoa271aspace_a951375d104030369a993ff943f61a77') | ||
expect(page).to have_css('input[type="checkbox"][checked]') | ||
uncheck 'In Bookmarks' | ||
end | ||
end |