You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test is pretty basic : I'm scrolling in a list (FlashList) until if find a specific element (with a unique testID).
Detox is just scrolling endlessly, event if the specific element is clearly visible and throw a timeout.
My tests are randomly failing on my CI machine (I could not reproduce it on my local machine). I didn't have any issues so far with scroll.
Here is a video where the test is supposed to scroll until the Summer box element is visible (i've cut the video since I can only post a 10mb file here) :
detox2.mov
What was the expected behaviour?
Scroll in a list until the specific element is visible.
Was it tested on latest Detox?
I have tested this issue on the latest Detox release and it still reproduces.
Detox version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
iOS version:
macOS version:
Xcode version:
Test-runner (select one): jest / other
Detox logs
Detox logs
• Run loop "Main Run Loop" is awake.
• Run loop "JS Run Loop" is awake.
09:14:25.451 detox[49382] i The app has not responded to the network requests below:
(id = 5) invoke: {"type":"action","action":"scroll","params":[600,"down",null,null],"predicate":{"type":"id","value":"HomeScreen.List.public","isRegex":false},"while":{"type":"expectation","predicate":{"type":"id","value":"Public.2268cbf4e1a143bcb9295037f","isRegex":false},"expectation":"toBeVisible"}}
That might be the reason why the test "SaleScreen Monoproduct should display sale mono product" has timed out.
09:14:25.451 detox[49382] i SaleScreen > Monoproduct: should display sale mono product [FAIL]
FAIL tests/SaleScreen.test.ts (168.795 s)
SaleScreen
Monoproduct
✕ should display sale mono product (157511 ms)
● SaleScreen › Monoproduct › should display sale mono product
thrown: "Exceeded timeout of 120000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
15 |
16 | describe("Monoproduct", () => {
> 17 | it("should display sale mono product", async () => {
| ^
18 | await Flows.HomeScreen.waitUntilVisible();
19 | await Flows.HomeScreen.goToSale(
20 | SALES.monoproduct.saleId,
at it (tests/SaleScreen.test.ts:17:5)
at describe (tests/SaleScreen.test.ts:16:3)
at Object.describe (tests/SaleScreen.test.ts:11:1)
Device logs
Device logs
paste your device.log here!
More data, please!
No response
The text was updated successfully, but these errors were encountered:
What happened?
Hey,
The test is pretty basic : I'm scrolling in a list (FlashList) until if find a specific element (with a unique
testID
).Detox is just scrolling endlessly, event if the specific element is clearly visible and throw a timeout.
My tests are randomly failing on my CI machine (I could not reproduce it on my local machine). I didn't have any issues so far with scroll.
Here is a video where the test is supposed to scroll until the
Summer box
element is visible (i've cut the video since I can only post a 10mb file here) :detox2.mov
What was the expected behaviour?
Scroll in a list until the specific element is visible.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
Here are some utility functions :
Here is my utility Flows :
And here is the test :
In what environment did this happen?
Detox version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
iOS version:
macOS version:
Xcode version:
Test-runner (select one): jest / other
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: