Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

write-extension-e2e

БесплатноБез исполняемых скриптовНе проверен

Conventions for writing and changing the extension's Playwright E2E tests in apps/extension/tests. Use when adding a spec, a page-object action, a selector or…

leather-ioот leather-io★ 29 звёзд на GitHub

Об этом скилле

Extension E2E tests

Specs live in apps/extension/tests/specs/<feature>/<feature>.spec.ts and use the test fixture from apps/extension/tests/fixtures/fixtures.ts, which launches a fresh headless Chromium with the extension from apps/extension/dist for every test. Each test gets its own profile, so chrome.storage is never shared between tests or workers.

Run locally

pnpm --filter @leather.io/extension build:test     # rebuild dist after any src change
cd apps/extension
EXTENSION_INTEGRATION_TEST_MNEMONIC="$(gh variable get EXTENSION_INTEGRATION_TEST_MNEMONIC -R leather-io/mono)" \
  pnpm playwright test tests/specs/send/send-stx.spec.ts --workers=3

The mnemonic is a readable repository variable. Without it the whole run fails at load time. A running pnpm dev rewrites dist, so stop it before testing. CI runs 10 shards with three workers each; fullyParallel is on, so tests in one file may run on different workers.

The rules ESLint enforces

eslint.config.js applies eslint-plugin-playwright recommended rules to the tests tree plus these bans. Fix the cause, never add a suppression.

Banned Use instead
page.waitForTimeout(), delay() from utils A locator wait, expect(locator).toBeVisible(), expect.poll() or expect(async () => …).toPass()
waitUntil: 'networkidle' A plain goto; wait for the element you need next
allInnerTexts() toHaveText, toContainText, toHaveCount on the locator
page.locator('text="X"'), raw CSS selectors getByTestId, getByText('X', { exact: true }), getByRole
waitForSelector() locator.waitFor() or a web-first assertion
{ force: true } Fix the locator or the UI; forced clicks hide real problems
innerText() + toEqual expect(locator).toHaveText() so the assertion retries
In specs/**: SendCryptoAssetSelectors.SendForm, SharedComponentsSelectors.CardAvailableBalance, ActivitySelectors.TransactionActionFeeInput, ActivitySelectors.TransactionActionBalance, SettingsSelectors.UnlockWalletBtn, OnboardingSelectors.SetPasswordBtn The page-object action named in the lint message

Every test must end with an assertion and sit inside a top-level test.describe. To assert that so

Полный SKILL.md на GitHub

Установить write-extension-e2e в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл write-extension-e2e?

Conventions for writing and changing the extension's Playwright E2E tests in apps/extension/tests. Use when adding a spec, a page-object action, a selector or a mock, or when an E2E test is flaky. Covers readiness-owning actions, the sleep ban, selectors, mocks, popups and how to run one spec locally.

Как установить скилл write-extension-e2e?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл write-extension-e2e запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить write-extension-e2e с