Fix server dropdown

This commit is contained in:
Diego Mello 2022-12-08 16:08:35 -03:00
parent e6ec8b4e39
commit e088d76724
2 changed files with 7 additions and 3 deletions

View File

@ -229,7 +229,8 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
isMasterDetail, isMasterDetail,
showAvatar, showAvatar,
displayMode, displayMode,
encryptionBanner encryptionBanner,
showServerDropdown
} = this.props; } = this.props;
if ( if (
sortBy !== nextProps.sortBy || sortBy !== nextProps.sortBy ||
@ -240,7 +241,8 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
displayMode !== nextProps.displayMode || displayMode !== nextProps.displayMode ||
subscribedRoom !== nextProps.subscribedRoom || subscribedRoom !== nextProps.subscribedRoom ||
isMasterDetail !== nextProps.isMasterDetail || isMasterDetail !== nextProps.isMasterDetail ||
encryptionBanner !== nextProps.encryptionBanner encryptionBanner !== nextProps.encryptionBanner ||
showServerDropdown !== nextProps.showServerDropdown
) { ) {
return true; return true;
} }

View File

@ -340,7 +340,9 @@ describe('E2E Encryption', () => {
}); });
it('should add server and create new user', async () => { 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 element(by.id('rooms-list-header-server-dropdown-button')).tap();
await waitFor(element(by.id('rooms-list-header-server-dropdown'))) await waitFor(element(by.id('rooms-list-header-server-dropdown')))
.toBeVisible() .toBeVisible()