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

Detox Test Configuration for Keycloak and In-App Browser #4193

Open
sanduluca opened this issue Sep 18, 2023 · 1 comment
Open

Detox Test Configuration for Keycloak and In-App Browser #4193

sanduluca opened this issue Sep 18, 2023 · 1 comment

Comments

@sanduluca
Copy link

Description

I am using Detox for testing, and I've encountered a challenge when trying to configure Detox to work with Keycloak for authentication in an in-app browser.

Background:

I have a login screen in my app with a login button.
When the login button is pressed, it triggers the opening of an in-app browser that displays a Keycloak login form.
Users are required to enter their credentials in this in-app browser to log in to the app.

Objective:

I need assistance and guidance on how to configure Detox tests to interact with Keycloak within the in-app browser for testing purposes. This includes handling the interaction with the Keycloak login form, submitting credentials, and verifying successful login.

Steps to Reproduce:

Navigate to the login screen.
Tap the login button.
Observe that an in-app browser is opened with the Keycloak login form.
Expected Behavior:

Detox should be configured to interact with the in-app browser and successfully complete the Keycloak login process.

Actual Behavior:

Currently, I'm facing challenges in configuring Detox to work with the in-app browser for Keycloak authentication.

// dependencies
{
  "@react-keycloak/native": "^0.6.4",
  "detox": "^20.11.2",
  "jest": "^29.6.4",
  "react-native": "0.72.4",
  "react-native-inappbrowser-reborn": "^3.7.0"
}

Your environment

Detox version: 20.11.2
React Native version: 0.72.4
Node version: v20.5.0
Device model: Pixel 4a / iPhone 11
OS: Android / IOS
Test-runner (select one): jest

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant