diff --git a/packages/electron/src/integration-test/helpers/TestHelper.ts b/packages/electron/src/integration-test/helpers/TestHelper.ts index 872205cd..d7b2db66 100644 --- a/packages/electron/src/integration-test/helpers/TestHelper.ts +++ b/packages/electron/src/integration-test/helpers/TestHelper.ts @@ -38,10 +38,7 @@ export class TestHelper { } public async signIn(page: Page, url: string) { - console.log("Attempting to goto url: ", url); await page.goto(url); - const title = await page.title() - console.log(`Sign in page title: ${title}`); await page.waitForSelector("#identifierInput", { timeout: 5000 }); await page.getByLabel("Email address").fill(this._signInOptions.email); await page.getByLabel("Email address").press("Enter"); diff --git a/packages/electron/src/integration-test/integration.test.ts b/packages/electron/src/integration-test/integration.test.ts index 0c1ec691..38590db7 100644 --- a/packages/electron/src/integration-test/integration.test.ts +++ b/packages/electron/src/integration-test/integration.test.ts @@ -80,10 +80,10 @@ test.afterEach(async () => { }); test("browser.newPage smoke test", async ({ browser }) => { - const page = await browser.newPage() - await page.goto("https://playwright.dev") - await expect(page.getByText("Playwright enables reliable end-to-end testing for modern web apps.")).toBeVisible() -}) + const page = await browser.newPage(); + await page.goto("https://playwright.dev"); + await expect(page.getByText("Playwright enables reliable end-to-end testing for modern web apps.")).toBeVisible(); +}); test("buttons exist", async () => { await electronPage.waitForLoadState("domcontentloaded"); @@ -100,7 +100,6 @@ test("sign in successful", async ({ browser }) => { await testHelper.checkStatus(electronPage, false); await testHelper.clickSignIn(electronPage); const url = await getUrl(electronApp); - console.log(url); await testHelper.signIn(page, url); await page.waitForLoadState("networkidle"); await testHelper.checkStatus(electronPage, true); diff --git a/packages/electron/src/integration-test/test-app/index.ts b/packages/electron/src/integration-test/test-app/index.ts index 7053cfd8..e3c34787 100644 --- a/packages/electron/src/integration-test/test-app/index.ts +++ b/packages/electron/src/integration-test/test-app/index.ts @@ -23,7 +23,6 @@ void app.whenReady().then(async () => { if (!process.env.IMJS_TEST_ELECTRON_SCOPES) throw new Error("Please provide scopes in env"); - console.log(`scopes ${process.env.IMJS_TEST_ELECTRON_SCOPES}`) createWindow(); new ElectronMainAuthorization({ diff --git a/packages/electron/src/integration-test/test-app/renderer.ts b/packages/electron/src/integration-test/test-app/renderer.ts index fb554ad5..bfe3a211 100644 --- a/packages/electron/src/integration-test/test-app/renderer.ts +++ b/packages/electron/src/integration-test/test-app/renderer.ts @@ -4,7 +4,7 @@ if (!process.env.IMJS_TEST_ELECTRON_CLIENT_ID) throw new Error("Please provide a clientId in env"); const auth = new ElectronRendererAuthorization({ - clientId: process.env.IMJS_TEST_ELECTRON_CLIENT_ID + clientId: process.env.IMJS_TEST_ELECTRON_CLIENT_ID, }); const signOutButton = document.getElementById("signOut");