Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Digital Object delete #55

wants to merge 2 commits into from

Conversation

kdimopulu
Copy link
Collaborator

No description provided.

@kdimopulu kdimopulu marked this pull request as draft December 19, 2024 07:43

click_on 'Save'

wait_for_ajax
Copy link
Collaborator

@donaldjosephsmith donaldjosephsmith Jan 3, 2025

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.

Copy link
Collaborator

@blacksmith-welder blacksmith-welder Jan 7, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants