本文整理汇总了Python中widgetastic_patternfly.Dropdown.read方法的典型用法代码示例。如果您正苦于以下问题:Python Dropdown.read方法的具体用法?Python Dropdown.read怎么用?Python Dropdown.read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类widgetastic_patternfly.Dropdown
的用法示例。
在下文中一共展示了Dropdown.read方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_custom_button_text_display
# 需要导入模块: from widgetastic_patternfly import Dropdown [as 别名]
# 或者: from widgetastic_patternfly.Dropdown import read [as 别名]
def test_custom_button_text_display(appliance, context, serv_button_group, service):
""" Test custom button text display on option
Polarion:
assignee: ndhandre
initialEstimate: 1/6h
caseimportance: medium
caseposneg: positive
testtype: functional
startsin: 5.9
casecomponent: CustomButton
tags: custom_button
testSteps:
1. Appliance with Service
2. Create custom button `Group` or `Button` without display option
3. Check Group/Button text display or not on UI and SSUI.
Bugzilla:
1650066
1659452
"""
my_service = MyService(appliance, name=service.name)
button, group = serv_button_group
with appliance.context.use(context):
navigate_to = ssui_nav if context is ViaSSUI else ui_nav
destinations = (
["Details"]
if (BZ(1650066).blocks and context is ViaSSUI)
else ["All", "Details"]
)
for destination in destinations:
view = navigate_to(my_service, destination)
custom_button_group = Dropdown(view, group.text)
if group.display is True:
assert "" in custom_button_group.items
else:
assert custom_button_group.read() == ""