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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: widgetastic.patternfly5
3
- Version: 24.1.16.0
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>
@@ -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=LWzVZqvV3eE--E_TzZeTCO20c3jm2Szxsuap_n7TRig,9373
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=c5L4MhXazdLnfBO9mf4-2UsZa7NGW9yJ6_aDDtHdXAc,1231
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.1.16.0.dist-info/METADATA,sha256=NsMxXyI3zuPjMuRFZYs8WlnOyCE3k6-zcId-sCq4Js8,6640
41
- widgetastic.patternfly5-24.1.16.0.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
42
- widgetastic.patternfly5-24.1.16.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
43
- widgetastic.patternfly5-24.1.16.0.dist-info/RECORD,,
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.21.0
2
+ Generator: hatchling 1.21.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -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 "pf-m-expanded" in self.browser.classes(
69
- self.BUTTON_LOCATOR
70
- ) or "pf-m-expanded" in self.browser.classes(self)
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
- "(.//button[contains(@class, '-c-menu-toggle') or "
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 = (