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

[1LP][RFR] Adding new dynamic service dialog test #9789

Merged
merged 1 commit into from
Jan 2, 2020
Merged
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
31 changes: 23 additions & 8 deletions cfme/tests/services/test_dynamicdd_dialogelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,17 +381,32 @@ def test_child_dialog_should_update_with_new_options_based_on_option_of_parent_d
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_value_input_into_service_dialog_element():
@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1364407])
@pytest.mark.tier(2)
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1364407.zip", "bz_1364407", None)],
ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1364407.yml"], ids=["dynamic_dialog"])
def test_update_dynamic_field_on_refresh(appliance, import_datastore, import_data,
generic_catalog_item_with_imported_dialog):
"""
Bugzilla:
1364407

Polarion:
assignee: nansari
startsin: 5.10
casecomponent: Services
testtype: functional
initialEstimate: 1/16h
startsin: 5.5
Bugzilla:
1364407
"""
pass
catalog_item, sd, ele_label = generic_catalog_item_with_imported_dialog

service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)
view = navigate_to(service_catalogs, "Order")
# Choose "Configure with reboot" radio button
view.fields('Configuration Type Required').radiogroup.select('Configure with reboot')
# Dynamic fields should update after selecting the radio button
wait_for(
lambda: view.fields("dynamic_1").read() == 'reboot' and
view.fields("dynamic_2").read() == 'reboot', timeout=7
)