-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Adding service dialog multi drop test #9998
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this navigation(navigate_to(sd, "Edit")) helps to reach at this page - EditElementView? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, after reaching to edit view page. we navigate to EditElement page to edit the element . , I think we have to navigate by EditElementView here |
||
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') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think: you can add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is some issue with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you please point that issue here? Is GH issue created for it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure the issue but i heard that and there is one PR of Parthvi https://github.com/ManageIQ/integration_tests/pull/9978/files#diff-1af1dca8d2ad3e8627bac286076744ebR491 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @valaparthvi any issue you know related to wait? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there is any problem with create_view's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @valaparthvi @niyazRedhat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove tier marker