presentation.spec.ts 489 B

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