E2E test for fixing errors (#351)
This commit is contained in:
25
e2e-tests/fixtures/create-error.md
Normal file
25
e2e-tests/fixtures/create-error.md
Normal file
@@ -0,0 +1,25 @@
|
||||
I will intentionally add an error
|
||||
|
||||
<dyad-write path="src/pages/Index.tsx" description="intentionally add an error">
|
||||
// Update this page (the content is just a fallback if you fail to update the page)
|
||||
|
||||
import { MadeWithDyad } from "@/components/made-with-dyad";
|
||||
|
||||
const Index = () => {
|
||||
throw new Error("Line 6 error");
|
||||
return (
|
||||
|
||||
<div className="min-h-screen flex items-center justify-center bg-gray-100">
|
||||
<div className="text-center">
|
||||
<h1 className="text-4xl font-bold mb-4">Welcome to Your Blank App</h1>
|
||||
<p className="text-xl text-gray-600">
|
||||
Start building your amazing project here!
|
||||
</p>
|
||||
</div>
|
||||
<MadeWithDyad />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Index;
|
||||
</dyad-write>
|
||||
Reference in New Issue
Block a user