From 4743c6c748be79c3a80a350d05aeed7bbe63c577 Mon Sep 17 00:00:00 2001 From: Tatiana Ovchinnikova Date: Fri, 10 Sep 2021 15:24:51 -0500 Subject: [PATCH] Integration test navigation machinery for Angular pages There's an implementation of navigation modules for pages written in Angular. Legacy tests for images page are rewritten to work with the new navigation. Change-Id: Ib8a40f0adb0a46c9d646c6796a4242988eefa6e3 --- horizon/test/webdriver.py | 4 +- .../steps/create-image/create-image.html | 16 +- .../images/steps/edit-image/edit-image.html | 4 +- .../test/integration_tests/config.py | 6 +- .../test/integration_tests/horizon.conf | 5 +- .../pages/project/compute/imagespage.py | 264 ++++++++++-------- .../test/integration_tests/regions/forms.py | 23 ++ .../test/integration_tests/regions/tables.py | 157 ++++++++++- .../integration_tests/tests/test_images.py | 241 +++++++++------- .../integration_tests/tests/test_volumes.py | 24 +- 10 files changed, 496 insertions(+), 248 deletions(-) diff --git a/horizon/test/webdriver.py b/horizon/test/webdriver.py index 595e23d97a..5c57f74822 100644 --- a/horizon/test/webdriver.py +++ b/horizon/test/webdriver.py @@ -40,7 +40,7 @@ class WrapperFindOverride(object): """Mixin for overriding find_element methods.""" def find_element(self, by=by.By.ID, value=None): - repeat = range(2) + repeat = range(10) for i in repeat: try: web_el = super().find_element(by, value) @@ -51,7 +51,7 @@ class WrapperFindOverride(object): self) def find_elements(self, by=by.By.ID, value=None): - repeat = range(2) + repeat = range(10) for i in repeat: try: web_els = super().find_elements(by, value) diff --git a/openstack_dashboard/static/app/core/images/steps/create-image/create-image.html b/openstack_dashboard/static/app/core/images/steps/create-image/create-image.html index 26aa31034e..71f70ffbed 100644 --- a/openstack_dashboard/static/app/core/images/steps/create-image/create-image.html +++ b/openstack_dashboard/static/app/core/images/steps/create-image/create-image.html @@ -76,15 +76,9 @@ -
- - - - +
+
@@ -239,7 +233,7 @@ Visibility
-
+
-
+