widgetastic.patternfly5 24.1.16.0__py3-none-any.whl → 24.2.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/METADATA +1 -1
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/RECORD +6 -6
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/WHEEL +1 -1
- widgetastic_patternfly5/components/menus/dropdown.py +5 -3
- widgetastic_patternfly5/components/menus/options_menu.py +3 -2
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/licenses/LICENSE +0 -0
{widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: widgetastic.patternfly5
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.2.15.0
|
|
4
4
|
Summary: Patternfly5 widget library for Widgetastic.
|
|
5
5
|
Project-URL: repository, https://github.com/RedHatQE/widgetastic.patternfly5
|
|
6
6
|
Maintainer-email: Nikhil Dhandre <ndhandre@redhat.com>, Egor Shamardin <eshamard@redhat.com>, Mike Shriver <mshriver@redhat.com>
|
{widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.15.0.dist-info}/RECORD
RENAMED
|
@@ -32,12 +32,12 @@ widgetastic_patternfly5/components/forms/form_select.py,sha256=jQUpwJnJnOl5_0Xze
|
|
|
32
32
|
widgetastic_patternfly5/components/forms/radio.py,sha256=9I7P9hsKRojGvTZtSsqVTI_4ek_qIYKEdamSdUfxsMA,2099
|
|
33
33
|
widgetastic_patternfly5/components/menus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
widgetastic_patternfly5/components/menus/context_selector.py,sha256=uMumIPxuY3f_r5o9JrMibiPQgpFjRaFQwwo08_rVeMQ,1150
|
|
35
|
-
widgetastic_patternfly5/components/menus/dropdown.py,sha256=
|
|
35
|
+
widgetastic_patternfly5/components/menus/dropdown.py,sha256=5nCz0HRG4VcrzD1NFC9Hj1m2T4yHihfNf2MNQWnBOEk,9478
|
|
36
36
|
widgetastic_patternfly5/components/menus/menu.py,sha256=0cUb5V1y3RgRpdAB8DlPIL9OOl7IxBC8A1xjcZgfLBA,7949
|
|
37
37
|
widgetastic_patternfly5/components/menus/menu_toggle.py,sha256=PBwNvg6E2RPdCG6ALBUqyTZxCwThJgk5S-9ghTiZ9hM,1029
|
|
38
|
-
widgetastic_patternfly5/components/menus/options_menu.py,sha256=
|
|
38
|
+
widgetastic_patternfly5/components/menus/options_menu.py,sha256=43D0_JHeY-kPORQi54NL9OVmcMyAolVnI4dqHpo5omY,1353
|
|
39
39
|
widgetastic_patternfly5/components/menus/select.py,sha256=2nb78mGsdzgmYrtdvvRf2N51iKUDl2VeyE7qEjWl4qQ,5711
|
|
40
|
-
widgetastic.patternfly5-24.
|
|
41
|
-
widgetastic.patternfly5-24.
|
|
42
|
-
widgetastic.patternfly5-24.
|
|
43
|
-
widgetastic.patternfly5-24.
|
|
40
|
+
widgetastic.patternfly5-24.2.15.0.dist-info/METADATA,sha256=R4rs_a7VQOH4YHFBNBqb2N2CCbWXWBN9yGJk8sjAFPY,6640
|
|
41
|
+
widgetastic.patternfly5-24.2.15.0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
42
|
+
widgetastic.patternfly5-24.2.15.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
|
|
43
|
+
widgetastic.patternfly5-24.2.15.0.dist-info/RECORD,,
|
|
@@ -65,9 +65,11 @@ class BaseDropdown:
|
|
|
65
65
|
@property
|
|
66
66
|
def is_open(self):
|
|
67
67
|
"""Returns True if the Dropdown is open"""
|
|
68
|
-
return
|
|
69
|
-
self.BUTTON_LOCATOR
|
|
70
|
-
|
|
68
|
+
return (
|
|
69
|
+
"pf-m-expanded" in self.browser.classes(self.BUTTON_LOCATOR)
|
|
70
|
+
or "pf-m-expanded" in self.browser.classes(self)
|
|
71
|
+
or self.browser.attributes(self.BUTTON_LOCATOR).get("aria-expanded") == "true"
|
|
72
|
+
)
|
|
71
73
|
|
|
72
74
|
def open(self):
|
|
73
75
|
"""Opens a dropdown."""
|
|
@@ -16,9 +16,10 @@ class BaseOptionsMenu:
|
|
|
16
16
|
TEXT_LOCATOR = (
|
|
17
17
|
'.//div[contains(@class, "-c-options-menu") and child::button[normalize-space(.)={}]]'
|
|
18
18
|
)
|
|
19
|
+
# PF4/5 backward compatibility locator
|
|
19
20
|
DEFAULT_LOCATOR = (
|
|
20
|
-
"
|
|
21
|
-
"contains(@class, '-c-options-menu')]/parent::div)[1]"
|
|
21
|
+
".//div[contains(@data-ouia-component-type, 'PaginationOptionsMenu')] | "
|
|
22
|
+
"(.//button[contains(@class, '-c-menu-toggle') or contains(@class, '-c-options-menu')]/parent::div)[1]" # noqa
|
|
22
23
|
)
|
|
23
24
|
|
|
24
25
|
SELECTED_ITEMS_LOCATOR = (
|
|
File without changes
|