How to tell Detox to wait for my elements to appear

Viewed 4803

My view takes a second to load in after an event. When calling:

expect(element(by.id('my-view'))).toBeVisible()

sometimes detox finds this element and sometimes it does not. How do I tell detox to wait for the elements to appear?

1 Answers
Related