8000 Cordova integration tests by eudamniac · Pull Request #216 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]

Skip to content

Cordova integration tests - #216

Closed
eudamniac wants to merge 7 commits into
keycloak:mainfrom
eudamniac:cordova-integration-tests
Closed

eudamniac wants to merge 7 commits into
keycloak:mainfrom
eudamniac:cordova-integration-tests

Conversation

@eudamniac
@eudamniac eudamniac commented Nov 16, 2025 •
Copy link
Copy Markdown
Contributor

Attempt to add cordova integration tests - following #27 (comment).

Mocks InAppBrowser plugin by providing a handle for registering event listeners. The urls for the InAppBrowser will be opened in a separate window, leaving the initial page active as it would be with a cordova app.

Next steps could be:

  • Add more tests for cordova adapter
  • Add mock and tests for native cordova adapter
  • Refactor

@jonkoops
jonkoops force-pushed the cordova-integration-tests branch from db748fb to da1630f Compare November 18, 2025 16:18
@jonkoops
Copy link
Copy Markdown
Contributor

Did a quick rebase to include #218 so we can see if the tests will pass.

@eudamniac
Copy link
Copy Markdown
Contributor Author

Did a quick rebase to include #218 so we can see if the tests will pass.

Thanks! Looks like Cordova adapter › allow loaderror on InAppBrowser before finishing login is failing as expected, since there is no fix for #208 included at the moment. I could skip/remove this test for now.

Additionally I see the Firefox - Cross origin tests failing and will have a look at them, I think I missed those those locally some tweaks to the playwright setup.

@eudamniac
Copy link
Copy Markdown
Contributor Author

Fix the tests in 7fbc7fb

@eudamniac
Copy link
Copy Markdown
Contributor Author

@jonkoops just wanted to quickly follow up if I should continue in this direction?

@jonkoops
Copy link
Copy Markdown
Contributor

Sorry for the late reply, I got bogged down in some other stuff. I think this is going in the right direction, I will try to get a more detailed review in when I can. Currently, I need to fix #209 and #208 and do a release before landing new features. If you have any idea what might be causing those, help is appreciated.

@eudamniac
eudamniac force-pushed the cordova-integration-tests branch from 7fbc7fb to 2f34f6b Compare January 4, 2026 15:56
@eudamniac
eudamniac force-pushed the cordova-integration-tests branch from 9e5eb34 to f977ef5 Compare February 16, 2026 07:40
@eudamniac
eudamniac commented Feb 16, 2026 •
Copy link
Copy Markdown
Contributor Author

Sorry for the late reply, I got bogged down in some other stuff. I think this is going in the right direction, I will try to get a more detailed review in when I can. Currently, I need to fix #209 and #208 and do a release before landing new features. If you have any idea what might be causing those, help is appreciated.

No worries, I had my own fair share of other priorities, so apologies for my late response as well. I rebased my changes on latest master and adjusted the tests to latest changes of explicitly navigating in tests, so that they pass locally
image

My plan is to polish the PR this week and put it up for a proper review. Also will have a look at the issues you linked - not too confident that I can be of help there though.

@jonkoops
Copy link
Copy Markdown
Contributor

I am going ahead and close this PR, as we have decided to drop Cordova support entirely (see #272), so it makes no sense to introduce new testing infrastructure for it. I actually managed to get a functional integration test with Playwright and some vibe-coding (jonkoops@10712bb), but it became clear that may of the dependencies we use for Cordova have become abandoned, requiring extensive manual patching.

@jonkoops jonkoops closed this Feb 18, 2026
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.

2 participants

0