Skip to content

Commit

Permalink
Trying to figure out why spec fails on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
val99erie committed Dec 20, 2017
1 parent 5638031 commit 8c54550
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/features/batch_edit_spec.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 8c54550

Please sign in to comment.