Skip to content

Set up Playwright E2E and automate the Argo CD SSO auth#1138

Open
trdoyle81 wants to merge 2 commits intoredhat-developer:masterfrom
trdoyle81:GITOPS-9589-Automate-Login-Via-Openshift
Open

Set up Playwright E2E and automate the Argo CD SSO auth#1138
trdoyle81 wants to merge 2 commits intoredhat-developer:masterfrom
trdoyle81:GITOPS-9589-Automate-Login-Via-Openshift

Conversation

@trdoyle81
Copy link
Copy Markdown
Member

@trdoyle81 trdoyle81 commented Apr 28, 2026

/kind enhancement

What does this PR do / why we need it:

This PR adds the Playwright E2E testing foundation for the GitOps Operator.

  • Playwright Configuration: Sets up the core playwright.config.ts for ui testing.
  • Automated UI Login: Implements the LoginPage object and a global setup to handle the Argo login via OpenShift.
  • Session Management: storageState to capture and persist auth cookies so subsequent tests can skip the login process.
  • Utility: Includes a run-ui-tests.sh wrapper script to identify cluster UI routes via variables or CLI fallback.

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #GITOPS-9589

Test acceptance criteria:

  • Unit Test
  • E2E Test

How to test changes / Special notes to the reviewer:

  1. Prerequisites: Review test/ui-e2e/README.md for environment setup.
  2. Navigate: cd test/ui-e2e
  3. Execution: Run ./run-ui-tests.sh tests/sso-login.spec.ts (or ./run-ui-tests.sh .auth/setup.ts).
  4. Verification:
    • Observe the browser performing the login flow through the Argo CD and OpenShift UI screens based on the provided IDP.
    • Verify that storageState.json is successfully generated in the .auth/ directory.

…ication

Signed-off-by: Triona Doyle <bot@example.com>
@openshift-ci openshift-ci Bot added the kind/enhancement New feature or request label Apr 28, 2026
@openshift-ci openshift-ci Bot requested review from Naveena-058 and jannfis April 28, 2026 15:02
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign svghadi for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@trdoyle81
Copy link
Copy Markdown
Member Author

/retest

Signed-off-by: Triona Doyle <bot@example.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 29, 2026

@trdoyle81: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v4.14-e2e 69485ba link true /test v4.14-e2e
ci/prow/v4.14-kuttl-sequential 69485ba link false /test v4.14-kuttl-sequential
ci/prow/v4.14-kuttl-parallel 69485ba link false /test v4.14-kuttl-parallel
ci/prow/v4.19-kuttl-sequential 69485ba link true /test v4.19-kuttl-sequential

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant