You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -347,6 +347,56 @@ pnpm test:browser:ui # Run with Playwright UI
347
347
348
348
Make sure to read about [Playwright best practices](https://playwright.dev/docs/best-practices) and don't rely on classes/IDs but try to follow user-replicable behaviour (like selecting an element based on text content instead).
349
349
350
+
### Testing connector features
351
+
352
+
Features that require authentication through the local connector (org management, package collaborators, operations queue) are tested using a mock connector server. The testing infrastructure includes:
353
+
354
+
**For Vitest component tests** (`test/nuxt/`):
355
+
356
+
- Mock the `useConnector` composable with reactive state
357
+
- Use `document.body` queries for components using Teleport
358
+
- See `test/nuxt/components/ConnectorModal.spec.ts` for an example
0 commit comments