Skip to content

Task 4: E2E Utils Namespace Integration #47

@pipewrk

Description

@pipewrk

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.ts
  • packages/e2e-utils/src/createEventHelper.ts
  • packages/e2e-utils/src/createStoreHelper.ts
  • packages/e2e-utils/src/__tests__/*.test.ts

Dependencies

  • Task 3: Resource Definition Updates

Estimate

0.5 day

Metadata

Metadata

Assignees

No one assigned

    Labels

    e2e-testingE2E testing utilities and infrastructurenamespaceNamespace architecture and detectionpriority:P1High prioritysprint-2.5Sprint 2.5 tasks

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions