react-e2e-mocking

Official

Mock React E2E tests with Keycloak & Apollo.

Authormindcockpit-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Fully mocked Playwright E2E tests for React apps that use Keycloak authentication and Apollo GraphQL, enabling deterministic, backend-free test runs without changing production code.

Core Features & Use Cases

  • Two-layer Keycloak auth bypass with layer 1 XHR/WebSocket patching and layer 2 route interception
  • Operation-name routing to JSON fixtures for GraphQL
  • Deterministic fixtures for GraphQL responses
  • Debugging and troubleshooting patterns for flaky tests
  • Use Case: Run end-to-end tests against a production-like PoC without backend dependencies.

Quick Start

Run the Playwright E2E suite against a React app with two-layer Keycloak bypass enabled.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: react-e2e-mocking
Download link: https://github.com/mindcockpit-ai/cognitive-core/archive/main.zip#react-e2e-mocking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.