Playwright Testing
chongdashu/vibejam-starter-pack
Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.
Playwright browser automation, visual regression testing, accessibility testing, and E2E workflow validation for CIA platform
$ npx skills add Hack23/cia --skill playwright-ui-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Hack23/cia playwright-ui-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/playwright-ui-testing .claude/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .claude/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Hack23/cia --skill playwright-ui-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Hack23/cia playwright-ui-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/playwright-ui-testing .agents/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .agents/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Hack23/cia --skill playwright-ui-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Hack23/cia playwright-ui-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/playwright-ui-testing .cursor/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .cursor/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Hack23/cia.git --path .github/skills/playwright-ui-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Hack23/cia --skill playwright-ui-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Hack23/cia playwright-ui-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/playwright-ui-testing .gemini/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .gemini/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Hack23/cia playwright-ui-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Hack23/cia --skill playwright-ui-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/playwright-ui-testing .github/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .github/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Hack23/cia --skill playwright-ui-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Hack23/cia playwright-ui-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/playwright-ui-testing .opencode/skills/playwright-ui-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "playwright-ui-testing" agent skill from https://github.com/Hack23/cia/tree/master/.github/skills/playwright-ui-testing into .opencode/skills/playwright-ui-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "playwright-ui-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
playwright-ui-testingPlaywright browser automation, visual regression testing, accessibility testing, and E2E workflow validation for CIA platform
Playwright UI Testing is an agent skill from Hack23/cia. Playwright browser automation, visual regression testing, accessibility testing, and E2E workflow validation for CIA platform
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Browser testing, Accessibility and Visual regression testing. It works with Playwright. The repository describes itself as: Citizen Intelligence Agency. Open-source intelligence platform analyzing Swedish political activities using AI and data visualization. Tracks politicians, government… The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 6a9797b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
playwright.devgithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Playwright UI Testing loads about 2.5k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 247 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Hack23/cia at commit 6a9797b, republished under its Apache-2.0 licence (© Hack23). 247 words, ~2,507 tokens.
.claude/skills/playwright-ui-testing/SKILL.md (or your agent's skills folder).This skill provides guidance for implementing comprehensive UI testing using Playwright, including browser automation, visual regression testing, accessibility validation, and end-to-end workflow testing for the CIA platform.
// tests/politician-search.spec.js
const { test, expect } = require('@playwright/test');
test.describe('Politician Search', () => {
test.beforeEach(async ({ page }) => {
// Navigate to search page
await page.goto('https://localhost:28443/cia/');
await page.waitForLoadState('networkidle');
});
test('should search politicians by name', async ({ page }) => {
// Enter search term
await page.fill('[aria-label="Search politicians"]', 'Andersson');
await page.click('button:has-text("Search")');
// Wait for results
await page.waitForSelector('.politician-card');
// Verify results contain search term
const results = await page.locator('.politician-card').all();
expect(results.length).toBeGreaterThan(0);
for (const result of results) {
const name = await result.locator('.politician-name').textContent();
expect(name.toLowerCase()).toContain('andersson');
}
});
test('should filter by political party', async ({ page }) => {
// Select party filter
await page.selectOption('[aria-label="Filter by party"]', 'S');
// Wait for filtered results
await page.waitForSelector('.politician-card');
// Verify all results are from selected party
const partyBadges = await page.locator('.party-badge').allTextContents();
partyBadges.forEach(badge => {
expect(badge).toBe('S');
});
});
test('should display politician details', async ({ page }) => {
// Click on first politician
await page.click('.politician-card:first-child');
// Verify detail view loaded
await expect(page.locator('h1.politician-name')).toBeVisible();
await expect(page.locator('.risk-score')).toBeVisible();
await expect(page.locator('.voting-history')).toBeVisible();
// Verify risk score is numeric
const riskScore = await page.locator('.risk-score').textContent();
expect(parseFloat(riskScore)).toBeGreaterThanOrEqual(0);
expect(parseFloat(riskScore)).toBeLessThanOrEqual(100);
});
});// tests/accessibility.spec.js
const { test, expect } = require('@playwright/test');
const { injectAxe, checkA11y, getViolations } = require('axe-playwright');
test.describe('Accessibility Compliance', () => {
test('homepage should have no accessibility violations', async ({ page }) => {
await page.goto('https://localhost:28443/cia/');
await injectAxe(page);
// Check for WCAG 2.1 Level AA violations
await checkA11y(page, null, {
detailedReport: true,
detailedReportOptions: {
html: true
},
axeOptions: {
runOnly: {
type: 'tag',
values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']
}
}
});
});
test('politician detail page keyboard navigation', async ({ page }) => {
await page.goto('https://localhost:28443/cia/politician/123');
// Tab through interactive elements
await page.keyboard.press('Tab');
let focused = await page.evaluate(() => document.activeElement.tagName);
expect(['A', 'BUTTON', 'INPUT']).toContain(focused);
// Verify skip link
await page.keyboard.press('Tab');
const skipLink = await page.locator('a.skip-link');
await expect(skipLink).toBeFocused();
// Test escape key closes modals
await page.click('[aria-label="Show risk details"]');
await expect(page.locator('[role="dialog"]')).toBeVisible();
await page.keyboard.press('Escape');
await expect(page.locator('[role="dialog"]')).not.toBeVisible();
});
test('screen reader landmarks', async ({ page }) => {
await page.goto('https://localhost:28443/cia/');
// Verify ARIA landmarks
await expect(page.locator('[role="banner"]')).toBeVisible();
await expect(page.locator('[role="navigation"]')).toBeVisible();
await expect(page.locator('[role="main"]')).toBeVisible();
await expect(page.locator('[role="contentinfo"]')).toBeVisible();
});
});// tests/visual-regression.spec.js
const { test, expect } = require('@playwright/test');
test.describe('Visual Regression', () => {
test('homepage matches baseline', async ({ page }) => {
await page.goto('https://localhost:28443/cia/');
await page.waitForLoadState('networkidle');
// Take screenshot and compare to baseline
await expect(page).toHaveScreenshot('homepage.png', {
fullPage: true,
maxDiffPixels: 100
});
});
test('risk dashboard layout', async ({ page }) => {
await page.goto('https://localhost:28443/cia/dashboard/risk');
// Wait for charts to render
await page.waitForSelector('canvas.chart-canvas');
await page.waitForTimeout(1000); // Allow chart animations
await expect(page).toHaveScreenshot('risk-dashboard.png', {
maxDiffPixelRatio: 0.05
});
});
test('responsive design - mobile', async ({ page }) => {
// Set mobile viewport
await page.setViewportSize({ width: 375, height: 667 });
await page.goto('https://localhost:28443/cia/politician/list');
await expect(page).toHaveScreenshot('politician-list-mobile.png');
});
test('responsive design - tablet', async ({ page }) => {
await page.setViewportSize({ width: 768, height: 1024 });
await page.goto('https://localhost:28443/cia/politician/list');
await expect(page).toHaveScreenshot('politician-list-tablet.png');
});
});// playwright.config.js
const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [
['html'],
['junit', { outputFile: 'test-results/junit.xml' }]
],
use: {
baseURL: 'https://localhost:28443',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
ignoreHTTPSErrors: true // For self-signed certs in dev
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] }
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] }
},
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] }
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] }
}
],
webServer: {
command: 'cd citizen-intelligence-agency && ant start',
port: 28443,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
}
});# .github/workflows/playwright-tests.yml
name: Playwright Tests
on: [push, pull_request]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30A.8.29 - Testing in development and acceptance
A.8.31 - Separation of development, test and production
Control 16: Application Software Security
© Hack23, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/playwright-ui-testing of Hack23/cia.
Open the folder on GitHubat commit 6a9797b
Playwright UI Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Playwright UI Testing this skillHack23/cia | 239 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Playwright Testingchongdashu/vibejam-starter-pack | 149 | — | ~2.2k | Automated safety check: Pass | None | |
| Playwright Expertcin12211/orca-q | 223 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Agentic Browser Testingpetrkindlmann/qa-skills | 163 | — | ~4.5k | Automated safety check: Pass | MIT | |
| Web Testing with Playwright and Vitestwithkynam/vibecode-pro-max-kit | 1.1k | — | ~892 | Automated safety check: Pass | Apache-2.0 | |
| Playwright ExpertAratKruglik/claude-laravel | 155 | — | ~824 | Automated safety check: Pass | None |
chongdashu/vibejam-starter-pack
Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.
cin12211/orca-q
Playwright E2E testing expert for browser automation, cross-browser testing, visual regression, network interception, and CI integration.
petrkindlmann/qa-skills
Goal-driven E2E testing where a browser agent (Playwright MCP / computer-use) reads a natural-language goal and explores the app via the accessibility tree to assert outcomes — no pre-written script.
withkynam/vibecode-pro-max-kit
Covers web testing from unit to E2E, load, visual, accessibility and security checks, with Playwright, Vitest and k6 guides plus a Playwright setup script.
AratKruglik/claude-laravel
A skill your agent uses when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests.
aiskillstore/marketplace
End-to-end testing workflow with Playwright for browser automation, visual regression, cross-browser testing, and CI/CD integration.
Hack23/cia
WCAG 2.1 AA compliance, ARIA attributes, keyboard navigation, screen reader optimization for accessible political data platforms
Hack23/cia
Advanced chart types, D3.js/Vaadin Charts patterns, political data visualization, time series analysis
Hack23/cia
AI governance, EU AI Act compliance, OWASP LLM security, responsible AI practices for GitHub Copilot agents
Hack23/cia
External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs
Hack23/cia
AWS CloudWatch metrics, alarms, dashboards, log insights, and application monitoring for the CIA platform
Hack23/cia
AWS security best practices, VPC security, IAM, KMS, CloudTrail, GuardDuty for CIA platform deployment
Works with
Categories
Playwright browser automation, visual regression testing, accessibility testing, and E2E workflow validation for CIA platform. Playwright UI Testing is an agent skill from Hack23/cia.
Playwright UI Testing fits situations like: tasks that involve Browser testing; tasks that involve Accessibility; tasks that involve Visual regression testing.
Run `npx skills add Hack23/cia --skill playwright-ui-testing -a claude-code`. Or copy the skill folder (.github/skills/playwright-ui-testing in Hack23/cia) into .claude/skills/playwright-ui-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Hack23/cia --skill playwright-ui-testing -a codex`. Or copy the skill folder (.github/skills/playwright-ui-testing in Hack23/cia) into .agents/skills/playwright-ui-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hack23/cia --skill playwright-ui-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/playwright-ui-testing, .gemini/skills/playwright-ui-testing, .github/skills/playwright-ui-testing and .opencode/skills/playwright-ui-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Playwright UI Testing is instructions for the agent only. Our summary lists: Node.js.
SKILL.md names 2 domains. As links in the text: playwright.dev and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Playwright UI Testing is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Playwright UI Testing: Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars), Playwright Expert (cin12211/orca-q, 223 stars), Agentic Browser Testing (petrkindlmann/qa-skills, 163 stars) and Web Testing with Playwright and Vitest (withkynam/vibecode-pro-max-kit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Hack23 (a GitHub organization) maintains it in Hack23/cia, which has 239 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.
Source: Hack23/cia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.