SupaGuardSupaGuard Docs
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

  1. Navigate to Checks in your dashboard
  2. Click Create Check
  3. Enter a name for your check
  4. 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

On this page