diff --git a/e2e-tests/helpers/test_helper.ts b/e2e-tests/helpers/test_helper.ts index 7a00f3e..9065d9c 100644 --- a/e2e-tests/helpers/test_helper.ts +++ b/e2e-tests/helpers/test_helper.ts @@ -436,7 +436,9 @@ export class PageObject { } async snapshotProblemsPane() { - await expect(this.page.getByTestId("problems-pane")).toMatchAriaSnapshot(); + await expect(this.page.getByTestId("problems-pane")).toMatchAriaSnapshot({ + timeout: Timeout.MEDIUM, + }); } async clickRebuild() { diff --git a/e2e-tests/supabase_migrations.spec.ts b/e2e-tests/supabase_migrations.spec.ts index f4c5056..a257c2c 100644 --- a/e2e-tests/supabase_migrations.spec.ts +++ b/e2e-tests/supabase_migrations.spec.ts @@ -3,6 +3,7 @@ import { test } from "./helpers/test_helper"; import fs from "fs-extra"; import path from "path"; import { execSync } from "child_process"; +import os from "node:os"; test("supabase migrations", async ({ po }) => { // Turning on native Git to catch this edge case: @@ -46,12 +47,17 @@ test("supabase migrations", async ({ po }) => { expect(await fs.readFile(path.join(migrationsDir, files[0]), "utf8")).toEqual( "CREATE TABLE users (id serial primary key);", ); - // Make sure git is clean. - const gitStatus = execSync("git status --porcelain", { - cwd: appPath, - encoding: "utf8", - }).trim(); - expect(gitStatus).toBe(""); + + // Skip this check on Windows because git isn't configured and + // the mac test will catch this regression. + if (os.platform() !== "win32") { + // Make sure git is clean. + const gitStatus = execSync("git status --porcelain", { + cwd: appPath, + encoding: "utf8", + }).trim(); + expect(gitStatus).toBe(""); + } // Send a prompt that triggers a migration await po.sendPrompt("tc=execute-sql-no-description");