Demonstrate Playwright
This commit is contained in:
@@ -1,2 +1,12 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { createServer } from 'vite';
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('http://localhost:5173');
|
||||
});
|
||||
|
||||
test('it has a counter', async ({ page }) => {
|
||||
const count = page.getByTestId('counter-count');
|
||||
const incrementButton = page.getByRole('button', { name: /increment/i });
|
||||
|
||||
await incrementButton.click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user