Skip to content

Commit

Permalink
3305 - Make the length of the short revision hash constant across Tre…
Browse files Browse the repository at this point in the history
…eherder (mozilla#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
  • Loading branch information
florinbilt committed Mar 1, 2024
1 parent c644257 commit 2054b20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ui/perfherder/graphs-view/graphs_view_test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion ui/perfherder/graphs/GraphTooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const GraphTooltip = ({
<div>
<span>
<a href={pushUrl} target="_blank" rel="noopener noreferrer">
{dataPointDetails.revision.slice(0, 13)}
{dataPointDetails.revision.slice(0, 12)}
</a>{' '}
{(dataPointDetails.jobId || prevRevision) && '('}
{dataPointDetails.jobId && (
Expand Down

0 comments on commit 2054b20

Please sign in to comment.