Fix server dropdown
This commit is contained in:
parent
e6ec8b4e39
commit
e088d76724
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue