-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Digital Object delete #55
base: master
Are you sure you want to change the base?
Conversation
c9af4d0
to
7f30ee5
Compare
72afd50
to
b87b02f
Compare
fe6d90c
to
4eb3d63
Compare
|
||
click_on 'Save' | ||
|
||
wait_for_ajax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you finding that wait_for_ajax
is actually necessary here? It probably doesn't hurt (other than the time taken by sleep
), but there shouldn't be any AJAX stuff going on here as the Save
button just does a standard form submit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you click on Save
, the page reloads and then you are in the digital object edit page, which loads the edit form by doing a request at digital_objects/20/edit?inline=true
. After the wait_for_ajax
, we are expecting a success message, which is part of this inline form.
Running this test locally, seems to always succeed without wait_for_ajax
, but we have experienced failing tests in similar occasions, that is why it is used here.
No description provided.