8 lines
308 B
TypeScript
8 lines
308 B
TypeScript
import test, { expect } from '@playwright/test';
|
|
|
|
test('should navigate page and click button', async ({ page }) => {
|
|
await page.goto('http://localhost:3000/');
|
|
await page.getByRole('button', { name: 'Click me' }).click();
|
|
await expect(page.getByRole('button', { name: 'Clicked' })).toBeVisible();
|
|
});
|