-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Description:
Fairly regularly the simulator freezes when asking to do scroll commands. Sometimes it works when I try a different prompt but quite quickly it fails again. The end results is that the test itself timesout.
Instructions:
"Enter random name in the first name input field and press return key",
"Enter random name in the last name input field and press return key",
"Click on 'Confirm' label of the date picker, there are multiple labels with this text, select the first one in the hierarchy",
"Swipe up slowly 150 pixels",
"Select the 'Male' gender by clicking on the checkbox left of the label",
"Swipe up slowly 150 pixels",
"Enter random password in the password input field and press return key",
"Enter random phone number in the phonenumber input field and press done key on the keyboard",
"Click on the 'CONTINUE' button",
Logs:
STEP e2e/registration.test.ts
Swipe up slowly 150 pixels
CACHE e2e/registration.test.ts
Saving response to cache
15:18:28.424 detox[8687] i ws-client:APP_STATUS Failed to execute the current status query.
e2e/registration.test.ts
Pilot cache saved successfully
15:19:11.060 detox[8687] i ws-client:PENDING_REQUESTS The app has not responded to the network requests below:
(id = 26) invoke: {"type":"action","action":"scroll","params":[150,"up",0.5,null],"predicate":{"type":"id","value":"register-page-list","isRegex":false}}
(id = 27) currentStatus: {}
That might be the reason why the test "Start screen should handle new email registration" has timed out.
15:19:11.061 detox[8687] i lifecycle Start screen: should handle new email registration [FAIL]
15:19:16.090 detox[8687] i ws-client:ERROR The pending request #-49642 ("cleanup") has been rejected due to the following error:
The tester has not received a response within 5000ms timeout to the message:
Cleanup {
type: 'cleanup',
params: [Object],
messageId: -49642
}
FAIL e2e/registration.test.ts (133.945 s)
Start screen
✕ should handle new email registration (120033 ms)
● Start screen › should handle new email registration
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."
36 | afterEach(() => pilot.end());
37 |
> 38 | it("should handle new email registration", async () => {
| ^
39 | const randomEmail = `genie-uitest-${Math.random().toString(36).substring(2, 15)}@rituals.email`;
40 | await pilot.perform(
41 | "Check if 'SETUP MY DEVICE' label is visible",
at e2e/registration.test.ts:38:3
at Object.<anonymous> (e2e/registration.test.ts:16:1)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 139.012 s
Ran all test suites matching /e2e\/registration.test.ts/i.
15:19:16.263 detox[8684] E lifecycle Command failed with exit code = 1:
jest --config e2e/jest.config.ts e2e/registration.test.ts
15:19:16.265 detox[8684] i ws-server Detox server has been closed gracefully
15:19:16.266 detox[8684] E ws-server connection :57496<->:57507
Metadata
Metadata
Assignees
Labels
No labels