Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-polinsky committed Dec 13, 2024
1 parent eff592b commit 453ea69
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions packages/electron/src/integration-test/helpers/TestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
9 changes: 4 additions & 5 deletions packages/electron/src/integration-test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion packages/electron/src/integration-test/test-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 453ea69

Please sign in to comment.