Skip to content

feat: add playwright testing to frontend for end to end tests#1001

Merged
lucaseduoli merged 46 commits into
mainfrom
feat/playwright-testing
Feb 25, 2026
Merged

feat: add playwright testing to frontend for end to end tests#1001
lucaseduoli merged 46 commits into
mainfrom
feat/playwright-testing

Conversation

@lucaseduoli

Copy link
Copy Markdown
Collaborator

This pull request introduces end-to-end (E2E) testing infrastructure for the frontend using Playwright, including environment setup, configuration, and a sample test. It adds Playwright dependencies, a test environment configuration, scripts for automated infrastructure setup, and updates to the Makefile for safer factory resets. The changes are grouped below by theme.

E2E Testing Infrastructure

  • Added Playwright as a dev dependency (@playwright/test, playwright, playwright-core) and configured Playwright for E2E tests in frontend/playwright.config.ts, including web server startup and environment variable management. [1] [2] [3] [4] [5]
  • Created a sample Playwright test (frontend/tests/core/onboarding.spec.ts) to verify onboarding content is visible.
  • Added a global setup script (frontend/tests/globalSetup.ts) and shell scripts (scripts/setup-e2e.sh, scripts/start-backend-e2e.sh) to automate environment preparation and backend startup for tests. [1] [2] [3]

Environment and Configuration

  • Introduced .env.test for test-specific environment variables, and updated .gitignore to allow committing this file and ignore Playwright reports. [1] [2]
  • Increased webpack chunk load timeout in frontend/next.config.ts to prevent timeouts during development with large bundles.

Makefile and Miscellaneous

  • Improved factory-reset in Makefile to allow forced resets without user confirmation and removed redundant deletion of the opensearch-data directory. [1] [2]
  • Added a test id to the onboarding content div for easier test targeting (frontend/app/onboarding/_components/onboarding-content.tsx).

@lucaseduoli lucaseduoli self-assigned this Feb 19, 2026
Comment thread frontend/tests/globalSetup.ts Fixed

@mfortman11 mfortman11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got the tests working!

Would be great to add a quick ReadMe to the tests directory letting others know what they need running and what they don't

@mpawlow mpawlow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucaseduoli

Code Review 1

  • See PR comments: (a) to (k)

Comment thread frontend/.gitignore Outdated
Comment thread frontend/.env.test Outdated
Comment thread frontend/.env.test Outdated
Comment thread frontend/.env.test.example
Comment thread frontend/tests/globalSetup.ts Outdated
Comment thread scripts/setup-e2e.sh
Comment thread scripts/setup-e2e.sh
Comment thread frontend/playwright.config.ts Outdated
Comment thread frontend/next.config.ts Outdated
Comment thread frontend/playwright.config.ts Outdated
@lucaseduoli lucaseduoli requested a review from mpawlow February 24, 2026 20:30
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@github-actions github-actions Bot added enhancement 🔵 New feature or request and removed enhancement 🔵 New feature or request labels Feb 25, 2026
@lucaseduoli lucaseduoli merged commit 9fe641a into main Feb 25, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) ci ⬛ CI/CD, build, and infrastructure issues enhancement 🔵 New feature or request frontend 🟨 Issues related to the UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants