Playwright
Getting Started with Playwright
Learn how to create and run Playwright tests in SupaGuard.
What is Playwright?
Playwright is a powerful end-to-end testing framework that enables reliable testing across all modern browsers. SupaGuard uses Playwright to power its automated testing capabilities.
Creating Your First Test
- Navigate to Checks in your dashboard
- Click Create Check
- Enter a name for your check
- Write your Playwright test in the code editor
Example Test
import { test, expect } from '@playwright/test';
test.describe('My First Test', () => {
test('should load the homepage', async ({ page }) => {
await page.goto('https://example.com');
await expect(page).toHaveTitle(/Example/);
});
});Next Steps
- Learn Tips & Best Practices
- Read the Complete Guide