Skip to content

Commit b21306d

Browse files
committed
Fix Events UI test failure caused by missing timezone context
1 parent ce812ad commit b21306d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎airflow-core/src/airflow/ui/src/pages/Events/Events.test.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { afterEach, expect, it, vi } from "vitest";
2222

2323
import { EventLogService, TaskInstanceService } from "openapi/requests";
2424

25+
import { TimezoneProvider } from "src/context/timezone";
2526
import { BaseWrapper } from "src/utils/Wrapper";
2627

2728
import { Events } from "./Events";
@@ -43,9 +44,11 @@ it("filters a regional audit tab by the pass coordinates, keeping every try and
4344
`/dags/dag/runs/run/tasks/work/events?region_id=${regionId}&region_index=3&map_index=-1&try_number=2`,
4445
]}
4546
>
46-
<Routes>
47-
<Route element={<Events />} path="/dags/:dagId/runs/:runId/tasks/:taskId/events" />
48-
</Routes>
47+
<TimezoneProvider>
48+
<Routes>
49+
<Route element={<Events />} path="/dags/:dagId/runs/:runId/tasks/:taskId/events" />
50+
</Routes>
51+
</TimezoneProvider>
4952
</MemoryRouter>
5053
</BaseWrapper>,
5154
);

0 commit comments

Comments
 (0)