-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] SSUI page provider check tests #9655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
@@ -175,6 +176,11 @@ class MyServiceVMDetailsView(MyServicesView): | |||
# TODO: This view needs enhancement by FA owner. | |||
# TimelinesChart Widget not supporting completely need improvements as per SSUI. | |||
|
|||
# I won't found better way than indexing on this Page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad, thanks for at least commenting it.
@@ -55,7 +57,7 @@ def service_dialog(appliance, widget_name): | |||
|
|||
|
|||
@pytest.fixture(scope="function") | |||
def catalog_item(appliance, service_dialog, catalog): | |||
def catalog_item_local(appliance, service_dialog, catalog): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You actually don't need to change the name of the fixture, pytest will resolve the most local one matching the node's scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually pytest
took local catalog_item
fixture instate of catalog_item
global fixture; when we call global service_vm
.
@@ -5946,3 +5946,17 @@ def messages(self): | |||
except NoSuchElementException: | |||
pass | |||
return result | |||
|
|||
|
|||
class SSUICardPFInfoStatus(Widget): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider subclassing widgetastic.widget.GenericLocatorWidget
when setting up a widget like this, as it takes care of mapping ROOT to the passed locator.
* ssui pf card widget and use in vm datails page * automate provider check ssui test
Purpose or Intent
PRT Run
{{pytest: cfme/tests/services/test_dialog_element_in_catalog.py::test_provider_field_should_display_in_vm_details_page_in_ssui -v}}