Migrate from Cypress to Playwright

This commit is contained in:
Przemek Więch
2026-05-06 11:51:30 +02:00
parent 664ca69fb3
commit d427300ddf
28 changed files with 740 additions and 1403 deletions

18
tests/intro.spec.ts Normal file
View File

@@ -0,0 +1,18 @@
import {expect, test} from '@playwright/test';
import {blockTracking} from './helpers';
test.describe('Intro page', () => {
test.beforeEach(async ({page, context}) => {
await blockTracking(context);
await page.goto('/');
});
test('displays intro text', async ({page}) => {
await expect(page.getByText('Examples')).toBeVisible();
});
test('displays menu', async ({page}) => {
await expect(page.getByText('Open file', {exact: true})).toBeVisible();
await expect(page.getByText('Load from URL', {exact: true})).toBeVisible();
});
});