Selaa lähdekoodia

tests stricter

ryosei-f 6 päivää sitten
vanhempi
sitoutus
1fd56293c1
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      apps/app/playwright/10-installer/install.spec.ts

+ 5 - 2
apps/app/playwright/10-installer/install.spec.ts

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