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

AndroidUI tests: No views in hierarchy found #43

Open
CAMOBAP opened this issue Jun 24, 2022 · 3 comments
Open

AndroidUI tests: No views in hierarchy found #43

CAMOBAP opened this issue Jun 24, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@CAMOBAP
Copy link
Collaborator

CAMOBAP commented Jun 24, 2022

Intro

Tests are still shaky they fail once per 10-15 runs

Proposal

Tests mostly fail because of "No views in hierarchy found", screenshots may help to troubleshoot them https://medium.com/stepstone-tech/how-to-capture-screenshots-for-failed-ui-tests-9927eea6e1e4

@e271828- e271828- added the bug Something isn't working label Jul 12, 2022
@CAMOBAP CAMOBAP self-assigned this Aug 25, 2022
@CAMOBAP
Copy link
Collaborator Author

CAMOBAP commented Mar 18, 2023

During debugging tests it seams it may happens when Activity/Fragment is not in RESUMED state so make sense to add checks/waits for this

@CAMOBAP
Copy link
Collaborator Author

CAMOBAP commented May 8, 2023

Reproduces more frequently on API 25

@CAMOBAP
Copy link
Collaborator Author

CAMOBAP commented Jul 9, 2024

It was produced less frequently during the last builds (usually once in 25-30 builds)

The last one was here https://github.com/hCaptcha/hcaptcha-android-sdk/actions/runs/9776979057/job/27027052421

com.hcaptcha.sdk.HCaptchaDialogFragmentTest > webViewReturnToken[emulator-5554 - 9] FAILED 
	androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: an instance of android.webkit.WebView and webView.getSettings().getJavaScriptEnabled() is <true>

#101 looks more annoying at this moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants