-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
e2e-testingE2E testing utilities and infrastructureE2E testing utilities and infrastructurenamespaceNamespace architecture and detectionNamespace architecture and detectionpriority:P1High priorityHigh prioritysprint-2.5Sprint 2.5 tasksSprint 2.5 tasks
Milestone
Description
Description
Update E2E testing utilities to respect and test namespace-aware resource definitions and event patterns.
Acceptance Criteria
- Resource Helper Updates: Support namespace parameter in resource definitions
- Event Helper Updates: Filter events by namespace patterns
- Store Helper Updates: Handle namespace-aware store keys
- Test Context: Provide namespace context to test utilities
- Documentation Updates: Show namespace-aware testing examples
- Integration Tests: Test with various namespace scenarios
Implementation Notes
// E2E resource helpers should handle namespaces
const helper = kernel.resource({
name: 'job',
namespace: 'my-plugin', // Should respect this
routes: { /* ... */ }
});
// Event helpers should filter by namespace
const events = await kernel.events({ pattern: /^my-plugin\./ });
// Store helpers should use correct keys
const store = kernel.store('my-plugin/job');Files to Update
packages/e2e-utils/src/createResourceHelper.tspackages/e2e-utils/src/createEventHelper.tspackages/e2e-utils/src/createStoreHelper.tspackages/e2e-utils/src/__tests__/*.test.ts
Dependencies
- Task 3: Resource Definition Updates
Estimate
0.5 day
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
e2e-testingE2E testing utilities and infrastructureE2E testing utilities and infrastructurenamespaceNamespace architecture and detectionNamespace architecture and detectionpriority:P1High priorityHigh prioritysprint-2.5Sprint 2.5 tasksSprint 2.5 tasks