Stably’s no-code AI tests run in the cloud only. Local execution is supported for the Playwright SDK workflow described here.
Prerequisites
- Node.js 18+ installed on your machine
- A test directory for your e2e tests
Setup
1
Install Playwright and Stably SDK
Navigate to your e2e tests directory:
2
Setup API Key
Get a Team API Key from your Stably Settings and set it as an environment variable:
You can also programmatically set the key using the 
setApiKey function:3
Update Your Test Imports
Replace all imports from 
@playwright/test with @stablyai/playwright-test:Run Tests
Use the same Playwright commands you’re already familiar with:- Run tests in headed mode: npx playwright test --headed
- Run a specific test file: npx playwright test tests/example.spec.ts
- Run tests in UI mode: npx playwright test --ui
- Run a single project/browser: npx playwright test --project=chromium
- Filter tests by name: npx playwright test --grep "login"
Next Steps
- Learn more about Stably Playwright SDK
- Set up GitHub Actions integration
- Configure GitLab CI integration