From df4037bd81089ab6302bd1e7db4d5d142d11b1b5 Mon Sep 17 00:00:00 2001 From: Tatiana Ovchinnikova Date: Fri, 10 Sep 2021 15:24:51 -0500 Subject: 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 (cherry picked from commit 4743c6c748be79c3a80a350d05aeed7bbe63c577) --- horizon/test/webdriver.py | 4 +- .../images/steps/create-image/create-image.html | 16 +- .../core/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 | 246 ++++++++++++--------- .../test/integration_tests/regions/forms.py | 23 ++ .../test/integration_tests/regions/tables.py | 157 ++++++++++++- .../test/integration_tests/tests/test_images.py | 234 ++++++++++++-------- .../test/integration_tests/tests/test_volumes.py | 24 +- 10 files changed, 483 insertions(+), 236 deletions(-) diff --git a/horizon/test/webdriver.py b/horizon/test/webdriver.py index 3edb71dcb..824bf02e4 100644 --- a/horizon/test/webdriver.py +++ b/horizon/test/webdriver.py @@ -37,7 +37,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) @@ -48,7 +48,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 26aa31034..71f70ffbe 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
-
+
-
+