Disable selecting existing group members in add members modal
This commit is contained in:
parent
8af39e630a
commit
363142569b
8 changed files with 11 additions and 19 deletions
|
@ -40,7 +40,7 @@ type PropsType = ComponentProps<typeof AddGroupMembersModal>;
|
|||
|
||||
const createProps = (
|
||||
overrideProps: Partial<PropsType> = {},
|
||||
candidateContacts: Array<ConversationType> = []
|
||||
candidateContacts: Array<ConversationType> = allCandidateContacts
|
||||
): PropsType => ({
|
||||
clearRequestError: action('clearRequestError'),
|
||||
conversationIdsAlreadyInGroup: new Set(),
|
||||
|
|
|
@ -329,6 +329,7 @@ export function ChooseGroupMembersModal({
|
|||
onClick={handleContactClick}
|
||||
isChecked={row.isChecked}
|
||||
badge={undefined}
|
||||
disabledReason={row.disabledReason}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
|
|
@ -110,14 +110,11 @@ describe('pnp/accept gv2 invite', function needsName() {
|
|||
.waitFor({ state: 'hidden' });
|
||||
|
||||
debug('Leave the group through settings');
|
||||
|
||||
await conversationStack
|
||||
await window
|
||||
.locator('button.module-ConversationHeader__button--more')
|
||||
.click();
|
||||
|
||||
await conversationStack
|
||||
.locator('.react-contextmenu-item >> "Group settings"')
|
||||
.click();
|
||||
await window.locator('.react-contextmenu-item >> "Group settings"').click();
|
||||
|
||||
await conversationStack
|
||||
.locator('.conversation-details-panel >> "Leave group"')
|
||||
|
|
|
@ -166,9 +166,7 @@ describe('pnp/send gv2 invite', function needsName() {
|
|||
.locator('button.module-ConversationHeader__button--more')
|
||||
.click();
|
||||
|
||||
await conversationStack
|
||||
.locator('.react-contextmenu-item >> "Group settings"')
|
||||
.click();
|
||||
await window.locator('.react-contextmenu-item >> "Group settings"').click();
|
||||
|
||||
debug('editing group title');
|
||||
{
|
||||
|
|
|
@ -98,7 +98,7 @@ describe('storage service', function needsName() {
|
|||
);
|
||||
await moreButton.click();
|
||||
|
||||
const archiveButton = conversationStack.locator(
|
||||
const archiveButton = window.locator(
|
||||
'.react-contextmenu-item >> "Archive"'
|
||||
);
|
||||
await archiveButton.click();
|
||||
|
|
|
@ -67,9 +67,7 @@ describe('storage service', function needsName() {
|
|||
);
|
||||
await moreButton.click();
|
||||
|
||||
const pinButton = conversationStack.locator(
|
||||
'.react-contextmenu-item >> "Pin chat"'
|
||||
);
|
||||
const pinButton = window.locator('.react-contextmenu-item >> "Pin chat"');
|
||||
await pinButton.click();
|
||||
|
||||
const newState = await phone.waitForStorageState({
|
||||
|
@ -111,7 +109,7 @@ describe('storage service', function needsName() {
|
|||
);
|
||||
await moreButton.click();
|
||||
|
||||
const pinButton = conversationStack.locator(
|
||||
const pinButton = window.locator(
|
||||
'.react-contextmenu-item >> "Pin chat"'
|
||||
);
|
||||
await pinButton.click();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue