diff --git a/change-beta/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json b/change-beta/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json new file mode 100644 index 00000000000..c825c8c40a7 --- /dev/null +++ b/change-beta/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "Hard mute", + "comment": "test", + "packageName": "@azure/communication-react", + "email": "fuyan@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json b/change/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json new file mode 100644 index 00000000000..c825c8c40a7 --- /dev/null +++ b/change/@azure-communication-react-2ded9686-b6a2-4ba0-8f30-c37c5b51390f.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "Hard mute", + "comment": "test", + "packageName": "@azure/communication-react", + "email": "fuyan@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-composites/src/composites/CallComposite/components/buttons/Microphone.tsx b/packages/react-composites/src/composites/CallComposite/components/buttons/Microphone.tsx index 4b6b6849a87..d9bd1f55165 100644 --- a/packages/react-composites/src/composites/CallComposite/components/buttons/Microphone.tsx +++ b/packages/react-composites/src/composites/CallComposite/components/buttons/Microphone.tsx @@ -62,7 +62,7 @@ export const Microphone = (props: { enableDeviceSelectionMenu={props.splitButtonsForDeviceSelection} disabled={microphoneButtonProps.disabled || props.disabled || !!(isRoomsCall && role === 'Unknown')} onRenderOffIcon={ - unmuteMicCapability && !unmuteMicCapability.isPresent + unmuteMicCapability?.isPresent === false ? () => <_HighContrastAwareIcon disabled={true} iconName={'ControlButtonMicProhibited'} /> : undefined } diff --git a/packages/react-composites/tests/browser/call/hermetic/RoomsCallScreen.test.ts b/packages/react-composites/tests/browser/call/hermetic/RoomsCallScreen.test.ts index 8217029f49c..6c59121f19c 100644 --- a/packages/react-composites/tests/browser/call/hermetic/RoomsCallScreen.test.ts +++ b/packages/react-composites/tests/browser/call/hermetic/RoomsCallScreen.test.ts @@ -66,6 +66,7 @@ test.describe('Rooms CallScreen tests for different roles', async () => { const initialState = defaultMockCallAdapterState([], 'Attendee', true); await page.goto(buildUrlWithMockAdapter(serverUrl, { ...initialState })); await waitForSelector(page, dataUiId(IDS.videoGallery)); + await page.waitForTimeout(2000); expect(await stableScreenshot(page)).toMatchSnapshot('rooms-call-screen-attendee.png'); if (isTestProfileMobile(testInfo)) { await pageClick(page, dataUiId(IDS.moreButton)); diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Desktop-Chrome-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Desktop-Chrome-linux.png index c159107b813..bff34a1997c 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Desktop-Chrome-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Desktop-Chrome-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Landscape-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Landscape-linux.png index 373bada089e..6b44bfb5db3 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Landscape-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Landscape-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png index 590b00387e4..58abf646714 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Landscape-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Landscape-linux.png index 9de5b2955c3..ebd942e19c3 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Landscape-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Landscape-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png index 9ad0dab915b..7947b71a889 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png index 5cd3a239859..ffaabeb5d3f 100644 Binary files a/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png and b/packages/react-composites/tests/browser/snapshots/beta/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png index 590b00387e4..58abf646714 100644 Binary files a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png and b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-Mobile-Android-Portrait-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png index 9ad0dab915b..7947b71a889 100644 Binary files a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png and b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-attendee-click-more-button-Mobile-Android-Portrait-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png index 5cd3a239859..148e4d9e72c 100644 Binary files a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png and b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Desktop-Chrome-linux.png differ diff --git a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Mobile-Android-Portrait-linux.png b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Mobile-Android-Portrait-linux.png index d5a7e450af8..ffae60cca77 100644 Binary files a/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Mobile-Android-Portrait-linux.png and b/packages/react-composites/tests/browser/snapshots/stable/tests/browser/call/hermetic/RoomsCallScreen.test.ts-snapshots/rooms-call-screen-devices-Attendee-Mobile-Android-Portrait-linux.png differ