From 127b54f81273b8ab7b38aa634756f09b3b175869 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Thu, 18 May 2023 15:35:36 -0400 Subject: [PATCH] add some IDs --- .../features/gallery/components/CurrentImageButtons.tsx | 2 ++ .../web/src/features/gallery/components/HoverableImage.tsx | 7 ++++++- .../parameters/components/ProcessButtons/CancelButton.tsx | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/CurrentImageButtons.tsx b/invokeai/frontend/web/src/features/gallery/components/CurrentImageButtons.tsx index 65e9dcb43c..b0f1401c35 100644 --- a/invokeai/frontend/web/src/features/gallery/components/CurrentImageButtons.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/CurrentImageButtons.tsx @@ -417,6 +417,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => { size="sm" onClick={handleSendToImageToImage} leftIcon={} + id="send-to-img2img" > {t('parameters.sendToImg2Img')} @@ -425,6 +426,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => { size="sm" onClick={handleSendToCanvas} leftIcon={} + id="send-to-canvas" > {t('parameters.sendToUnifiedCanvas')} diff --git a/invokeai/frontend/web/src/features/gallery/components/HoverableImage.tsx b/invokeai/frontend/web/src/features/gallery/components/HoverableImage.tsx index 6eb44de99c..a82f199a2b 100644 --- a/invokeai/frontend/web/src/features/gallery/components/HoverableImage.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/HoverableImage.tsx @@ -250,11 +250,16 @@ const HoverableImage = memo((props: HoverableImageProps) => { } onClickCapture={handleSendToImageToImage} + id="send-to-img2img" > {t('parameters.sendToImg2Img')} {isCanvasEnabled && ( - } onClickCapture={handleSendToCanvas}> + } + onClickCapture={handleSendToCanvas} + id="send-to-canvas" + > {t('parameters.sendToUnifiedCanvas')} )} diff --git a/invokeai/frontend/web/src/features/parameters/components/ProcessButtons/CancelButton.tsx b/invokeai/frontend/web/src/features/parameters/components/ProcessButtons/CancelButton.tsx index 23f2ae409a..57b556f88c 100644 --- a/invokeai/frontend/web/src/features/parameters/components/ProcessButtons/CancelButton.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/ProcessButtons/CancelButton.tsx @@ -132,6 +132,7 @@ const CancelButton = ( isDisabled={!isConnected || !isProcessing || !isCancelable} onClick={handleClickCancel} colorScheme="error" + id="cancel-button" {...rest} />