widgetastic.patternfly5 25.7.30.0__py3-none-any.whl → 25.12.11.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.
@@ -5,9 +5,9 @@ from widgetastic.xpath import quote
5
5
 
6
6
 
7
7
  class DonutLegendItem(ParametrizedView, ClickableMixin):
8
- PARAMETERS = ("label_text",)
8
+ PARAMETERS = ("label_name",)
9
9
  ROOT = ParametrizedLocator(
10
- ".//*[name()='text']/*[name()='tspan' and contains(., '{label_text}')]"
10
+ ".//*[name()='text']/*[name()='tspan' and contains(., '{label_name}:')]"
11
11
  )
12
12
  ALL_ITEMS = ".//*[name()='text']/*[name()='tspan']"
13
13
  LEGEND_ITEM_REGEX = re.compile(r"(.*?): ([\d]+)")
@@ -32,8 +32,14 @@ class DonutLegendItem(ParametrizedView, ClickableMixin):
32
32
 
33
33
  @classmethod
34
34
  def all(cls, browser):
35
- """Returns a list of all items"""
36
- return [(browser.text(el),) for el in browser.elements(cls.ALL_ITEMS)]
35
+ """Returns a list of all item labels"""
36
+ result = []
37
+ for el in browser.elements(cls.ALL_ITEMS):
38
+ text = browser.text(el)
39
+ # Extract just the label
40
+ label, _ = cls._get_legend_item(text)
41
+ result.append((label,))
42
+ return result
37
43
 
38
44
 
39
45
  class DonutLegend(View):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: widgetastic.patternfly5
3
- Version: 25.7.30.0
3
+ Version: 25.12.11.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>
@@ -28,7 +28,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
28
  Classifier: Topic :: Software Development :: Quality Assurance
29
29
  Classifier: Topic :: Software Development :: Testing
30
30
  Requires-Python: >=3.11
31
- Requires-Dist: widgetastic-core>=1.0.6
31
+ Requires-Dist: widgetastic-core~=1.1.0
32
32
  Provides-Extra: dev
33
33
  Requires-Dist: codecov; extra == 'dev'
34
34
  Requires-Dist: pre-commit; extra == 'dev'
@@ -4,7 +4,7 @@ widgetastic_patternfly5/charts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
4
4
  widgetastic_patternfly5/charts/alerts_timeline_chart.py,sha256=U7hJvxAG1Wgj9WFt5QxAmLh9cJm2qzs2YHs2wfEW0Pk,2377
5
5
  widgetastic_patternfly5/charts/boxplot_chart.py,sha256=6Ek6gwbmwNeazy-5o2fVfvkjpd6bhbTyitiPomvLBts,405
6
6
  widgetastic_patternfly5/charts/bullet_chart.py,sha256=zfAdvxzPFqeGFzDoqJIUxwkERUlHfPohHOjzPJEjVdw,3680
7
- widgetastic_patternfly5/charts/donut_chart.py,sha256=RmDKyWjhKnGWQwZ1twPN837LYuvlF1inQlYhIgJgFxU,2570
7
+ widgetastic_patternfly5/charts/donut_chart.py,sha256=ilDQR8ErGp4NqfkbHyvzIKKYVADk5rZkHy9U_BaT2Os,2750
8
8
  widgetastic_patternfly5/charts/legend.py,sha256=nLv2dEXTICsIT3PJfYn4Ko2WvvgFFggaXVedRTZ3NkE,3057
9
9
  widgetastic_patternfly5/charts/line_chart.py,sha256=9gjoUqWopSYTng0iRpvppm-CL-QA8H_HpTvFddg0sB4,3995
10
10
  widgetastic_patternfly5/charts/pie_chart.py,sha256=rIxMv6vPERj9FnTp8daejL7MxUTKFCTj9057C1KuuKw,218
@@ -40,7 +40,7 @@ widgetastic_patternfly5/components/menus/menu.py,sha256=sRkb46XWMNGueDCkOjs4vyb9
40
40
  widgetastic_patternfly5/components/menus/menu_toggle.py,sha256=PBwNvg6E2RPdCG6ALBUqyTZxCwThJgk5S-9ghTiZ9hM,1029
41
41
  widgetastic_patternfly5/components/menus/options_menu.py,sha256=-7pRukhgxln0rMV77VhNyQ-njLPAE6Wnp2vNAoJUXZk,1474
42
42
  widgetastic_patternfly5/components/menus/select.py,sha256=X8DApXg_7tLIOulpmEP-f09bDShYL8jcEb1tYvNHwrE,6482
43
- widgetastic.patternfly5-25.7.30.0.dist-info/METADATA,sha256=K5-Y-AiWsKPfFl7Yr21erTcYeGA4YMH_0fiSqxPQmOg,6910
44
- widgetastic.patternfly5-25.7.30.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
- widgetastic.patternfly5-25.7.30.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
46
- widgetastic.patternfly5-25.7.30.0.dist-info/RECORD,,
43
+ widgetastic_patternfly5-25.12.11.0.dist-info/METADATA,sha256=o7MHF81w5zLi3xth-5qOzNUbjc8UJlhEfvIK_FtrBNw,6911
44
+ widgetastic_patternfly5-25.12.11.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
45
+ widgetastic_patternfly5-25.12.11.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
46
+ widgetastic_patternfly5-25.12.11.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any