From 7695b7c3914a8e15944874906dcf51aee43d83ef Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 17 Jul 2024 17:05:04 -0300 Subject: [PATCH] e2e tests --- app/views/DirectoryView/index.tsx | 2 +- e2e/tests/assorted/07-changeserver.spec.ts | 5 ++++- e2e/tests/assorted/09-joinfromdirectory.spec.ts | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/DirectoryView/index.tsx b/app/views/DirectoryView/index.tsx index c021aee804..7c872a363b 100644 --- a/app/views/DirectoryView/index.tsx +++ b/app/views/DirectoryView/index.tsx @@ -74,7 +74,7 @@ class DirectoryView extends React.Component ( - + ) }; diff --git a/e2e/tests/assorted/07-changeserver.spec.ts b/e2e/tests/assorted/07-changeserver.spec.ts index 39c5e115b0..3fb0d11b64 100644 --- a/e2e/tests/assorted/07-changeserver.spec.ts +++ b/e2e/tests/assorted/07-changeserver.spec.ts @@ -30,7 +30,10 @@ describe('Change server', () => { await deleteCreatedUsers(deleteUsersAfterAll); }); - it('should open the dropdown button, have the server add button and create workspace button', async () => { + it('should open the servers list, have the server add button and create workspace button', async () => { + await waitFor(element(by.id('rooms-list-header-servers-list-button'))) + .toBeVisible() + .withTimeout(2000); await element(by.id('rooms-list-header-servers-list-button')).tap(); await waitFor(element(by.id('rooms-list-header-servers-list'))) .toBeVisible() diff --git a/e2e/tests/assorted/09-joinfromdirectory.spec.ts b/e2e/tests/assorted/09-joinfromdirectory.spec.ts index 5eb6e89758..9fb6f91407 100644 --- a/e2e/tests/assorted/09-joinfromdirectory.spec.ts +++ b/e2e/tests/assorted/09-joinfromdirectory.spec.ts @@ -74,7 +74,7 @@ describe('Join room from directory', () => { await waitFor(element(by.id('directory-view'))) .toExist() .withTimeout(2000); - await element(by.id('directory-view-dropdown')).tap(); + await element(by.id('directory-view-filter')).tap(); await element(by.label('Users')).atIndex(0).tap(); await navigateToRoom(otherUser.username); }); @@ -85,7 +85,7 @@ describe('Join room from directory', () => { await waitFor(element(by.id('directory-view'))) .toExist() .withTimeout(2000); - await element(by.id('directory-view-dropdown')).tap(); + await element(by.id('directory-view-filter')).tap(); await element(by.label('Teams')).atIndex(0).tap(); await navigateToRoom(team); });