diff --git a/src/__tests__/App.test.tsx b/src/__tests__/App.test.tsx
index a418178d9..e0e464156 100644
--- a/src/__tests__/App.test.tsx
+++ b/src/__tests__/App.test.tsx
@@ -148,6 +148,35 @@ describe('App', () => {
expect(document.body).toMatchSnapshot();
});
+ it('Should render the correct error message to the console when new_revision is required but missing', async () => {
+ // Silence console.error for a better console output.
+ jest.spyOn(console, 'error').mockImplementation(() => {});
+ fetchMock.get(
+ 'begin:https://treeherder.mozilla.org/api/perfcompare/results/',
+ {
+ status: 400,
+ body: JSON.stringify({
+ new_revision: ['This field may not be blank.'],
+ }),
+ },
+ );
+
+ await router.navigate(
+ '/compare-results/?baseRev=spam&baseRepo=mozilla-central&framework=2',
+ );
+ render(
+ Error: + The comparison cannot be performed because the \`new_revision\` field is missing. This typically happens when the \`mach try perf\` push is still being processed by Lando. Please wait a few moments for the push to complete and then refresh the page. +
++ More information about this error has been written to the Web Console. +
+