Frontend tests: Fix for timechange (#113338)

This commit is contained in:
Stephanie Hingtgen
2025-11-03 07:31:40 +00:00
committed by GitHub
parent 6c728f8dec
commit 6d9e28a59f
@@ -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', () => {