Playwright E2E testing
Overview
End-to-end (E2E) tests exercise complete user workflows. You can connect your existing Playwright E2E tests to Artillery Cloud for reporting, debugging, and collaboration.
Continuous integration (CI) automates the integration and testing of code changes. A pull request (PR) proposes code changes for review. Web Vitals measure the user experience of web pages.
Artillery Cloud provides these features:
- A shared dashboard for your team’s Playwright test reports
- Live test results to follow large test suites while they run in CI
- Automatic Web Vitals tracking for all pages in your tests
- GitHub Actions integration with PR comments
- AI-assisted analysis and debugging
- Shareable report URLs
- Notes and comments on test results

Getting Started
A reporter collects and outputs test results. The Artillery Playwright reporter is a standard Playwright Test Runner reporter that sends results to Artillery Cloud.
Install Artillery Playwright Reporter
In your Playwright project directory, install the reporter as a development dependency:
npm install -D @artilleryio/playwright-reporterEnable the reporter
In your project’s playwright.config.ts file, add the reporter to the reporter array:
export default defineConfig({
reporter: [
['@artilleryio/playwright-reporter', { name: 'My Test Suite' }],
],
// ... rest of your config
});Set your Artillery Cloud API key
An API key lets the reporter send results to your account. Sign up for Artillery Cloud. Then create an API key .
In the terminal where you will run Playwright, set ARTILLERY_CLOUD_API_KEY. Replace YOUR_API_KEY with your key:
export ARTILLERY_CLOUD_API_KEY=YOUR_API_KEYRun your Playwright tests
In the same terminal and project directory, run your Playwright tests as usual. For example:
npx playwright testWhen the test starts, the reporter prints the report URL to the console. The URL looks like this:
https://app.artillery.io/orgidkdowwbwpjiyxn/playwright/pwzxhq_abcdefabcdefghi_7atfThe reporter updates the report in real time while the test runs.
Web Vitals

You can configure automatic Web Vitals reporting for every page in your tests. The metrics include LCP, CLS, FCP, TTFB, and INP.
In your test file, use withPerformanceTracking() to extend Playwright’s built-in test function before defining tests:
// Rename the "test" import from @playwright/test to "base":
import { test as base } from '@playwright/test';
// Import the withPerformanceTracking function:
import { withPerformanceTracking } from '@artilleryio/playwright-reporter';
// Extend the base test function with performance tracking. This
// needs to be at the top before using test()
const test = withPerformanceTracking(base);
// The rest of your tests remain the same, e.g.:
test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');
await expect(page).toHaveTitle(/Playwright/);
});GitHub Actions
In GitHub Actions, the reporter can post test results as PR comments. To enable comments, set GITHUB_TOKEN in the workflow job that runs Playwright tests:
jobs:
test:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Run Playwright tests
env:
ARTILLERY_CLOUD_API_KEY: "${{ secrets.ARTILLERY_CLOUD_API_KEY }}" # API key to send results to Artillery Cloud
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Enable PR comments
run: npx playwright testIf the test suite runs multiple times, the reporter updates the comment with a link and results for each run.

Share URLs
To share a report outside your Artillery Cloud workspace, open the report page. Select Share → Share test publicly to create a share URL.
Share reports only with trusted people. Playwright reports can contain sensitive information, and anyone with the link can view the report.
Google and other search engines do not crawl share URLs by default. If someone posts a link on the public internet, search engines can crawl it.
You can disable a share URL at any time through the Share dialog.
Current limitations
Sharded mode splits a test suite into separate groups. The reporter does not fully support this mode yet. Each run produces multiple partial reports in Artillery Cloud, one per shard.