Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement E2E test that would verify logging in into SSO using Red Hat Account #156

Open
odockal opened this issue Jun 5, 2024 · 3 comments
Assignees
Labels
area/e2e tests e2e tests related issues kind/enhancement ✨ New feature or request qe/test-case Label denoting test case automation

Comments

@odockal
Copy link
Contributor

odockal commented Jun 5, 2024

Basic E2E tests handles verification of the extension itself, now it is time to verify the main functionality.

We needs to find out a way to open browser from playwright e2e test once the Authenticate request is sent from SSO/PD. Then go back to PD and check the successful authentication.

This case should be trying to tackle authentication using Red Hat Account.

@odockal odockal added the kind/enhancement ✨ New feature or request label Jun 5, 2024
@odockal odockal self-assigned this Jun 5, 2024
@odockal odockal moved this to 📅 Planned in Podman Desktop Planning OLD Jun 5, 2024
@odockal odockal moved this from 📅 Planned to ⏱Postponed in Podman Desktop Planning OLD Jul 9, 2024
@odockal
Copy link
Contributor Author

odockal commented Aug 6, 2024

We might need to use goax framework, prepare a e2e test interaction with a browser bundled into a binary and run it during playwright e2e test.

This would require some PoC to be done. Especially running the e2e test (using) from within playwright e2e test run.

Not talking about passing also some credentials into the test while on CI.

@odockal odockal moved this from ⏱Postponed to 📅 Planned in Podman Desktop Planning OLD Aug 7, 2024
@odockal odockal moved this from 📅 Planned to ⏱Postponed in Podman Desktop Planning OLD Aug 26, 2024
@dgolovin dgolovin added the area/e2e tests e2e tests related issues label Sep 11, 2024
@dgolovin
Copy link
Collaborator

@odockal You can run try to use SeleniumDriver. The trick is to run SeleniumDriver test in default web browser before e2e test and then wait for new tab to be opened, presumably by Auth extension, and then put user name, password and click login button using selenium driver api. There is even Selenium manager that would let you to install specific driver and browser.

Just an idea.

@odockal
Copy link
Contributor Author

odockal commented Mar 18, 2025

@dgolovin yes, playwright should enable something similar, except I am trying to achieve that using just one test run, but using multiple browser contexts (https://playwright.dev/docs/api/class-browsercontext).

@odockal odockal changed the title Implement E2E test that would verify logging in into SSO Implement E2E test that would verify logging in into SSO using Red Hat Account Mar 18, 2025
@odockal odockal added the qe/test-case Label denoting test case automation label Mar 18, 2025
@odockal odockal moved this to ⏳On Hold in Podman Desktop Planning Apr 10, 2025
@odockal odockal moved this from ⏳On Hold to 🚥 In Review in Podman Desktop Planning Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/e2e tests e2e tests related issues kind/enhancement ✨ New feature or request qe/test-case Label denoting test case automation
Projects
None yet
Development

No branches or pull requests

2 participants