Frontend tests: Fix for timechange (#113338)

(cherry picked from commit 6d9e28a59f)
This commit is contained in:
Stephanie Hingtgen
2025-11-12 08:38:22 +01:00
committed by Kevin Minehart
parent 1276aa9aac
commit 1e5c9f198c
@@ -187,14 +187,14 @@ describe('TimePickerTooltip', () => {
it('renders time range without timezone if timezone is not passed in', () => {
render(<TimePickerTooltip timeRange={timeRange} />);
expect(screen.queryByText('United States, EDT')).not.toBeInTheDocument();
expect(screen.queryByText(/United States, E[DS]T/)).not.toBeInTheDocument();
});
it('renders time range with browser timezone', () => {
render(<TimePickerTooltip timeRange={timeRange} timeZone="browser" />);
expect(screen.getByText('Local browser time')).toBeInTheDocument();
expect(screen.getByText('United States, EDT')).toBeInTheDocument(); // this was mocked at the beginning, in beforeAll block
expect(screen.getByText(/United States, E[DS]T/)).toBeInTheDocument(); // this was mocked at the beginning, in beforeAll block. matches either daylight savings time or standard time
});
it('renders time range with specific timezone', () => {