diff --git a/client/src/components/Journey/JourneyDetailPageDatePicker.test.tsx b/client/src/components/Journey/JourneyDetailPageDatePicker.test.tsx index 77fb7ccee..4cd1f244c 100644 --- a/client/src/components/Journey/JourneyDetailPageDatePicker.test.tsx +++ b/client/src/components/Journey/JourneyDetailPageDatePicker.test.tsx @@ -1,4 +1,4 @@ -// FE-COMP-JOURNEYDATEPICKER-001 to FE-COMP-JOURNEYDATEPICKER-007 +// FE-COMP-JOURNEYDATEPICKER-001 to FE-COMP-JOURNEYDATEPICKER-008 import React from 'react' import { describe, it, expect, vi } from 'vitest' import { render, screen } from '../../../tests/helpers/render' @@ -119,3 +119,28 @@ describe('DatePicker week start (#2029)', () => { } }) }) + +describe('DatePicker inside a clipping dialog (#2858)', () => { + it('FE-COMP-JOURNEYDATEPICKER-008: the calendar floats over the page, stays inside the viewport and closes on a click away', async () => { + const user = userEvent.setup() + const { container } = render( +