-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
Description
def test_bootstrap_date_picker(browser):
<...>
# `fill` and `read` with current date
today_date = datetime.now()
> view.dp_readonly.fill(today_date)
testing/test_date_picker.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py36/lib/python3.6/site-packages/widgetastic/log.py:115: in wrapped
result = f(self, *args, **kwargs)
.tox/py36/lib/python3.6/site-packages/widgetastic/widget/base.py:30: in wrapped
return method(self, Fillable.coerce(value), *args, **kwargs)
.tox/py36/lib/python3.6/site-packages/widgetastic_patternfly/__init__.py:2060: in fill
self.year_pick.select(value=value.year)
.tox/py36/lib/python3.6/site-packages/widgetastic/widget/base.py:67: in wrapped
return method(self, *new_args, **new_kwargs)
.tox/py36/lib/python3.6/site-packages/widgetastic_patternfly/__init__.py:2018: in select
start_yr, end_yr = [int(item) for item in self.datepicker_switch.read().split('-')]self.datepicker_switch.read() is resolving the datepicker-daysDOM and readingNovember 2020(example) instead of2020-2029as expected, from thedatepicker-years` DOM.
A HeaderView class is used to define datepicker_switch locator, but the parent isn't setup properly for the widget, resulting in an out-of-scope match and unexpected text.