From 730c987d9263a0f6981786b26493457a187c2928 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Tue, 28 Jun 2022 17:17:31 +0200 Subject: Add setup and teardown to the volumes pagination tests For now just delete the old volumes at the start Change-Id: I013da554f58e1638178d3655459c9742fd7f85ba (cherry picked from commit 81edf08676f2651f4343498c23d93b000fca7127) --- openstack_dashboard/test/integration_tests/tests/test_volumes.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openstack_dashboard/test/integration_tests/tests/test_volumes.py b/openstack_dashboard/test/integration_tests/tests/test_volumes.py index 92c88b66b..002f502a5 100644 --- a/openstack_dashboard/test/integration_tests/tests/test_volumes.py +++ b/openstack_dashboard/test/integration_tests/tests/test_volumes.py @@ -101,6 +101,15 @@ class TestVolumesBasic(helpers.TestCase): 12) Delete created volumes """ volumes_page = self.home_pg.go_to_project_volumes_volumespage() + + # delete any old instances + garbage = volumes_page.volumes_table.get_column_data( + name_column='Name') + if garbage: + volumes_page.delete_volumes(garbage) + self.assertTrue( + volumes_page.find_message_and_dismiss(messages.INFO)) + count = 3 items_per_page = 1 volumes_names = ["{0}_{1}".format(self.VOLUME_NAME, i) for i in -- cgit v1.2.1