connect()}>
+
connect()}
+ data-testid={`${props.side}-section-connect-wallet-button`}
+ >
{mobile ? 'Connect' : 'Connect wallet'}
diff --git a/wormhole-connect/src/components/Header.tsx b/wormhole-connect/src/components/Header.tsx
index 3003a5f8a..e8c846ef8 100644
--- a/wormhole-connect/src/components/Header.tsx
+++ b/wormhole-connect/src/components/Header.tsx
@@ -22,6 +22,7 @@ type Props = {
text: string;
align?: Alignment;
size?: number;
+ testId?: string;
};
function Header(props: Props) {
@@ -30,7 +31,11 @@ function Header(props: Props) {
fontSize: props.size || 42,
};
const { classes } = useStyles(styleProps);
- return
{props.text}
;
+ return (
+
+ {props.text}
+
+ );
}
export default Header;
diff --git a/wormhole-connect/src/components/InputTransparent.tsx b/wormhole-connect/src/components/InputTransparent.tsx
index cacc02b03..1354b001f 100644
--- a/wormhole-connect/src/components/InputTransparent.tsx
+++ b/wormhole-connect/src/components/InputTransparent.tsx
@@ -39,6 +39,7 @@ type Props = {
onEnter?: React.KeyboardEventHandler;
disabled?: boolean;
value?: string | number;
+ testId?: string;
};
const NUMBER_FORMAT_REGEX = /^\d*\.?\d*$/;
@@ -76,6 +77,7 @@ function InputTransparent(props: Props) {
onKeyDown={handleKeyDown}
readOnly={props.disabled}
value={props.value}
+ data-testid={props.testId}
/>
);
}
diff --git a/wormhole-connect/src/components/PageHeader.tsx b/wormhole-connect/src/components/PageHeader.tsx
index 38c17a6b1..17873fb17 100644
--- a/wormhole-connect/src/components/PageHeader.tsx
+++ b/wormhole-connect/src/components/PageHeader.tsx
@@ -52,6 +52,7 @@ type PageHeaderProps = {
description?: string;
back?: boolean;
showHamburgerMenu?: boolean;
+ testId?: string;
};
function PageHeader({
@@ -60,6 +61,7 @@ function PageHeader({
align = 'left',
description,
showHamburgerMenu = true,
+ testId,
}: PageHeaderProps) {
const { classes } = useStyles({ showHamburgerMenu, align });
const dispatch = useDispatch();
@@ -78,7 +80,7 @@ function PageHeader({
onClick={goBack}
/>
)}
-
+
{showHamburgerMenu ?