-
Notifications
You must be signed in to change notification settings - Fork 164
[1LP][RFR] Automating dynamic refresh dialog test #10052
Conversation
318b724
to
f5e6764
Compare
69cb46e
to
1df36e1
Compare
menu = view.fields("menu").read() | ||
topping = view.fields("dropdown_list_1").read() | ||
|
||
if menu == 'Burger': | ||
assert topping == 'Black Bean' | ||
elif menu == "Fries": | ||
assert topping == "Sweet Potato" | ||
elif menu == 'Shake': | ||
assert topping == 'Vanilla' | ||
elif menu == 'Empty Set': | ||
assert topping == 'Nothing selected for parent dialog' |
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.
How is the value selected for menu
? Is it random or does it stay the same always?
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.
@valaparthvi It randomly select the value when we refresh the field view.fields("Menu").refresh.click()
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.
Optional
menu = view.fields("menu").read() | |
topping = view.fields("dropdown_list_1").read() | |
if menu == 'Burger': | |
assert topping == 'Black Bean' | |
elif menu == "Fries": | |
assert topping == "Sweet Potato" | |
elif menu == 'Shake': | |
assert topping == 'Vanilla' | |
elif menu == 'Empty Set': | |
assert topping == 'Nothing selected for parent dialog' | |
data = {"Burger": "Black Bean", "Fries": "Sweet Potato", "Shake": "Vanilla", "Empty Set": "Nothing selected for parent dialog"} | |
assert topping == data[menu] |
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.
LGTM.
menu = view.fields("menu").read() | ||
topping = view.fields("dropdown_list_1").read() | ||
|
||
if menu == 'Burger': | ||
assert topping == 'Black Bean' | ||
elif menu == "Fries": | ||
assert topping == "Sweet Potato" | ||
elif menu == 'Shake': | ||
assert topping == 'Vanilla' | ||
elif menu == 'Empty Set': | ||
assert topping == 'Nothing selected for parent dialog' |
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.
Optional
menu = view.fields("menu").read() | |
topping = view.fields("dropdown_list_1").read() | |
if menu == 'Burger': | |
assert topping == 'Black Bean' | |
elif menu == "Fries": | |
assert topping == "Sweet Potato" | |
elif menu == 'Shake': | |
assert topping == 'Vanilla' | |
elif menu == 'Empty Set': | |
assert topping == 'Nothing selected for parent dialog' | |
data = {"Burger": "Black Bean", "Fries": "Sweet Potato", "Shake": "Vanilla", "Empty Set": "Nothing selected for parent dialog"} | |
assert topping == data[menu] |
Purpose or Intent
PRT Run
{{pytest: cfme/tests/services/test_dynamicdd_dialogelement.py::test_dynamic_field_update_on_refresh -vvvv --long-running }}
test_regex_validation_should_work
this is also covered in this PRtest_reconfigure_service_for_dialogs_with_timeout_values
, we already have automation ->test_reconfigure_service
test_should_be_able_to_see_requests_if_our_users...
, we already have related testtest_service_rbac_request