From 829201a94a61a62feb3c428789d051e3d13d170a Mon Sep 17 00:00:00 2001 From: Hannah Purcell <69368883+hannahpurcell@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:47:43 -0400 Subject: [PATCH] tweak: Update detour panel titles / buttons to match hi-fi language (#2853) --- .../detourPanels/detourFinishedPanel.tsx | 4 +- .../detours/detourPanels/drawDetourPanel.tsx | 2 +- .../detoursListPage.openDetour.test.tsx.snap | 8 +-- .../detoursListPage.openDetour.test.tsx | 5 +- .../detours/diversionPage.activate.test.tsx | 13 ++-- .../components/detours/diversionPage.test.tsx | 63 +++++++------------ assets/tests/components/mapPage.test.tsx | 3 +- .../notificationCard.openDetour.test.tsx | 5 +- .../components/detours/diversionPage.tsx | 6 ++ 9 files changed, 46 insertions(+), 63 deletions(-) diff --git a/assets/src/components/detours/detourPanels/detourFinishedPanel.tsx b/assets/src/components/detours/detourPanels/detourFinishedPanel.tsx index 112399934..a9d2115ed 100644 --- a/assets/src/components/detours/detourPanels/detourFinishedPanel.tsx +++ b/assets/src/components/detours/detourPanels/detourFinishedPanel.tsx @@ -19,7 +19,7 @@ export const DetourFinishedPanel = ({ }: DetourFinishedPanelProps) => ( -

Share Detour Details

+

View Draft Detour

@@ -30,7 +30,7 @@ export const DetourFinishedPanel = ({ variant="outline-primary" onClick={onNavigateBack} > - Edit Detour + Edit ( -

Create Detour

+

Draw Detour

diff --git a/assets/tests/components/detours/__snapshots__/detoursListPage.openDetour.test.tsx.snap b/assets/tests/components/detours/__snapshots__/detoursListPage.openDetour.test.tsx.snap index 4dbe2b0ef..3ebde0096 100644 --- a/assets/tests/components/detours/__snapshots__/detoursListPage.openDetour.test.tsx.snap +++ b/assets/tests/components/detours/__snapshots__/detoursListPage.openDetour.test.tsx.snap @@ -405,7 +405,7 @@ exports[`Detours Page: Open a Detour renders detour details in an open drawer on

- Share Detour Details + View Draft Detour

- Edit Detour + Edit