Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Fixing off by one error in DatePickerRange. #930

Merged
merged 5 commits into from
Mar 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint datepickerrange test
  • Loading branch information
alexcjohnson committed Mar 4, 2021
commit 03ead21508354b32b3525ef03ca60535275b836c
7 changes: 4 additions & 3 deletions tests/integration/calendar/test_date_picker_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ def test_dtpr003_no_initial_month_no_min_date_start_date(dash_dcc):
"August 2019",
)


def test_dtpr004_max_and_min_dates_are_clickable(dash_dcc):
alexcjohnson marked this conversation as resolved.
Show resolved Hide resolved
app = dash.Dash(__name__)
app.layout = html.Div(
[
dcc.DatePickerRange(
id="dps-initial-month",
start_date=datetime(2021, 1, 11),
end_date=datetime(2021,1,19),
end_date=datetime(2021, 1, 19),
max_date_allowed=datetime(2021, 1, 20),
min_date_allowed=datetime(2021, 1, 10),
)
Expand All @@ -97,8 +98,8 @@ def test_dtpr004_max_and_min_dates_are_clickable(dash_dcc):

dash_dcc.start_server(app)

dash_dcc.select_date_range('dps-initial-month',(10,20))
dash_dcc.select_date_range('dps-initial-month', (10, 20))

dash_dcc.wait_for_text_to_equal(
'#dps-initial-month .DateInput_input.DateInput_input_1[placeholder="Start Date"]',
"01/10/2021",
Expand Down