From 2054b20db5829d650c28fa6edd5ccd75301ee4aa Mon Sep 17 00:00:00 2001 From: florinbilt <160469273+florinbilt@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:02:12 +0200 Subject: [PATCH] 3305 - Make the length of the short revision hash constant across Treeherder (#7914) * 3305 - Make the length of the short revision hash constant with bugzilla * 3305 - Make the length of the short revision hash constant with bugzilla --- tests/ui/perfherder/graphs-view/graphs_view_test.jsx | 4 ++-- ui/perfherder/graphs/GraphTooltip.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ui/perfherder/graphs-view/graphs_view_test.jsx b/tests/ui/perfherder/graphs-view/graphs_view_test.jsx index 5da39913ad4..521600f83ac 100644 --- a/tests/ui/perfherder/graphs-view/graphs_view_test.jsx +++ b/tests/ui/perfherder/graphs-view/graphs_view_test.jsx @@ -206,7 +206,7 @@ test('Using select query param displays tooltip for correct datapoint', async () const graphTooltip = await waitFor(() => getByTestId('graphTooltip')); const expectedRevision = '3afb892abb74c6d281f3e66431408cbb2e16b8c4'; const revision = await waitFor(() => - getByText(expectedRevision.slice(0, 13)), + getByText(expectedRevision.slice(0, 12)), ); const repoName = await waitFor(() => getByTestId('repoName')); const platform = await waitFor(() => getByTestId('platform')); @@ -226,7 +226,7 @@ test('Using select query param displays tooltip for correct datapoint with repli const graphTooltip = await waitFor(() => getByTestId('graphTooltip')); const expectedRevision = '3afb892abb74c6d281f3e66431408cbb2e16b8c4'; const revision = await waitFor(() => - getByText(expectedRevision.slice(0, 13)), + getByText(expectedRevision.slice(0, 12)), ); const repoName = await waitFor(() => getByTestId('repoName')); const platform = await waitFor(() => getByTestId('platform')); diff --git a/ui/perfherder/graphs/GraphTooltip.jsx b/ui/perfherder/graphs/GraphTooltip.jsx index 3aa4d07472e..e394848fde4 100644 --- a/ui/perfherder/graphs/GraphTooltip.jsx +++ b/ui/perfherder/graphs/GraphTooltip.jsx @@ -212,7 +212,7 @@ const GraphTooltip = ({