Agent skill

Lit Webview Testing

by forcedotcom in forcedotcom/salesforcedx-vscode

Write or review browser component tests for Lit webviews and VSCode Elements.

BSD-3-ClauseAuto-check passedTesting & QA

Install Lit Webview Testing

skills CLI
$ npx skills add forcedotcom/salesforcedx-vscode --skill lit-webview-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/salesforcedx-vscode lit-webview-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/lit-webview-testing .claude/skills/lit-webview-testing && rm -rf skills-src

Use ~/.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/

Facts

Skill name
lit-webview-testing
GitHub stars
1k
Token cost
~653 tokens
SKILL.md length
251 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Write or review browser component tests for Lit webviews and VSCode Elements.

  • Playwright component harnesses
  • SKILL.md covers Harness boundary, What to test here, Interaction rules and Repository integration
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Fake Effect services

What it does

Lit Webview Testing is an agent skill from forcedotcom/salesforcedx-vscode. Write or review browser component tests for Lit webviews and VSCode Elements. Use for Playwright component harnesses, fake Effect services, accessibility locators, shadow DOM boundaries, lifecycle tests, and deciding what belongs in component tests versus VS Code E2E.

Its SKILL.md is about 650 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, End-to-end testing and Accessibility. It works with Visual Studio Code and Playwright. The repository describes itself as: Salesforce Extensions for VS Code. The licence is BSD-3-Clause.

When your agent uses it

  • Playwright component harnesses
  • Fake Effect services
  • Accessibility locators
  • Shadow DOM boundaries

Example prompts

  • “/lit-webview-testing”

What it can do on your machine

Read from SKILL.md and the folder at commit f7bb6fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lit Webview Testing loads about 653 tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 251 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~653

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from forcedotcom/salesforcedx-vscode at commit f7bb6fe, republished under its BSD-3-Clause licence (© forcedotcom). 251 words, ~653 tokens.

Download SKILL.mdSave it as .claude/skills/lit-webview-testing/SKILL.md (or your agent's skills folder).
name
lit-webview-testing
description
Write or review browser component tests for Lit webviews and VSCode Elements. Use for Playwright component harnesses, fake Effect services, accessibility locators, shadow DOM boundaries, lifecycle tests, and deciding what belongs in component tests versus VS Code E2E.
review
never

Lit webview browser testing

Real browser required for Lit updates, custom elements, popovers, shadow DOM, accessibility trees, and ElementInternals.

Harness boundary

  • Real Lit components, controller, and Effect application lifecycle; only extension backend replaced with a fake service layer.
  • No emulated acquireVsCodeApi() or local server.
  • Fake types derived from their factory/service source of truth—not handwritten copies.
  • Fakes support deterministic state emission, action recording, typed stream/dispatch failures, controllable latency, and resource counters.
  • Fake latency via Effect Clock; TestClock in Effect tests, not wall-clock waits.

What to test here

  • Component contracts and state/action flows: initial, loading, disabled, empty/no-match, invalid/recoverable, restored, external update, success, failure.
  • Action count/payload, including rapid or latent actions when cancellation/serialization matters.
  • Connect, disconnect, reconnect, listener/subscription cleanup, scoped finalization.
  • Keyboard, focus, theme, and form behavior where browser semantics matter.
  • Thin extension-host E2E: VS Code wiring, packaging, CSP/resources, desktop/web integration, critical journeys.

Interaction rules

  • Controls located by accessible role/name/label; documented public value/checked set before dispatching the public event.
  • Observable UI/application assertions—not private state or arbitrary render delays. Mount helper may await updateComplete to establish readiness.
  • Unavoidable shadow traversal isolated in 1 named helper, only for otherwise unobservable contracts such as ElementInternals form association.
  • Wrapper adapting an inaccessible nested node: user-visible accessibility assertion first; narrowly scoped implementation assertion only if needed.

Repository integration

  • Compile, fixture bundle, and browser execution in the package Wireit graph and relevant CI test:web path.
  • Package compile, lint, unit tests, and focused browser suite run from repository root.
  • General syntax/reliability: playwright-e2e. This skill owns the component-test boundary.

Examples: packages/soql-builder-ui/test/browser/, packages/soql-builder-ui/src/testing/fakeEffectService.ts.

© forcedotcom, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/lit-webview-testing of forcedotcom/salesforcedx-vscode.

Open the folder on GitHubat commit f7bb6fe

Compare with similar skills

Lit Webview 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.

Lit Webview Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lit Webview Testing this skillforcedotcom/salesforcedx-vscode1k—~653Automated safety check: PassBSD-3-Clause
Playwright Testingchongdashu/vibejam-starter-pack149—~2.1kAutomated safety check: PassNone
Playwright Testingchongdashu/vibejam-starter-pack149—~2.2kAutomated safety check: PassNone
Agentic Browser Testingpetrkindlmann/qa-skills163—~4.5kAutomated safety check: PassMIT
Web Testing with Playwright and Vitestwithkynam/vibecode-pro-max-kit1.1k—~892Automated safety check: PassApache-2.0
React Testingaffaan-m/ECC274k1 repos~3.3kAutomated safety check: PassMIT

Similar skills

  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.1k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Playwright Testing

    chongdashu/vibejam-starter-pack

    Plan, implement, and debug frontend tests: unit/integration/E2E/visual/a11y.

    149 GitHub stars~2.2k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Agentic Browser Testing

    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.

    163 GitHub stars~4.5k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Web Testing with Playwright and Vitest

    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.

    1.1k GitHub stars~892 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • React Testing

    affaan-m/ECC

    React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress…

    274k GitHub starsUsed in 1 repo~3.3k tokens
    Testing & QAAuto-check passed
  • Playwright Automation

    petrkindlmann/qa-skills

    Write production-grade Playwright tests in TypeScript: Page Object Model, fixtures, auto-waiting, user-facing locators, parallel execution, CI integration, sharding, and 2025-2026 feature awareness.

    163 GitHub stars~5.5k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed

More from forcedotcom/salesforcedx-vscode

All 37 skills in this repo
  • Command UI

    forcedotcom/salesforcedx-vscode

    Command palette, CodeLens, context menus, package.nls titles, and NotificationModeService.

    1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Services Extension Consumption

    forcedotcom/salesforcedx-vscode

    Consume the salesforcedx-vscode-services extension API. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Changelog

    forcedotcom/salesforcedx-vscode

    Polish the automated CHANGELOG on develop before the next stable build.

    1k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Core Extension API

    forcedotcom/salesforcedx-vscode

    Public API exported by salesforcedx-vscode-core activate(). An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~842 tokensUpdated today
    Auto-check passed
  • Drivable Vscode

    forcedotcom/salesforcedx-vscode

    Operate a real VS Code instance through drivable-vscode. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Effect Best Practices

    forcedotcom/salesforcedx-vscode

    Enforces Effect-TS patterns for services, errors, layers, atoms, and Effect.pipe composition.

    1k GitHub stars~6.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Lit Webview Testing

What does Lit Webview Testing do?

Write or review browser component tests for Lit webviews and VSCode Elements. Lit Webview Testing is an agent skill from forcedotcom/salesforcedx-vscode. Write or review browser component tests for Lit webviews and VSCode Elements.

When should I use Lit Webview Testing?

Lit Webview Testing fits situations like: playwright component harnesses; fake Effect services; accessibility locators; shadow DOM boundaries.

How do I install Lit Webview Testing in Claude Code?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill lit-webview-testing -a claude-code`. Or copy the skill folder (.claude/skills/lit-webview-testing in forcedotcom/salesforcedx-vscode) into .claude/skills/lit-webview-testing in your project. Claude Code loads it when a task matches its description.

How do I install Lit Webview Testing in Codex?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill lit-webview-testing -a codex`. Or copy the skill folder (.claude/skills/lit-webview-testing in forcedotcom/salesforcedx-vscode) into .agents/skills/lit-webview-testing in your project. Codex loads it when a task matches its description.

Can I use Lit Webview Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/salesforcedx-vscode --skill lit-webview-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/lit-webview-testing, .gemini/skills/lit-webview-testing, .github/skills/lit-webview-testing and .opencode/skills/lit-webview-testing in your project.

What does Lit Webview Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: Lit Webview Testing is instructions for the agent only.

Does Lit Webview Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Lit Webview Testing safe to install?

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.

What licence does Lit Webview Testing use?

Lit Webview Testing is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lit Webview Testing use?

About 653 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lit Webview Testing?

Skills that share tags, products or a category with Lit Webview Testing: Playwright Testing (chongdashu/vibejam-starter-pack, 149 stars), Playwright Testing (chongdashu/vibejam-starter-pack, 149 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.

Who maintains Lit Webview Testing?

forcedotcom (a GitHub organization) maintains it in forcedotcom/salesforcedx-vscode, which has 1,035 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 7, 2026.

Source: forcedotcom/salesforcedx-vscode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.