From 17ca2bfe8aed7eee03b6a3507fea28920cd0f0ef Mon Sep 17 00:00:00 2001 From: evelyn masso Date: Mon, 12 Aug 2024 16:23:24 -0700 Subject: [PATCH 1/2] Update main.js --- src/host/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/host/main.js b/src/host/main.js index e541640..9fcf397 100644 --- a/src/host/main.js +++ b/src/host/main.js @@ -101,7 +101,7 @@ export async function hostMain(options) { }; const perTestUrl = callbackUrl.replace( ':testRowNumber', - body.presentationNumber ?? body.testCsvRow + body ? body.presentationNumber ?? body.testCsvRow : '' ); lastCallbackRequest = lastCallbackRequest.then(() => options @@ -114,6 +114,8 @@ export async function hostMain(options) { ); }; + postCallbackWhenEnabled({ status: 'PLAN_RUNNING' }); + for (const test of plan.tests) { const file = plan.files.find(({ name }) => name === test.filepath); const testSource = JSON.parse(textDecoder.decode(file.bufferData)); @@ -165,6 +167,7 @@ export async function hostMain(options) { stopDrivers(); await emitPlanResults(plan); + postCallbackWhenEnabled({ status: 'PLAN_COMPLETED' }); } log(HostMessage.STOP_SERVER); From b501dbb7116d25210c40a2c6c9f751fb114b6d5e Mon Sep 17 00:00:00 2001 From: evelyn masso Date: Mon, 12 Aug 2024 16:27:10 -0700 Subject: [PATCH 2/2] Update main.js --- src/host/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host/main.js b/src/host/main.js index 9fcf397..2eda10e 100644 --- a/src/host/main.js +++ b/src/host/main.js @@ -101,7 +101,7 @@ export async function hostMain(options) { }; const perTestUrl = callbackUrl.replace( ':testRowNumber', - body ? body.presentationNumber ?? body.testCsvRow : '' + body?.presentationNumber ?? body?.testCsvRow ?? '' ); lastCallbackRequest = lastCallbackRequest.then(() => options