From 3be87fbf3b9ab354cf8c439c6aeeb28ec2c2d764 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 5 Mar 2025 18:31:55 -0600 Subject: Add report dialog e2e tests (#7913) --- src/components/Dialog/types.ts | 5 ++++- src/components/moderation/ReportDialog/index.tsx | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index 32886f3ce..3ca64a321 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -68,7 +68,10 @@ export type DialogOuterProps = { testID?: string } -type DialogInnerPropsBase = React.PropsWithChildren & T +type DialogInnerPropsBase = React.PropsWithChildren & + T & { + testID?: string + } export type DialogInnerProps = | DialogInnerPropsBase<{ label?: undefined diff --git a/src/components/moderation/ReportDialog/index.tsx b/src/components/moderation/ReportDialog/index.tsx index 291699380..c785e8c5e 100644 --- a/src/components/moderation/ReportDialog/index.tsx +++ b/src/components/moderation/ReportDialog/index.tsx @@ -186,6 +186,7 @@ function Inner(props: ReportDialogProps) { return ( @@ -231,6 +232,7 @@ function Inner(props: ReportDialogProps) {