diff --git a/test/ui/src/content/tutorial/tests/preview/meta.md b/test/ui/src/content/tutorial/tests/preview/meta.md
index c43f388d..89205e01 100644
--- a/test/ui/src/content/tutorial/tests/preview/meta.md
+++ b/test/ui/src/content/tutorial/tests/preview/meta.md
@@ -1,5 +1,5 @@
---
type: chapter
title: Preview
-mainCommand: 'pnpm start'
+mainCommand: 'node ./index.mjs'
---
diff --git a/test/ui/src/templates/default/about.html b/test/ui/src/templates/default/about.html
deleted file mode 100644
index b7d6b834..00000000
--- a/test/ui/src/templates/default/about.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- Default template
-
-
-
- Default template
- About
-
-
-
diff --git a/test/ui/src/templates/default/index.html b/test/ui/src/templates/default/index.html
deleted file mode 100644
index c6c8c3fe..00000000
--- a/test/ui/src/templates/default/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- Default template
-
-
-
- Default template
- Index
-
-
-
diff --git a/test/ui/src/templates/default/index.mjs b/test/ui/src/templates/default/index.mjs
index 36969fe0..148d1ae2 100644
--- a/test/ui/src/templates/default/index.mjs
+++ b/test/ui/src/templates/default/index.mjs
@@ -1,17 +1,16 @@
import http from 'node:http';
-import { readFileSync } from 'node:fs';
const server = http.createServer((req, res) => {
if (req.url === '/' || req.url === '/index.html') {
res.writeHead(200, { 'Content-Type': 'text/html' });
- res.end(readFileSync('./index.html', 'utf8'));
+ res.end('Index page');
return;
}
if (req.url === '/about.html') {
res.writeHead(200, { 'Content-Type': 'text/html' });
- res.end(readFileSync('./about.html'));
+ res.end('About page');
return;
}
diff --git a/test/ui/src/templates/default/package.json b/test/ui/src/templates/default/package.json
deleted file mode 100644
index accec009..00000000
--- a/test/ui/src/templates/default/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "default-template",
- "private": true,
- "version": "0.0.0",
- "type": "module",
- "scripts": {
- "start": "node ./index.mjs"
- }
-}
diff --git a/test/ui/test/preview.test.ts b/test/ui/test/preview.test.ts
index ec772d32..7ebe4b84 100644
--- a/test/ui/test/preview.test.ts
+++ b/test/ui/test/preview.test.ts
@@ -10,8 +10,7 @@ test('user can see single preview tab', async ({ page }) => {
await expect(page.getByText('Node Server')).toBeVisible();
const preview = page.frameLocator('[title="Node Server"]');
- await expect(preview.getByText('Default template')).toBeVisible();
- await expect(preview.getByText('Index')).toBeVisible();
+ await expect(preview.getByText('Index page')).toBeVisible();
});
test('user can see multiple preview tabs', async ({ page }) => {
@@ -22,6 +21,6 @@ test('user can see multiple preview tabs', async ({ page }) => {
await expect(page.getByText('First Server')).toBeVisible();
await expect(page.getByText('Second Server')).toBeVisible();
- await expect(page.frameLocator('[title="First Server"]').getByText('Index')).toBeVisible({ timeout: 10_000 });
- await expect(page.frameLocator('[title="Second Server"]').getByText('About')).toBeVisible({ timeout: 10_000 });
+ await expect(page.frameLocator('[title="First Server"]').getByText('Index page')).toBeVisible({ timeout: 10_000 });
+ await expect(page.frameLocator('[title="Second Server"]').getByText('About page')).toBeVisible({ timeout: 10_000 });
});