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

Potential flakiness issue with detox "should scroll for a small amount in direction" - travis failed #67

Closed
talkol opened this issue Dec 20, 2016 · 2 comments
Assignees

Comments

@talkol
Copy link

talkol commented Dec 20, 2016

Travis build failed without any change:
https://travis-ci.org/wix/detox/builds/185523378

The test that failed is should scroll for a small amount in direction

This is a potential flakiness issue that we should take very seriously

1)  "after each" hook for "should scroll for a small amount in direction":
     Error: Assertion 'assertWithMatcher: matcherForSufficientlyVisible(>=0.750000)' failed.
Element matcher: ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel("Text4"))
Complete Error: Error Domain=com.google.earlgrey.ElementInteractionErrorDomain Code=2 "Assertion with matcher 'matcherForSufficientlyVisible(>=0.750000)' failed: UI element '<RCTText: 0x7fff44c6fbf0; reactTag: 49; text: Text4 frame = (10 160; 392 30); opaque = NO; layer = <CALayer: 0x600000429520>>' failed to match matcherForSufficientlyVisible(>=0.750000)" UserInfo={NSLocalizedDescription=Assertion with matcher 'matcherForSufficientlyVisible(>=0.750000)' failed: UI element '<RCTText: 0x7fff44c6fbf0; reactTag: 49; text: Text4 frame = (10 160; 392 30); opaque = NO; layer = <CALayer: 0x600000429520>>' failed to match matcherForSufficientlyVisible(>=0.750000)}
      at handleAction (node_modules/detox/lib/websocket.js:74:15)
      at WebSocket.<anonymous> (node_modules/detox/lib/websocket.js:36:1)
      at Receiver.ontext (node_modules/ws/lib/WebSocket.js:841:10)
      at node_modules/ws/lib/Receiver.js:536:18
      at node_modules/ws/lib/Receiver.js:368:7
      at node_modules/ws/lib/PerMessageDeflate.js:249:5
      at afterWrite (_stream_writable.js:388:3)
      at onwrite (_stream_writable.js:379:7)
      at WritableState.onwrite (_stream_writable.js:90:5)
      at afterTransform (_stream_transform.js:79:3)
      at TransformState.afterTransform (_stream_transform.js:54:12)
      at Zlib.callback (zlib.js:624:5)

@LeoNatan
Copy link
Contributor

So it seems both scrolling and swiping is affected by this flakiness. We saw with @DanielZlotin that sometimes the swipe to refresh at least once failed to actually reach the threshold of refreshing (but it does most of the time). I think this is an issue with Earl Grey in general.

@LeoNatan LeoNatan closed this as completed Jun 6, 2017
@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 6, 2017

No longer an issue.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants