Komut#cc-toolkit
0
E2e
Kritik kullanıcı akışları için Playwright'ı kullanarak uçtan uca testler oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Kritik kullanıcı akışları için Playwright'ı kullanarak uçtan uca testler oluşturun.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/e2e/raw -o .claude/commands/e2e.mdHedef dosya: .claude/commands/e2e.md
Generate end-to-end tests using Playwright for critical user flows.
import { test, expect } from "@playwright/test";
test.describe("Feature Name", () => {
test.beforeEach(async ({ page }) => {
// Navigate to starting point
// Set up required auth state if needed
});
test("should complete the happy path", async ({ page }) => {
// Steps matching real user behavior
});
test("should handle error state gracefully", async ({ page }) => {
// Verify error messages, recovery options
});
});
getByRole, getByText, getByLabel.data-testid attributes only when semantic selectors are insufficient.page.waitForResponse.test.step to document multi-step flows for readable reports.beforeEach to set up test data (faster than UI).afterEach or use isolated test databases.npx playwright test --headed to watch execution.page.waitForTimeout.use: { screenshot: "only-on-failure" }.