diff --git a/spec/features/batch_edit_spec.rb b/spec/features/batch_edit_spec.rb index 1cfaea66..2699e5b6 100644 --- a/spec/features/batch_edit_spec.rb +++ b/spec/features/batch_edit_spec.rb @@ -7,10 +7,11 @@ let(:work_second) { create(:populated_pdf) } before do + ActiveFedora::Cleaner.clean! + work_first + work_second login_as current_user visit '/dashboard/works' - work_first.save! - work_second.save! check 'check_all' end @@ -39,6 +40,9 @@ describe 'exporting metadata' do it 'sends the user to the batch status page like on the catalog' do + #expect(page).to have_selector("#document_#{work_first.id}") + #expect(page).to have_selector("#document_#{work_second.id}") + expect(page).to have_selector("#documents table tbody tr", count: 2) expect(page).to have_selector('.tufts-buttons') click_on 'Export Metadata' expect(page).to have_content('Batch Status')