diff --git a/packages/test-snaps/src/features/snaps/get-entropy/hooks/useEntropySelector.tsx b/packages/test-snaps/src/features/snaps/get-entropy/hooks/useEntropySelector.tsx
index 604359a184..480890f6ab 100644
--- a/packages/test-snaps/src/features/snaps/get-entropy/hooks/useEntropySelector.tsx
+++ b/packages/test-snaps/src/features/snaps/get-entropy/hooks/useEntropySelector.tsx
@@ -6,10 +6,15 @@ import { getSnapId, useInstalled } from '../../../../utils';
import { EntropySelector } from '../components';
export type UseEntropySelectorOptions = {
+ /**
+ * The prefix to add to the HTML ID for E2E testing purposes.
+ */
+ id: string;
+
/**
* Whether to show the raw list of entropy sources.
*/
- raw?: boolean;
+ raw?: boolean | undefined;
/**
* The snap ID to use for the entropy sources.
@@ -28,12 +33,15 @@ export type UseEntropySelectorOptions = {
* @param options - The options to use.
* @param options.snapId - The snap ID to use for the entropy sources.
* @param options.port - The port to use for the entropy sources.
+ * @param options.id - The prefix to add to the HTML ID for E2E testing
+ * purposes.
* @param options.raw - Whether to show the raw list of entropy sources.
* @returns The entropy source and selector.
*/
export const useEntropySelector = ({
snapId: publicSnapId,
port,
+ id,
raw = false,
}: UseEntropySelectorOptions) => {
const [source, setSource] = useState(undefined);
@@ -54,6 +62,8 @@ export const useEntropySelector = ({
return {
source,
sources: data,
- selector: ,
+ selector: (
+
+ ),
};
};