Skip to content

Instantly share code, notes, and snippets.

@ahmedhzm
ahmedhzm / notepad.md
Created May 14, 2025 08:15 — forked from yifanzz/notepad.md
Cursor AI - Playwright Notepad

Playwright E2E Testing Guidelines

Test Structure and Organization

  • Store all tests under the tests/ folder
  • Name test files based on the system component being tested (conceptual, not React component)
  • Group related tests within a single file using test.describe blocks
  • Use descriptive test names that explain the functionality being tested
  • use test.use({storageState: ...}) for setting auth state across all test in the suite

Locator Strategy