Yuki Takei 10 месяцев назад
Родитель
Сommit
b1dc272ffa
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      apps/app/playwright/20-basic-features/presentation.spec.ts

+ 4 - 1
apps/app/playwright/20-basic-features/presentation.spec.ts

@@ -19,7 +19,10 @@ test('Presentation', async({ page }) => {
     .toHaveText(/What can you do with GROWI?/);
     .toHaveText(/What can you do with GROWI?/);
 
 
   // forward the slide with button
   // forward the slide with button
-  await page.getByRole('application').getByLabel('next slide').click();
+  const nextSlideButton = await page.getByRole('application').getByLabel('next slide');
+  await expect(nextSlideButton).toBeVisible();
+  await expect(nextSlideButton).toBeEnabled();
+  await nextSlideButton.click();
 
 
   // check the content of the h2
   // check the content of the h2
   await expect(page.getByRole('application').getByRole('heading', { level: 2 }))
   await expect(page.getByRole('application').getByRole('heading', { level: 2 }))