Add try catch around updating ready page status

This commit is contained in:
Greg 2021-08-23 15:27:38 -06:00
parent e6ef0de71f
commit 0882fc245c
1 changed files with 5 additions and 1 deletions

View File

@ -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();