Skip to Content

Usage

This example shows how to use Level CI App Playwright to run static page analysis on a webpage:

it('Google basic example', async ({ page }) => { // Visit a target page await page.goto( 'we need to deploy some demo page (Google demo: https://www.google.com/)', ) // Run static analysis await levelAnalyze(page) })

By default, Level CI App Playwright scans the page for AA violations and asserts on the number of issues, but you can easily customize it’s behavior.

Last updated on