Use Playwright to run E2E tests

This commit is contained in:
Hugo Alliaume
2025-08-18 21:46:54 +02:00
parent 5d15a6c4ee
commit 7b490265d9

View File

@@ -1,7 +1,11 @@
import { describe, expect, it } from 'vitest';
import { expect, test } from '@playwright/test';
describe('Placeholder', () => {
it('pass', () => {
expect(true).toBe(true);
});
test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');
// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});