Goal
ใช้งาน Playwright สำหรับ end-to-end testing ของ web applications
Scope
ใช้สำหรับ E2E testing สำหรับ web applications, multi-browser testing, auto-waiting และ reliability, network interception, และ mobile testing
Execute
- ติดตั้ง Playwright
- ติดตั้ง browsers
- รัน tests
- รันใน UI mode
- อ่าน
learn/guide/installation.mdสำหรับการติดตั้งและ setup - อ่าน
learn/guide/quick-start.mdสำหรับเริ่มต้นใช้งาน - อ่าน
learn/guide/configuration.mdสำหรับการตั้งค่า - อ่าน
learn/guide/network-interception.mdสำหรับ network interception - อ่าน
learn/guide/api-testing.mdสำหรับ API testing - อ่าน
learn/guide/codegen.mdสำหรับ code generation - อ่าน
learn/guide/device-emulation.mdสำหรับ device emulation - อ่าน
learn/guide/trace-viewer.mdสำหรับ trace viewer - อ่าน
learn/guide/ui-mode.mdสำหรับ UI mode - อ่าน
learn/key-concepts/assertions.mdสำหรับ assertions - อ่าน
learn/key-concepts/locators.mdสำหรับ locators - อ่าน
learn/key-concepts/network-interception.mdสำหรับ network interception concepts - อ่าน
learn/key-concepts/browser-context.mdสำหรับ browser context - อ่าน
learn/key-concepts/actionability.mdสำหรับ actionability - อ่าน
learn/key-concepts/frames.mdสำหรับ frames - อ่าน
learn/principles/debugging.mdสำหรับ debugging - อ่าน
learn/principles/test-organization.mdสำหรับการจัดระเบียบ tests - อ่าน
learn/principles/best-practices.mdสำหรับ best practices - อ่าน
references/api.mdสำหรับ API documentation - อ่าน
references/cli.mdสำหรับ CLI commands - อ่าน
references/configuration.mdสำหรับ configuration options - อ่าน
references/website.mdสำหรับ official website - อ่าน
workflows/setup-playwright.mdสำหรับการ setup - อ่าน
workflows/run-tests.mdสำหรับการรัน tests
Rules
- ใช้
bunx create-playwrightสำหรับ installation - ใช้
bunx playwright install --with-depsสำหรับ browsers - ใช้
bunx playwright testสำหรับ run tests - ใช้
bunx playwright test --uiสำหรับ UI mode - ใช้ backticks สำหรับ commands
- ใช้ code blocks สำหรับ examples
- ใช้ ansi markdown diagrams สำหรับ flow และ architecture
Expected Outcome
- E2E tests ที่ reliable
- Multi-browser testing ที่ comprehensive
- Auto-waiting ที่ smart
- Network interception ที่ powerful
- Test organization ที่เป็นระบบ
- Debugging ที่มีประสิทธิภาพ