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

View File

@ -340,7 +340,9 @@ describe('E2E Encryption', () => {
});
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()