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

Failing UI tests on API 31 #456

Open
IanArb opened this issue Mar 4, 2022 · 0 comments
Open

Failing UI tests on API 31 #456

IanArb opened this issue Mar 4, 2022 · 0 comments

Comments

@IanArb
Copy link
Contributor

IanArb commented Mar 4, 2022

Describe the Bug:
There are failing UI tests on API 31 on CI workflow runs. It seems to be flaky on CI environment and could be related to material components as per the test case failures.

Tests that are failing:

> Task :sample:connectedDebugAndroidTest

com.adevinta.android.barista.sample.ClickTest > checkClickWhenParentIsNotAnScrollView_byText[test(AVD) - 12] FAILED 
	com.adevinta.android.barista.internal.failurehandler.BaristaException: No view matching ((an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!" or (view.getParent() is assignable from class <class com.google.android.material.textfield.TextInputLayout> and (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!")))) was found
	at com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler.resendFirstError(SpyFailureHandler.kt:25)

com.adevinta.android.barista.sample.ClickTest > checkClick_byStringResource[test(AVD) - 12] FAILED 
	com.adevinta.android.barista.internal.failurehandler.BaristaException: No view matching ((an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!" or (view.getParent() is assignable from class <class com.google.android.material.textfield.TextInputLayout> and (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!")))) was found
	at com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler.resendFirstError(SpyFailureHandler.kt:25)

com.adevinta.android.barista.sample.ClickTest > checkClickWhenParentIsNotAnScrollView_byId[test(AVD) - 12] FAILED 
	com.adevinta.android.barista.internal.failurehandler.BaristaException: No view matching ((an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!" or (view.getParent() is assignable from class <class com.google.android.material.textfield.TextInputLayout> and (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Hi! I'm the second screen!")))) was found
	at com.adevinta.android.barista.internal.failurehandler.SpyFailureHandler.resendFirstError(SpyFailureHandler.kt:25)

A clear description of what is the bug is.

Steps to reproduce the bug:

  1. Create a PR
  2. Wait for API 31 test results

Expected Behavior:
Tests should pass.

A clear description of what you expected to happen.
The tests should not be flaky and be able to pass on first run in CI.

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

No branches or pull requests

1 participant