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 #156

Open
odockal opened this issue Jun 5, 2024 · 2 comments
Open

Implement E2E test that would verify logging in into SSO #156

odockal opened this issue Jun 5, 2024 · 2 comments
Assignees
Labels
area/e2e tests e2e tests related issues kind/enhancement ✨ New feature or request

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.

@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 Jun 5, 2024
@odockal odockal moved this from 📅 Planned to ⏱Postponed in Podman Desktop Planning 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 Aug 7, 2024
@odockal odockal moved this from 📅 Planned to ⏱Postponed in Podman Desktop Planning 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.

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
Projects
None yet
Development

No branches or pull requests

2 participants