API Testing · Middle · Question 74 of 75
How do you test that a list endpoint doesn't show soft-deleted items?
- 1Delete an item, then check lists, search and counts
- 2Soft-deleted items are always hidden by the database
- 3Check that the total count is above zero after a delete
Show the answer
Correct answer: Delete an item, then check lists, search and counts
Explanation
Soft deletes set a flag instead of removing rows. Every query must filter on it, and one forgotten filter brings deleted data back.