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

[1LP][RFR] Adding service dialog multi drop test #9998

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

niyazRedhat
Copy link
Contributor

Purpose or Intent

PRT Run

{{pytest: cfme/tests/services/test_dialog_element_in_catalog.py::test_save_dynamic_multi_drop_down_dialog }}

@niyazRedhat niyazRedhat force-pushed the multi-dialog-bz branch 3 times, most recently from 9c6f2e1 to 9ccf80d Compare March 19, 2020 12:24
@niyazRedhat niyazRedhat changed the title [WIPTEST] Adding service dialog multi drop test [RFR] Adding service dialog multi drop test Mar 19, 2020

@pytest.mark.meta(automates=[1559030])
@pytest.mark.tier(2)
@pytest.mark.customer_scenario
Copy link
Member

Choose a reason for hiding this comment

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

remove tier marker


# update dialog element
view = appliance.browser.create_view(EditElementView)
view.element.edit_element(ele_label)
Copy link
Member

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

@niyazRedhat niyazRedhat Mar 19, 2020

Choose a reason for hiding this comment

The 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

# no error should be displayed
view = sd.create_view(DetailsDialogView)
view.wait_displayed()
view.flash.assert_success_message(f'{sd.label} was saved')
Copy link
Member

Choose a reason for hiding this comment

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

I think: you can add wait in create_view(DetailsDialogView). No need of view.wait_displayed().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is some issue with wait . view.wait_displayed() would be nice here.

Copy link
Member

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@valaparthvi any issue you know related to wait?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there is any problem with create_view's wait. That problem was with FlashMessages widget. I think the widget stopped supporting wait argument.

Copy link
Member

Choose a reason for hiding this comment

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

view = sd.create_view(DetailsDialogView)
view.wait_displayed()
view.flash.assert_success_message(f'{sd.label} was saved')
view.flash.assert_no_error()
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this assertion as we already checking assert message?

@ganeshhubale ganeshhubale added customer-case test-automation To be applied on PR's which are automating existing manual cases labels Mar 19, 2020
@ganeshhubale ganeshhubale changed the title [RFR] Adding service dialog multi drop test [WIPTEST] Adding service dialog multi drop test Mar 19, 2020
@niyazRedhat niyazRedhat changed the title [WIPTEST] Adding service dialog multi drop test [RFR] Adding service dialog multi drop test Mar 19, 2020
Copy link
Member

@ganeshhubale ganeshhubale left a comment

Choose a reason for hiding this comment

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

LGTM :)

# no error should be displayed
view = sd.create_view(DetailsDialogView)
view.wait_displayed()
view.flash.assert_success_message(f'{sd.label} was saved')
Copy link
Member

Choose a reason for hiding this comment

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

@ganeshhubale ganeshhubale changed the title [RFR] Adding service dialog multi drop test [1LP][RFR] Adding service dialog multi drop test Mar 23, 2020
@digitronik digitronik merged commit 392fb27 into ManageIQ:master Mar 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-case lint-ok test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants