diff --git a/assets/src/components/detours/activateDetourModal.tsx b/assets/src/components/detours/activateDetourModal.tsx index 4e87b51f5..43f4ea473 100644 --- a/assets/src/components/detours/activateDetourModal.tsx +++ b/assets/src/components/detours/activateDetourModal.tsx @@ -44,13 +44,18 @@ interface SurroundingModalProps extends PropsWithChildren { onActivate?: () => void } +interface FSElementProps { + nextStepLabel: string | undefined +} + const SurroundingModal = ({ onCancel, onNext, onBack, onActivate, children, -}: SurroundingModalProps) => ( + nextStepLabel, +}: SurroundingModalProps & FSElementProps) => (

Start detour

@@ -78,6 +83,7 @@ const SurroundingModal = ({ variant="primary" disabled={onNext === undefined} onClick={onNext} + data-fs-element={nextStepLabel} > Next diff --git a/assets/src/components/detours/diversionPage.tsx b/assets/src/components/detours/diversionPage.tsx index d29ac88a0..c9ca0e572 100644 --- a/assets/src/components/detours/diversionPage.tsx +++ b/assets/src/components/detours/diversionPage.tsx @@ -281,6 +281,21 @@ export const DiversionPage = ({ }, }) ? ( { send({ type: "detour.share.activate-modal.cancel" }) }}