mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
When there are no snapshots present in the list of snapshots, operation to delete all snapshots first checks that select all button and then submits the delete snapshots button. After that it looks for delete confirmation and then submits again. When the confirmation page is not shown, as is the case when there are no snapshots, the button being submitted happens to be 'Create Snapshot' button. This creates a new snapshot and the total number of snapshots at the end of create snapshot test is 2 instead of 1. Tests: - Run `py.test-3 --include-functional -k snapshot`. Closes: #1630. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>