openspec-playwright 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,18 @@ await browser_navigate(`${BASE_URL}/<route>`)
119
119
  // Option C: use browser_run_code to set auth cookies directly
120
120
  ```
121
121
 
122
+ **If credentials are not yet available**:
123
+ 1. **Skip protected routes** — mark them as "⚠️ auth needed — explore after auth.setup.ts"
124
+ 2. **Explore the login page itself** (it's a guest route) — extract form selectors for later auth.setup.ts
125
+ 3. Document login page structure: input names, button text, form action, error patterns
126
+
127
+ **Auth setup flow**:
128
+ 1. Run exploration → discover login page selectors (Step 4)
129
+ 2. Customize auth.setup.ts with discovered selectors
130
+ 3. Set E2E_USERNAME/E2E_PASSWORD
131
+ 4. Run `npx playwright test --project=setup`
132
+ 5. Re-run exploration for protected routes
133
+
122
134
  Wait for page stability after navigation:
123
135
  - Prefer waiting for a specific element: `browser_wait_for` with text or selector
124
136
  - Avoid `networkidle` / `load` — they are too slow or unreliable
@@ -195,7 +207,7 @@ BASE_URL: <from env or seed.spec.ts>
195
207
  |-----------|-----------|
196
208
  | Route 404 | Mark as "⚠️ route not found — verify URL in specs" |
197
209
  | Network error | Mark as "⚠️ unreachable — check if server is running" |
198
- | Auth required, no storageState | Skip protected routes → note which routes need auth |
210
+ | Auth required, no credentials | Skip routes + explore login page document selectors set up auth first | See 4.2 "If credentials are not yet available" |
199
211
  | SPA routing (URL changes but page doesn't reload) | Explore via navigation clicks from known routes, not direct URLs |
200
212
  | Page loads but no interactive elements | Try waiting longer for SPA hydration |
201
213
  | Dynamic content (user-specific) | Record structure, not content — use `toContainText`, not `toHaveText` |
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openspec-playwright",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "OpenSpec + Playwright E2E verification setup tool for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
package/release-notes.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## What's Changed
2
2
 
3
- - docs: update README and Chinese README with app-knowledge and new pipeline
3
+ - fix(SKILL): clarify auth flow when credentials not yet available
4
4
 
5
- **Full Changelog**: https://github.com/wxhou/openspec-playwright/releases/tag/v0.1.49
5
+ **Full Changelog**: https://github.com/wxhou/openspec-playwright/releases/tag/v0.1.50
Binary file