redhat-developer / podman-desktop-redhat-account-ext

Podman Desktop Red Hat Account Extension
Apache License 2.0
3 stars 9 forks source link

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

Open odockal opened 4 months ago

odockal commented 4 months ago

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 commented 1 month ago

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.

dgolovin commented 3 weeks ago

@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.