diff --git a/src/components/Dialog/Dialog.tsx b/src/components/Dialog/Dialog.tsx index 15198af2f5..1acdc56547 100644 --- a/src/components/Dialog/Dialog.tsx +++ b/src/components/Dialog/Dialog.tsx @@ -17,7 +17,7 @@ import './Dialog.scss'; const b = block('dialog'); -interface DialogOwnProps { +interface DialogOwnProps extends QAProps { open: boolean; children: React.ReactNode; onEscapeKeyDown?: ModalProps['onEscapeKeyDown']; @@ -52,7 +52,7 @@ interface DialogDefaultProps { } export type DialogProps = DialogOwnProps & Partial; -type DialogInnerProps = DialogOwnProps & DialogDefaultProps & QAProps; +type DialogInnerProps = DialogOwnProps & DialogDefaultProps; export class Dialog extends React.Component { static defaultProps: DialogDefaultProps = { diff --git a/src/components/Dialog/__stories__/DialogShowcase.tsx b/src/components/Dialog/__stories__/DialogShowcase.tsx index e419a9061c..b3e0039b7a 100644 --- a/src/components/Dialog/__stories__/DialogShowcase.tsx +++ b/src/components/Dialog/__stories__/DialogShowcase.tsx @@ -67,6 +67,7 @@ function OtherDialog() { hasCloseButton keepMounted onEnterKeyDown={handleApply} + qa="darthVader" onTransitionEntered={() => { selectRef?.current?.focus(); setTimeout(() => setOpenSelect(true), 0);