Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] SSUI page provider check tests #9655

Merged
merged 2 commits into from
Nov 22, 2019

Conversation

digitronik
Copy link
Contributor

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}}

@digitronik digitronik changed the title [WIPTEST] SSUI page provider check tests [RFR] SSUI page provider check tests Nov 22, 2019
Copy link
Member

@ganeshhubale ganeshhubale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@ganeshhubale ganeshhubale added test-automation To be applied on PR's which are automating existing manual cases fix-locator-or-text labels Nov 22, 2019
@ganeshhubale ganeshhubale changed the title [RFR] SSUI page provider check tests [1LP][RFR] SSUI page provider check tests Nov 22, 2019
@izapolsk izapolsk self-requested a review November 22, 2019 10:34
@izapolsk izapolsk self-assigned this Nov 22, 2019
@@ -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.
Copy link
Member

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):
Copy link
Member

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.

Copy link
Contributor Author

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):
Copy link
Member

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.

@mshriver mshriver merged commit 622ef3e into ManageIQ:master Nov 22, 2019
spusateri pushed a commit to spusateri/integration_tests that referenced this pull request Jan 27, 2020
* ssui pf card widget and use in vm datails page

* automate provider check ssui test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix-locator-or-text lint-ok test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants