web-testing
Installation
SKILL.md
Web Testing with Playwright
This skill covers comprehensive web testing patterns using Playwright, including test structure, assertions, mocking, and best practices for reliable automated testing.
Test Structure
Basic Test Organization
import { test, expect } from '@playwright/test';
test.describe('User Authentication', () => {
test.beforeEach(async ({ page }) => {
await page.goto('https://example.com/login');
});
test('should login with valid credentials', async ({ page }) => {
const username = 'testuser@example.com';
const password = 'SecurePass123';