Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions examples/api/app/page.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions examples/playground/app/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Home() {
return (
<main>
<p>Test misc Next features</p>
</main>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ export function validateMd5(data: Buffer, expectedHash: string) {
);
}

test("the application's noop index page is visible and it allows navigating to the hello-world api route", async ({
page,
}) => {
test("index", async ({ page }) => {
await page.goto("/");
await expect(page.getByText("This application doesn't have")).toBeVisible();
await page.getByRole("link", { name: "/api/hello" }).click();
await expect(page.getByText("Hello World!")).toBeVisible();
await expect(page.getByText("Test misc Next features")).toBeVisible();
});

test("the hello-world api GET route works as intended", async ({ page }) => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "api",
"name": "playground",
"version": "0.1.0",
"private": true,
"type": "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 26 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.