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

Commit

Permalink
Merge pull request #9789 from niyazRedhat/update_dynamic
Browse files Browse the repository at this point in the history
[1LP][RFR] Adding new dynamic service dialog test
  • Loading branch information
digitronik authored Jan 2, 2020
2 parents 60b048f + 9e43d9c commit 50fa157
Showing 1 changed file with 23 additions and 8 deletions.
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 @@ -398,17 +398,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
)

0 comments on commit 50fa157

Please sign in to comment.