We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a073ff commit 4c7b8f4Copy full SHA for 4c7b8f4
examples/e2e/pages-router/e2e/api.test.ts
@@ -0,0 +1,8 @@
1
+import { expect, test } from "@playwright/test";
2
+
3
+test("should not fail on an api route", async ({ page }) => {
4
+ const result = await page.goto("/api/hello");
5
+ expect(result?.status()).toBe(200);
6
+ const body = await result?.json();
7
+ expect(body).toEqual({ hello: "world" });
8
+});
0 commit comments