Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions cfme/tests/services/test_dialog_element_in_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,3 +1194,41 @@ def test_dynamic_dialog_field_to_static_field(appliance, import_datastore,
with LogValidator(auto_log, failure_patterns=["TEXT AREA REFRESH DIALOG"]
).waiting(timeout=120):
navigate_to(service_catalogs, "Order")


@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1568342])
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1568342.zip", "bz_1568342", None)],
ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1568342.yml"], ids=["dynamic_dialog"])
@pytest.mark.parametrize('context', [ViaUI, ViaSSUI])
def test_dynamic_dropdown_auto_refresh_load(appliance, import_datastore, import_data,
generic_catalog_item_with_imported_dialog, context):
"""
Bugzilla:
1568342
Polarion:
assignee: nansari
startsin: 5.11
casecomponent: Services
initialEstimate: 1/16h
"""
catalog_item, _, ele_label = generic_catalog_item_with_imported_dialog

service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)

with appliance.context.use(context):
if context == ViaSSUI:
view = ssui_nav(service_catalogs, "Details")
else:
view = navigate_to(service_catalogs, "Order")

view.fields(ele_label).dropdown.fill("Contract B")
wait_for(
lambda: view.fields("location").dropdown.read() == 'Florida', timeout=7
)

view.fields(ele_label).dropdown.fill("Contract A")
wait_for(
lambda: view.fields("location").dropdown.read() == 'Alaska', timeout=7
)
17 changes: 0 additions & 17 deletions cfme/tests/ssui/test_ssui_service_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,6 @@ def test_refresh_ssui_page(appliance, generic_service):
assert view.is_displayed


@pytest.mark.manual
@pytest.mark.tier(1)
def test_sui_ordering_service_catalog_the_dynamic_drop_down_dialogs_fields_should_auto_refreshed():
"""
Polarion:
assignee: nansari
casecomponent: SelfServiceUI
testtype: functional
initialEstimate: 1/4h
startsin: 5.8
tags: ssui
Bugzilla:
1568342
"""
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_disabling_dashboard_under_service_ui_for_a_role_shall_disable_the_dashboard():
Expand Down