diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index 5d5f474d4..7882b0579 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -229,7 +229,8 @@ class RoomsListView extends React.Component { }); it('should add server and create new user', async () => { - await sleep(5000); + await waitFor(element(by.id('rooms-list-header-server-dropdown-button'))) + .toBeVisible() + .withTimeout(5000); await element(by.id('rooms-list-header-server-dropdown-button')).tap(); await waitFor(element(by.id('rooms-list-header-server-dropdown'))) .toBeVisible()