From b900382d63b712f6ad373d037b794712b889140b Mon Sep 17 00:00:00 2001 From: Scott Snow Date: Wed, 18 Jun 2025 09:33:13 -0700 Subject: [PATCH] add testid to toast --- packages/@react-spectrum/toast/src/Toast.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/@react-spectrum/toast/src/Toast.tsx b/packages/@react-spectrum/toast/src/Toast.tsx index fc1b4687bf5..0981418c735 100644 --- a/packages/@react-spectrum/toast/src/Toast.tsx +++ b/packages/@react-spectrum/toast/src/Toast.tsx @@ -118,14 +118,15 @@ export const Toast = React.forwardRef(function Toast(props: SpectrumToastProps, onPress={handleAction} UNSAFE_className={classNames(styles, 'spectrum-Button')} variant="secondary" - staticColor="white"> + staticColor="white" + data-testid="rsp-toast-secondaryButton"> {actionLabel} }
- +