Skip to content

Add E2E tests for @asgardeo/react SDK#362

Merged
DonOmalVindula merged 1 commit intoasgardeo:mainfrom
DonOmalVindula:feat/react-e2e
Feb 14, 2026
Merged

Add E2E tests for @asgardeo/react SDK#362
DonOmalVindula merged 1 commit intoasgardeo:mainfrom
DonOmalVindula:feat/react-e2e

Conversation

@DonOmalVindula
Copy link
Contributor

@DonOmalVindula DonOmalVindula commented Feb 14, 2026

Purpose

This pull request introduces a comprehensive end-to-end (E2E) testing framework for the @asgardeo/react SDK using Playwright. The changes include new E2E test infrastructure, Docker-based setup for identity providers (WSO2 IS and Thunder), test helpers, and documentation updates. The main goal is to enable automated, cross-IDP E2E testing for both redirect-based and embedded sign-in flows, improving test coverage and reliability.

The most important changes are:

E2E Test Infrastructure and Automation

  • Added a new GitHub Actions workflow (.github/workflows/e2e-tests.yml) to automate E2E tests for the React SDK, running tests against both WSO2 IS and Thunder IDPs, with support for matrix builds and artifact uploads.
  • Introduced a Docker Compose setup (e2e/docker-compose.yml) to provision and orchestrate WSO2 IS and Thunder containers for local and CI E2E testing.

E2E Test Suite Implementation

  • Created a Playwright-based E2E test suite, including base fixtures (e2e/fixtures/base.fixture.ts), IDP-agnostic authentication helpers (e2e/helpers/auth-helpers.ts), and IDP-specific helpers/selectors for WSO2 IS (e2e/helpers/is/auth-helpers.ts, e2e/helpers/is/selectors.ts). [1] [2] [3] [4]

Documentation

  • Added a detailed E2E test guide (e2e/README.md) describing prerequisites, test commands, project structure, sign-in modes, and test coverage.
  • Updated the main README.md to reference the new E2E tests and improve formatting for clarity. [1] [2]

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

@DonOmalVindula DonOmalVindula force-pushed the feat/react-e2e branch 3 times, most recently from 5f63aa3 to c20b9f8 Compare February 14, 2026 08:09
@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@DonOmalVindula DonOmalVindula merged commit 30a8574 into asgardeo:main Feb 14, 2026
7 of 8 checks passed
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.

3 participants