Skip to content

Conversation

@subhashkhileri
Copy link
Member

@subhashkhileri subhashkhileri commented Nov 12, 2025

Add Playwright E2E Testing Framework

JIRA : https://issues.redhat.com/browse/RHIDP-9532

Changes

Infrastructure

  • Playwright test framework with automatic workspace discovery
  • Test configuration with 90s timeout, 3 parallel workers, 2 retries on CI
  • HTML, JSON, and list reporters with video/screenshot capture on failure
  • Yarn 3.8.7 with TypeScript 5.9.3

Utilities

  • e2e-test-utils/: Common directory for test setup, configuration, and helpers

Dev Tooling

  • ESLint config with TypeScript and Playwright plugins
  • Husky pre-commit hooks with lint-staged
  • Prettier integration

Example Test Structure

  • workspaces/github-issues/e2e-tests/ with placeholder spec and config files

File Structure

.
├── e2e-test-utils/                  # Common test setup and helpers
├── eslint.config.js                 # ESLint configuration
├── package.json                     # Dependencies and scripts
├── playwright.config.ts             # Playwright configuration
├── tsconfig.json                    # TypeScript configuration
└── workspaces/
    └── <plugin-name>/
        └── e2e-tests/               # Plugin-specific E2E tests
            ├── config/              # RHDH configuration
            │   ├── app-config-rhdh.yaml
            │   ├── dynamic-plugins.yaml
            │   └── rhdh-secrets.yaml
            ├── specs/               # Test specifications
            │   └── *.spec.ts
            └── .env.example         # Environment template

Usage

# Run all tests
yarn test:e2e

# Run specific plugin
yarn test:plugin <plugin-name>

# Other commands
yarn test:e2e:headed      # Run with visible browser
yarn test:e2e:ui          # Interactive UI mode
yarn test:e2e:report      # View HTML report

Configuration

Test projects are auto-generated from workspace directories containing e2e-tests/*.spec.ts. Each workspace gets its own Playwright project.

Out of Scope

  • Actual test implementation for plugins (separate stories)
  • CI/CD pipeline integration (separate story)
  • Test guidelines documentation (separate story)

Notes

  • GitHub Issues test is currently a placeholder
  • Test artifacts written to e2e-test-report/
  • Video recording enabled by default (1920x1080)

@github-actions github-actions bot added mandatory-workspace PR affects a workspace with required plugins for releases workspace-update PR modifies files in an existing workspace labels Nov 13, 2025
@github-actions github-actions bot removed workspace-update PR modifies files in an existing workspace mandatory-workspace PR affects a workspace with required plugins for releases labels Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants