diff --git a/cfme/automate/dialogs/dialog_element.py b/cfme/automate/dialogs/dialog_element.py index 13fda101d4..acbc79dcf5 100644 --- a/cfme/automate/dialogs/dialog_element.py +++ b/cfme/automate/dialogs/dialog_element.py @@ -62,7 +62,7 @@ class options(WaitTab): # noqa field_past_dates = DialogBootstrapSwitch(label='Show Past Dates') field_category = Select( locator='.//select[../../../../label[normalize-space(text())="Category"]]') - + multi_select = DialogBootstrapSwitch(label='Multiselect') validation_switch = DialogBootstrapSwitch(label='Validation') validation = Input(name='validator_rule') visible = DialogBootstrapSwitch(label='Visible') diff --git a/cfme/tests/services/test_dialog_element_in_catalog.py b/cfme/tests/services/test_dialog_element_in_catalog.py index 14e1bb7f52..22d60b77ca 100644 --- a/cfme/tests/services/test_dialog_element_in_catalog.py +++ b/cfme/tests/services/test_dialog_element_in_catalog.py @@ -3,6 +3,8 @@ import yaml from cfme import test_requirements +from cfme.automate.dialogs.dialog_element import EditElementView +from cfme.automate.dialogs.service_dialogs import DetailsDialogView from cfme.fixtures.automate import DatastoreImport from cfme.infrastructure.provider.rhevm import RHEVMProvider from cfme.markers.env_markers.provider import ONE @@ -1136,3 +1138,38 @@ def test_dialog_default_value_selection(appliance, custom_categories, import_dat view.fields("network").read() == network and view.fields("number_disk").read() == additional_disks ) + + +@pytest.mark.meta(automates=[1559030]) +@pytest.mark.customer_scenario +@pytest.mark.parametrize( + "import_data", [DatastoreImport("bz_1558926.zip", "bz_1558926", None)], ids=["domain"],) +@pytest.mark.parametrize("file_name", ["bz_1559030.yml"], ids=["dialog"]) +def test_save_dynamic_multi_drop_down_dialog(appliance, import_datastore, import_dialog, + import_data): + """ + Bugzilla: + 1559030 + Polarion: + assignee: nansari + casecomponent: Services + testtype: functional + initialEstimate: 1/4h + startsin: 5.10 + """ + sd, ele_label = import_dialog + navigate_to(sd, "Edit") + + # update dialog element + view = appliance.browser.create_view(EditElementView) + view.element.edit_element(ele_label) + view.options.click() + + # enable multi select button + view.options.multi_select.fill("Yes") + view.ele_save_button.click() + view.save_button.click() + + # no error should be displayed + view = sd.create_view(DetailsDialogView, wait="60s") + view.flash.assert_success_message(f'{sd.label} was saved') diff --git a/cfme/tests/services/test_service_catalog_dialog_manual.py b/cfme/tests/services/test_service_catalog_dialog_manual.py index 5fd83013ec..260fc89cf8 100644 --- a/cfme/tests/services/test_service_catalog_dialog_manual.py +++ b/cfme/tests/services/test_service_catalog_dialog_manual.py @@ -403,23 +403,6 @@ def test_in_dynamic_dropdown_list_the_default_value_should_not_contain_all_the_v pass -@pytest.mark.manual -@pytest.mark.tier(2) -def test_saving_service_dialog_with_multi_select_drop_down_populated_by_expression_method(): - """ - Polarion: - assignee: nansari - casecomponent: Services - testtype: functional - initialEstimate: 1/4h - startsin: 5.9 - tags: service - Bugzilla: - 1559030 - """ - pass - - @pytest.mark.manual @pytest.mark.tier(3) def test_cui_should_check_dialog_field_associations():