Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
I have a floating action menu. The smaller buttons underneath are normally animation to open and close the menu. I've turned off animation in the gradle with:
testOptions{
animationsDisabled = true
}
For clarity, let's say I have a menu open button, and blue button that is supposed to show after the menu button is pressed.
If I step through the AndroidJUnit4 test, the floating action buttons stay put after the menu button is pressed. If I then have espresso click the blue button, it THEN moves immediately (no animation) to fully open state but shows the menu button pressed. If I then click the blue button AGAIN, the test passes. And it has to be the same button. I've tried other buttons, and the menu stays closed.
If I do not use the debugger to walk through, the test fails.
I've tried custom actions to wait. It freezes.
I've tried counting idling resources with debugging output. If I increment immediately in the open, before the animation code, it doesn't hit idle until the test is run. Therefore, the tests do not wait. If I increment the inside the unit test, it just freezes, and doesn't progress.
I've tried this in both API 28 and API 34 emulators.
2. Attach log files from Android Studio
I've attached the project that is causes the issue. The RotationTest in the instrumented test is the issue. I've pulled all my other attempts to force the menu to pop open. I've left in one of the waiting ViewActions I tried, but I took out the counting idle resource since it failed.
3. If you know what they are, write the steps to reproduce:
Run the RotationTest in either API 28 or 34.
Build: AI-232.10300.40.2321.11567975, 202403122331
AI-232.10300.40.2321.11567975, JRE 17.0.9+0--11185874x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 1680.0x1050.0, 1680.0x1050.0
AS: Iguana | 2023.2.1 Patch 1
Kotlin plugin: 232-1.9.0-release-358-AS10300.40.2321.11567975
Android Gradle Plugin: 8.3.1
Gradle: 8.4
Gradle JDK: JetBrains Runtime version 17.0.9
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```