presentation.spec.ts 713 B

1234567891011121314151617181920
  1. import { test, expect } from '@playwright/test';
  2. test('Presentation', async({ page }) => {
  3. await page.goto('/');
  4. // show presentation modal
  5. await page.getByTestId('grw-contextual-sub-nav').getByTestId('open-page-item-control-btn').click();
  6. await page.getByTestId('open-presentation-modal-btn').click();
  7. // check the content of the h1
  8. await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
  9. .toHaveText(/Welcome to GROWI/);
  10. // forward the slide with keyboard
  11. await page.keyboard.press('ArrowRight');
  12. // check the content of the h1
  13. await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
  14. .toHaveText(/What can you do with GROWI?/);
  15. });