Skip to content

Commit

Permalink
Look for button
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Oct 5, 2021
1 parent 5af888f commit 697062e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
click_on 'Preview Import'

expect(page).to have_content 'This import will process 5 row(s).'

expect(page).to have_button('Start Import')
click_on 'Start Import'
end.to change { Work.count }.by(2)
.and change { Collection.count }.by(1)
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/spec/system/import_from_csv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@

# There is a link so the user can cancel.
expect(page).to have_link 'Cancel', href: '/csv_imports/new?locale=en'
expect(page).to have_button('Start Import')

# After reading the warnings, the user decides
# to continue with the import.
expect(page).to have_button('Start Import')
click_on 'Start Import'
end.to change { Work.count }.by(1)
.and change { Collection.count }.by(1)
Expand Down

0 comments on commit 697062e

Please sign in to comment.