diff --git a/run.js b/run.js index 8690a0a7..c3fef3c4 100644 --- a/run.js +++ b/run.js @@ -759,6 +759,7 @@ const isTrue = (object, specs) => { // Adds a wait error result to an act. const waitError = (page, act, error, what) => { console.log(`ERROR waiting for ${what} (${error.message})`); + act.result ??= {}; act.result.found = false; act.result.url = page.url(); act.result.error = `ERROR waiting for ${what}`;