diff --git a/test/helpers.js b/test/helpers.js index 4b92684bc..c15ca1fe9 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -501,7 +501,7 @@ export async function getLatestURLWithToken() { const response = await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/token`); const respBody = await response.json(); latestURLWithToken = respBody.latestURLWithToken; - if (latestURLWithToken === undefined) { + if (latestURLWithToken === undefined || latestURLWithToken === "") { if (Date.now() - start > 10000) { throw new Error("Timeout waiting for latestURLWithToken"); }