Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/CodySwannGT/lisa --skill playwright-ci-debugging명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
any non-trivial request —…
This skill should be used for any non-trivial request — features, bugs, stories, epics, spikes, or multi-step tasks. It accepts a ticket URL (Jira, Linear, GitHub), a file path containing a spec, or a plain-text prompt. It assembles an agent team, breaks the work into structured tasks, and manages the full lifecycle from research through implementation, code review, deploy, and empirical verification.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | playwright-ci-debugging |
| description | Debug Playwright E2E tests that… |
The authoring-side rules (selectors, testID forwarding, naming) are in the playwright-selectors skill. This skill is for the other half of the job: when a test fails in CI and you need to find out why.
When a Playwright E2E test fails in CI, follow this exact order.
Start the project's dev server, then run the failing test in isolation:
# Start the dev server (discover the script from package.json — commonly `start`, `dev`, `start:dev`, or `web`)
<pkg-manager> run <dev-script>
# In another terminal, run the exact failing test with no retries
BASE_URL=http://localhost:8081/ npx playwright test <file> --grep "<test name>" --retries=0
--retries=0 is critical — retries mask flake. --grep isolates the single failing test so you're not waiting on a full suite.
Do NOT read source code, CI logs, or theorize until you can reproduce locally. Most CI failures reproduce locally if you run the same test against the same served build. Guessing from logs is slow and usually wrong.
When a test involves an API call, set up a Playwright response listener and inspect the status code and response body. A 400/500 response tells you everything.
page.on("response", async (response) => {
if (response.url().includes("/api/")) {
console.log(response.status(), response.url(), await response.text());
}
});
UI failures are often downstream of a failed API call. The network log is cheaper evidence than the DOM.
CI runs against a different environment than your laptop. Before changing anything:
.github/workflows/*.yml)..env.* file it loads — this varies by target branch (e.g., dev → .env.development, staging → .env.staging).expo export --platform web) then serves it on localhost:8081 via serve dist. It is NOT hitting your dev server. Timing, bundling, and env vars all differ.After pushing, confirm the CI run's headSha matches your latest commit:
gh run list --branch "$(git branch --show-current)" --limit 1 --json headSha,status,conclusion
git rev-parse HEAD
Bots (review-response, auto-update, dependabot) can push commits between your push and the CI run, overwriting your changes. A green check on a stale SHA tells you nothing about your fix.
waitForTimeout() as the sole wait before a click is a silent failure waiting to happen — animations and rendering take variable time, especially on slower CI runners. Poll for the expected state, then act.
// BAD — fixed wait; click silently fails if element not yet visible
await clickVisibleText(page, "Translate");
await page.waitForTimeout(1000);
await clickVisibleText(page, "Spanish");
// GOOD — poll for visibility, then click
await clickVisibleText(page, "Translate");
await expect
.poll(() => hasVisibleText(page, "Spanish"), { timeout: TIMEOUT.expect })
.toBe(true);
await clickVisibleText(page, "Spanish");
Any helper that can return false on a missed click (e.g., clickVisibleText) should either have its return value asserted or be preceded by a visibility poll. A click that silently returns false is a hidden test bug — the test proceeds as if the click happened and fails downstream with a confusing error.
// BAD — return value ignored; test continues on failed click
await clickVisibleText(page, "Submit");
// GOOD — assert the click happened
expect(await clickVisibleText(page, "Submit")).toBe(true);
// GOOD — precede with visibility poll
await expect
.poll(() => hasVisibleText(page, "Submit"), { timeout: TIMEOUT.expect })
.toBe(true);
await clickVisibleText(page, "Submit");
Any test that calls an external service (AWS Bedrock, third-party APIs, rate-limited providers) must handle the failure case. Tests should verify UI behavior, not external service uptime. If an external call might fail, the test must accept both outcomes or skip the dependent assertion.
// BAD — assumes translation always succeeds
await expect
.poll(() => hasVisibleText(page, "Show Original"), { timeout: TIMEOUT.expect })
.toBe(true);
// GOOD — handle both success and failure
await expect
.poll(
async () =>
(await hasVisibleText(page, "Show Original")) ||
(await hasVisibleText(page, "Translate")),
{ timeout: TIMEOUT.expect }
)
.toBe(true);
const translated = await hasVisibleText(page, "Show Original");
if (!translated) return; // External API failed; skip downstream assertions
The alternative — mocking the external call — is a valid approach when the goal is to test the UI's handling of a successful response. Pick one strategy per test and commit to it.
Do not assert specific text (e.g., "No lists detected") when the test user's data state varies across environments. If a zero-row state could have different empty-state messages depending on the user's data, either check for multiple possible states or skip the assertion entirely.
See the playwright-selectors skill's "Data independence" section for authoring patterns that avoid this class of bug in the first place.
If you've worked through steps 1–4 and still cannot explain the failure:
.fixme the test to unblock the PR.--admin or force-merge to bypass the check.