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

[UI Tests] - Long press on image gallery disrupting test flow #17348

Open
jostnes opened this issue Oct 18, 2022 · 0 comments
Open

[UI Tests] - Long press on image gallery disrupting test flow #17348

jostnes opened this issue Oct 18, 2022 · 0 comments
Labels
[Type] Task UI Tests Anything related to automated UI Tests.

Comments

@jostnes
Copy link
Contributor

jostnes commented Oct 18, 2022

The issue

For the e2ePublishFullPost test, an unintended long-press keeps happening, breaking the flow of the test and failing it. We have attempted to fix this, the latest in this PR: #17323 however, it doesn't look like the issue is fixed.

From logs (see line 4):

10-17 03:15:11.611: D/LifecycleMonitor(8377): Lifecycle status change: org.wordpress.android.ui.mediapicker.MediaPickerActivity@cc6cde0 in: STOPPED
10-17 03:15:11.611: V/ActivityScenario(8377): Activity lifecycle changed event received but ignored because the intent does not match. startActivityIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.wordpress.android/.ui.WPLaunchActivity }, activity.getIntent()=Intent { cmp=org.wordpress.android/.ui.mediapicker.MediaPickerActivity (has extras) }, activity=org.wordpress.android.ui.mediapicker.MediaPickerActivity@cc6cde0
10-17 03:15:11.648: D/goldfish-address-space(306): claimShared: Ask to claim region [0x1f4cfc000 0x1f54e8000]
10-17 03:15:11.652: W/MotionEvents(8377): Overslept and turned a tap into a long press
10-17 03:15:11.653: I/InputDispatcher(545): Dropping event because there is no touched foreground window in display 0 or gesture monitor to receive it.
10-17 03:15:11.653: W/InputDispatcher(545): Permission denied: injecting event from pid 8377 uid 10177
10-17 03:15:11.653: W/InputManager(545): Input event injection from pid 8377 failed.
10-17 03:15:11.653: E/MotionEvents(8377): Injection of up event failed (corresponding down event: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=307.0, y[0]=262.0, toolType[0]=TOOL_TYPE_UNKNOWN, buttonState=BUTTON_PRIMARY, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=315625, downTime=315625, deviceId=0, source=0x1002, displayId=0 })
10-17 03:15:11.653: D/Tap(8377): Injection of up event as part of the click failed. Send cancel event.
10-17 03:15:11.653: I/InputDispatcher(545): Dropping event because there is no touched foreground window in display 0 or gesture monitor to receive it.
10-17 03:15:11.653: W/InputDispatcher(545): Permission denied: injecting event from pid 8377 uid 10177
10-17 03:15:11.654: E/MotionEvents(8377): Injection of cancel event failed (corresponding down event: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=307.0, y[0]=262.0, toolType[0]=TOOL_TYPE_UNKNOWN, buttonState=BUTTON_PRIMARY, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=315625, downTime=315625, deviceId=0, source=0x1002, displayId=0 })
10-17 03:15:11.796: W/android.hardware.audio.service.ranchu(294): TinyalsaSink::write:125 pcm_write was late reading frames, dropping 22131 us of audio
10-17 03:15:11.934: W/BestClock(545): java.time.DateTimeException: Missing NTP fix
10-17 03:15:11.986: W/BestClock(545): java.time.DateTimeException: Missing NTP fix
10-17 03:15:11.989: W/BestClock(545): java.time.DateTimeException: Missing NTP fix
10-17 03:15:12.002: I/ViewInteraction(8377): Checking 'MatchesViewAssertion{viewMatcher=(view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() to return non-empty rectangle)}' assertion on view view.getId() is <2131363174/org.wordpress.android:id/mnu_confirm_selection>
10-17 03:15:12.002: E/ViewAssertions(8377): '(view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() to return non-empty rectangle)' check could not be performed because view 'view.getId() is <2131363174/org.wordpress.android:id/mnu_confirm_selection>' was not found.
@jostnes jostnes added [Type] Task UI Tests Anything related to automated UI Tests. labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task UI Tests Anything related to automated UI Tests.
Projects
None yet
Development

No branches or pull requests

1 participant