Skip to content

Conversation

@vojtech-cerveny
Copy link
Contributor

Same as #1643 but for in-browser-merged branch.

  • basic flow how we can use playwright for basic tests of UI

  • Adding new way how to handle incoming urls (call it from test)
    tidepooluploader://localhost/keycloak-redirect#state....

        await window.evaluate((url) => {
          window.electron.handleIncomingUrl(url);
        }, href);

How to test:
Add these variables (qa2 personal account) into .env

E2E_USER_EMAIL=
E2E_USER_PASSWORD=
  • yarn test:e2e --headed for visible Chrome
  • yarn test:e2e

It is draft, please let me know what do you think about my changes.

@vojtech-cerveny
Copy link
Contributor Author

Currently I am trying to setup circleCI and I am not sure where can be a problem - it seems, that Electron doesn't have access to internet. But I tried to curl to google before running tests and it returns status code 200.

Check video from test.
It stucks on this screen:
image

1f81c21831e5194fb3eadd406437e929.webm

CircleCI build

Base automatically changed from in-browser-merged to master July 29, 2024 13:28
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