From 0882fc245cf010bbab681b6500277e788a2eba04 Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 23 Aug 2021 15:27:38 -0600 Subject: [PATCH] Add try catch around updating ready page status --- tests/e2e/config/jest.setup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/config/jest.setup.js b/tests/e2e/config/jest.setup.js index f219ddbb54d..c3d63a5bcb7 100644 --- a/tests/e2e/config/jest.setup.js +++ b/tests/e2e/config/jest.setup.js @@ -46,7 +46,11 @@ beforeAll(async () => { } // Update the ready page to prevent concurrent test runs - await updateReadyPageStatus('draft'); + try { + await updateReadyPageStatus('draft'); + } catch ( error ) { + // Prevent an error here causing tests to fail. + } await trashExistingPosts(); await withRestApi.deleteAllProducts();