Yuki Takei 1 tahun lalu
induk
melakukan
30d287c56d
1 mengubah file dengan 10 tambahan dan 3 penghapusan
  1. 10 3
      apps/app/playwright/20-basic-features/presentation.spec.ts

+ 10 - 3
apps/app/playwright/20-basic-features/presentation.spec.ts

@@ -11,11 +11,18 @@ test('Presentation', async({ page }) => {
   await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
     .toHaveText(/Welcome to GROWI/);
 
-  // forward the slide
-  await page.keyboard.press('ArrowRight');
+  // forward the slide with keyboard
   await page.keyboard.press('ArrowRight');
 
   // check the content of the h1
   await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
-    .toHaveText(/For administrator/);
+    .toHaveText(/What can you do with GROWI?/);
+
+  // forward the slide with button
+  await page.getByRole('application').getByLabel('next slide').click();
+
+  // check the content of the h2
+  await expect(page.getByRole('application').getByRole('heading', { level: 2 }))
+    .toHaveText(/1. Knowledge Management: Create pages to store information and knowledge/);
+
 });