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

[1LP][RFR] Adding dynamic service dialog test #9817

Merged
merged 1 commit into from
Jan 16, 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
30 changes: 26 additions & 4 deletions cfme/tests/services/test_dialog_element_in_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,13 @@ def test_regex_validation_should_work():
pass


@pytest.mark.meta(coverage=[1696474])
@pytest.mark.manual
@pytest.mark.tier(2)
def test_dynamic_dialogs():
@pytest.mark.meta(automates=[1696474])
@pytest.mark.customer_scenario
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1696474.zip", "bz_1696474", None)],
ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1696474.yml"], ids=["sample_dialog"],)
def test_dynamic_dialogs(appliance, import_datastore, generic_catalog_item_with_imported_dialog):
"""

Bugzilla:
Expand All @@ -662,7 +665,26 @@ def test_dynamic_dialogs():
3.
4. All dynamic dialog functionality should work
"""
pass
catalog_item, _, ele_label = generic_catalog_item_with_imported_dialog

service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)
view = navigate_to(service_catalogs, "Order")

data_value = fauxfactory.gen_alphanumeric()
view.fields(ele_label).fill(data_value)

# 'limit', 'param_vm_name', 'param_database' and 'dialog_hostname_master_appliance'
# Fields are coming from imported dialog.
wait_for(
lambda: view.fields("limit").read() == data_value and
view.fields("param_vm_name").read() == data_value, timeout=7
)

# TextBox should read the appliance IP address
view.fields("dialog_hostname_master_appliance").read() == appliance.hostname

# Checkbox must be checked for database field
assert view.fields("param_database").checkbox.read()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a comment that fields like 'limit', 'param_vm_name', 'param_database' and 'dialog_hostname_master_appliance' are coming from imported dialog.



@pytest.mark.meta(coverage=[1706600])
Expand Down