diff --git a/.claude/skills/writing-playwright-tests/SKILL.md b/.claude/skills/writing-playwright-tests/SKILL.md index b1cb88d778..02212038f9 100644 --- a/.claude/skills/writing-playwright-tests/SKILL.md +++ b/.claude/skills/writing-playwright-tests/SKILL.md @@ -121,12 +121,14 @@ await expect(async () => { Avoid these common mistakes: 1. **Arbitrary waits** - Use retrying assertions instead + ```typescript // ❌ await page.waitForTimeout(500) // ✅ await expect(element).toBeVisible() ``` 2. **Implementation-tied selectors** - Use test IDs or semantic selectors + ```typescript // ❌ page.locator('div.container > button.btn-primary') // ✅ page.getByTestId('submit-button')