Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test that checking/unchecking bookmarks succeeds.
Browse files Browse the repository at this point in the history
lfarrell committed Dec 12, 2023
1 parent b36878c commit 821c268
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/features/bookmarks_spec.rb
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

0 comments on commit 821c268

Please sign in to comment.