Skip to Content

Running Level CI Static Page Analysis in Playwright

This example shows how to run a static accessibility analysis on a webpage using Level CI Playwright:

// playwright/e2e/google-accessibility.spec.js const { test } = require('@playwright/test') const { levelAnalyze } = require('@level-ci/a11y-playwright') test('Google basic example', async ({ page }) => { // Visit a target page await page.goto('https://www.google.com') // Run static accessibility analysis await levelAnalyze(page) })

You can customize its behavior by passing configuration options to levelAnalyze().

Last updated on