Skip to content

Task 2: Fixture Extension & Public API #40

@pipewrk

Description

@pipewrk

Description

Extend WordPress's test fixture with the factory and export public API.

Acceptance Criteria

  • test.extend() adds kernel fixture
  • All WordPress fixtures exposed: requestUtils, admin, editor, pageUtils, page
  • @geekist/wp-kernel-e2e-utils exports test, expect
  • TypeScript types exported: KernelFixtures, KernelUtils
  • Package.json configured correctly
  • Integration test with WordPress fixtures

Implementation Notes

export const test = base.extend({
  kernel: async ({ page, requestUtils, admin, editor, pageUtils }, use) => {
    await use(createKernelUtils({ page, requestUtils, admin, editor, pageUtils }));
  }
});

Dependencies

  • Task 1: Core Factory Implementation

Estimate

0.5 day

Metadata

Metadata

Assignees

No one assigned

    Labels

    e2e-testingE2E testing utilities and infrastructurepriority:P0Critical prioritysprint-2Sprint 2 tasks

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions