Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
carocao-msft committed Jan 31, 2025
1 parent 575024a commit 5717f39
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ test.describe('Teams Closed Captions Banner tests', async () => {
if (isTestProfileMobile(testInfo)) {
test.skip();
}
const initialState = defaultMockCallAdapterState();
const initialState = defaultMockCallAdapterState([], 'Presenter', false);
if (initialState?.call) {
initialState.isTeamsMeeting = true;
initialState.call.captionsFeature = captionsFeatureState;

initialState.call.captionsFeature.captionsKind = 'TeamsCaptions';
if (initialState.call.capabilitiesFeature) {
initialState.call.capabilitiesFeature.capabilities.setCaptionLanguage.isPresent = true;
}
}
await page.goto(buildUrlWithMockAdapter(serverUrl, initialState, { newControlBarExperience: 'true' }));
await pageClick(page, dataUiId('captions-banner-more-button'));
Expand All @@ -121,7 +123,7 @@ test.describe('Captions buttons in call control', () => {
});

test('Captions settings renders normally', async ({ page, serverUrl }, testInfo) => {
const initialState = defaultMockCallAdapterState();
const initialState = defaultMockCallAdapterState([], 'Presenter', false);
if (initialState?.call) {
initialState.isTeamsMeeting = true;
if (initialState.call.capabilitiesFeature) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,18 @@ test.describe('Teams Closed Captions Banner tests', async () => {
if (isTestProfileMobile(testInfo)) {
test.skip();
}
const initialState = defaultMockCallAdapterState([defaultMockRemoteParticipant('Paul Bridges')]);
const initialState = defaultMockCallAdapterState(
[defaultMockRemoteParticipant('Paul Bridges')],
'Presenter',
false
);
if (initialState?.call) {
initialState.isTeamsMeeting = true;
initialState.call.captionsFeature = captionsFeatureState;

initialState.call.captionsFeature.captionsKind = 'TeamsCaptions';
if (initialState.call.capabilitiesFeature) {
initialState.call.capabilitiesFeature.capabilities.setCaptionLanguage.isPresent = true;
}
}
await loadCallPage(page, serverUrl, initialState);
await pageClick(page, dataUiId('captions-banner-more-button'));
Expand Down

0 comments on commit 5717f39

Please sign in to comment.