Shard E2E tests (#941)

This commit is contained in:
Will Chen
2025-08-14 13:48:27 -07:00
committed by GitHub
parent cc72990f0d
commit 8ef84285fc
7 changed files with 124 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
import { test } from "./helpers/test_helper";
import { test, testSkipIfWindows } from "./helpers/test_helper";
import { expect } from "@playwright/test";
import fs from "fs";
import path from "path";
@@ -58,7 +58,7 @@ test("problems auto-fix - disabled", async ({ po }) => {
await po.snapshotMessages();
});
test("problems - fix all", async ({ po }) => {
testSkipIfWindows("problems - fix all", async ({ po }) => {
await po.setUp({ enableAutoFixProblems: true });
await po.importApp(MINIMAL_APP);
const appPath = await po.getCurrentAppPath();
@@ -73,7 +73,7 @@ nonExistentFunction3();
export default App;
`,
);
await po.runPnpmInstall();
await po.ensurePnpmInstall();
await po.sendPrompt("tc=create-ts-errors");
await po.selectPreviewMode("problems");
@@ -83,7 +83,7 @@ export default App;
await po.snapshotMessages({ replaceDumpPath: true });
});
test("problems - manual edit (react/vite)", async ({ po }) => {
testSkipIfWindows("problems - manual edit (react/vite)", async ({ po }) => {
await po.setUp({ enableAutoFixProblems: true });
await po.sendPrompt("tc=1");
@@ -97,7 +97,7 @@ nonExistentFunction();
export default App;
`,
);
await po.runPnpmInstall();
await po.ensurePnpmInstall();
await po.clickTogglePreviewPanel();
await po.selectPreviewMode("problems");
@@ -110,7 +110,7 @@ export default App;
await po.snapshotProblemsPane();
});
test("problems - manual edit (next.js)", async ({ po }) => {
testSkipIfWindows("problems - manual edit (next.js)", async ({ po }) => {
await po.setUp({ enableAutoFixProblems: true });
await po.goToHubAndSelectTemplate("Next.js Template");
await po.sendPrompt("tc=1");
@@ -125,7 +125,7 @@ test("problems - manual edit (next.js)", async ({ po }) => {
export default App;
`,
);
await po.runPnpmInstall();
await po.ensurePnpmInstall();
await po.clickTogglePreviewPanel();
await po.selectPreviewMode("problems");