瀏覽代碼

Merge pull request #11234 from growilabs/improve/183944-183945-verify-initial-pages-after-installation

imprv: verify initial pages are created with content after installation
Yuki Takei 6 天之前
父節點
當前提交
1c0c0aa696
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      apps/app/playwright/10-installer/install.spec.ts

+ 15 - 0
apps/app/playwright/10-installer/install.spec.ts

@@ -52,4 +52,19 @@ test('Installer', async ({ page }) => {
 
   await page.waitForURL('/', { timeout: 20000 });
   await expect(page).toHaveTitle(/\/ - GROWI/);
+
+  // Verify / page has content from welcome.md
+  await expect(
+    page.getByRole('heading', { level: 1, name: /Welcome to GROWI/ }),
+  ).toBeVisible();
+
+  // Verify /Sandbox page was created with content from sandbox.md
+  await page.goto('/Sandbox');
+  await expect(page).toHaveTitle(/Sandbox/);
+  await expect(
+    page.getByRole('heading', {
+      level: 1,
+      name: /Welcome to the GROWI Sandbox/,
+    }),
+  ).toBeVisible();
 });