Skip to content

Conversation

gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Feb 14, 2022

That's what I get for not checking carefully changes that I committed on Friday. @mabaasit spotted that I was passing the same callback property both for deleting and cancelling the delete of an item in the list. This PR fixes it and adds tests for cancelling so that we don't mess it up anymore

Comment on lines -259 to -261
expect(() => {
screen.getByTestId(/delete item modal/i);
}, 'hides modal after deleting').to.throw;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was throwing, but for a different reason, updated the logic here to wait for the modal to close and explicitly check that the item is not rendered anymore

@gribnoysup gribnoysup requested a review from mabaasit February 14, 2022 16:07
@gribnoysup gribnoysup merged commit 18a7566 into main Feb 15, 2022
@gribnoysup gribnoysup deleted the compass-5415-actually-not-delete-on-cancel branch February 15, 2022 07:18
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.

2 participants