@braid-cloud/cli 0.1.18 → 0.1.20

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.
package/README.md CHANGED
@@ -194,6 +194,52 @@ braid manage --no-open
194
194
 
195
195
  This starts the local manager server and opens a browser unless `--no-open` is passed.
196
196
 
197
+ ## E2E Testing
198
+
199
+ The CLI has two Playwright E2E modes.
200
+
201
+ For the default local packaged-binary smoke suite:
202
+
203
+ ```bash
204
+ cd apps/cli
205
+ bun run test:e2e
206
+ ```
207
+
208
+ That run is local-first on purpose:
209
+
210
+ - it builds and packs the real published CLI binary
211
+ - it covers local user-facing failures and filesystem side effects
212
+ - it does not require the web app, WorkOS, or local Convex to be running
213
+
214
+ For the full browser-backed auth flow and real web handshake:
215
+
216
+ ```bash
217
+ cd apps/cli
218
+ CLI_E2E_AUTH=1 bun run test:e2e
219
+ ```
220
+
221
+ or the equivalent convenience script:
222
+
223
+ ```bash
224
+ cd apps/cli
225
+ bun run test:e2e:auth
226
+ ```
227
+
228
+ Full auth-backed E2E requires:
229
+
230
+ - local workspace setup to have written `apps/web/.env.local` and `apps/convex/.env.local`
231
+ - `E2E_TEST_USER_PASSWORD`
232
+ - `WORKOS_API_KEY` or `E2E_WORKOS_API_KEY`
233
+ - a supported local Node version for Convex (`18`, `20`, `22`, or `24`)
234
+
235
+ If Playwright auto-start hits local watch limits, start the web stack manually first and rerun the auth suite. The CLI Playwright config will reuse an existing server on `PLAYWRIGHT_PORT`.
236
+
237
+ ```bash
238
+ cd apps/convex && bun run dev:convex
239
+ cd apps/web && bun run dev
240
+ cd apps/cli && CLI_E2E_AUTH=1 bun run test:e2e
241
+ ```
242
+
197
243
  ### Scaffold a pack repo
198
244
 
199
245
  ```bash