From 7e82f38eda64c90140182920342efbbb91bf6a51 Mon Sep 17 00:00:00 2001 From: David Liu Date: Tue, 3 Dec 2024 11:17:17 -0500 Subject: [PATCH 1/4] add jest tests --- .../ui-core/src/ticks/DryRunRequestTable.tsx | 9 ++++- .../__tests__/DryRunRequestTable.test.tsx | 21 ++++++++-- .../__tests__/EvaluateScheduleDialog.test.tsx | 38 +++++++++++++++++++ .../__tests__/SensorDryRunDialog.test.tsx | 30 +++++++++++++-- 4 files changed, 88 insertions(+), 10 deletions(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx index ca8082e8561fb..b9859d06be68a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx @@ -52,6 +52,7 @@ export const RunRequestTable = ({runRequests, isJob, repoAddress, mode, jobName} { setSelectedRequest(request); setVisibleDialog('config'); @@ -91,10 +92,14 @@ export const RunRequestTable = ({runRequests, isJob, repoAddress, mode, jobName} ); }; -function PreviewButton({onClick}: {onClick: () => void}) { +function PreviewButton({request, onClick}: {request: RunRequestFragment; onClick: () => void}) { return ( -