Files
moreminimore-vibe/e2e-tests/template-create-nextjs.spec.ts
Will Chen 678cd3277e Problems: auto-fix & problem panel (#541)
Test cases:
- [x] create-ts-errors
  - [x] with auto-fix
  - [x] without auto-fix 
- [x] create-unfixable-ts-errors
- [x] manually edit file & click recheck
- [x] fix all
- [x] delete and rename case

THINGS
- [x] error handling for checkProblems isn't working as expected
- [x] make sure it works for both default templates (add tests) 
- [x] fix bad animation
- [x] change file context (prompt/files)

IF everything passes in Windows AND defensive try catch... then enable
by default
- [x] enable auto-fix by default
2025-07-02 15:43:26 -07:00

18 lines
521 B
TypeScript

import { test } from "./helpers/test_helper";
import { expect } from "@playwright/test";
test("create next.js app", async ({ po }) => {
await po.setUp();
await po.selectHubTemplate("Next.js Template");
// Create an app
await po.sendPrompt("tc=edit-made-with-dyad");
await po.approveProposal();
await po.clickRestart();
// This can be pretty slow because it's waiting for the app to build.
await expect(po.getPreviewIframeElement()).toBeVisible({ timeout: 100_000 });
await po.snapshotPreview();
});