diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index f3354919c2..26b175a138 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -26,7 +26,7 @@ async function getMainWindow(app: ElectronApplication, timeout = 50_000): Promis const onWindow = (page: Page) => { console.log(`Page opened: ${page.url()}`); - if (page.url().startsWith("https://localhost")) { + if (page.url().endsWith("OpenLens.html")) { cleanup(); console.log(stdoutBuf); resolve(page);