diff --git a/docs/samples/browser-plugin-meetings/app.js b/docs/samples/browser-plugin-meetings/app.js index f7ea76c1610..61685af017c 100644 --- a/docs/samples/browser-plugin-meetings/app.js +++ b/docs/samples/browser-plugin-meetings/app.js @@ -250,6 +250,7 @@ const createMeetingSelectElm = document.querySelector('#createMeetingDest'); const createMeetingActionElm = document.querySelector('#create-meeting-action'); const meetingsJoinDeviceElm = document.querySelector('#meetings-join-device'); const meetingsJoinPinElm = document.querySelector('#meetings-join-pin'); +const meetingsGuestName = document.querySelector('#meetings-guest-name'); const meetingsJoinModeratorElm = document.querySelector('#meetings-join-moderator'); const meetingsListCollectElm = document.querySelector('#meetings-list-collect'); const meetingsListMsgElm = document.querySelector('#meetings-list-msg'); @@ -464,12 +465,13 @@ function joinMeeting({withMedia, withDevice} = {withMedia: false, withDevice: fa const joinOptions = { pin: meetingsJoinPinElm.value, + alias: meetingsGuestName.value, moderator: meetingsJoinModeratorElm.checked, moveToResource: false, resourceId, receiveTranscription: receiveTranscriptionOption }; - + const joinMeetingNow = () => { meeting.join(joinOptions) .then(() => { // eslint-disable-line diff --git a/docs/samples/browser-plugin-meetings/index.html b/docs/samples/browser-plugin-meetings/index.html index a853ef43f7f..365076a1157 100644 --- a/docs/samples/browser-plugin-meetings/index.html +++ b/docs/samples/browser-plugin-meetings/index.html @@ -245,6 +245,7 @@

Meeting Management

Join Meeting
+
diff --git a/packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js b/packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js index 9b1551d5c0b..87b900a53e5 100644 --- a/packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js +++ b/packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js @@ -138,13 +138,13 @@ describe('plugin-meetings', () => { }; MeetingUtil.parseLocusJoin = sinon.stub(); - await MeetingUtil.joinMeeting(meeting, {alias: 'userName'}); + await MeetingUtil.joinMeeting(meeting, {alias: 'assigned name'}); assert.calledOnce(meeting.meetingRequest.joinMeeting); const parameter = meeting.meetingRequest.joinMeeting.getCall(0).args[0]; assert.equal(parameter.inviteeAddress, 'meetingJoinUrl'); - assert.equal(parameter.alias, 'userName'); + assert.equal(parameter.alias, 'assigned name'); }); it('#Should fallback sipUrl if meetingJoinUrl does not exists', async () => { @@ -157,13 +157,13 @@ describe('plugin-meetings', () => { }; MeetingUtil.parseLocusJoin = sinon.stub(); - await MeetingUtil.joinMeeting(meeting, {alias: 'userName'}); + await MeetingUtil.joinMeeting(meeting, {alias: 'assigned name'}); assert.calledOnce(meeting.meetingRequest.joinMeeting); const parameter = meeting.meetingRequest.joinMeeting.getCall(0).args[0]; assert.equal(parameter.inviteeAddress, 'sipUri'); - assert.equal(parameter.alias, 'userName'); + assert.equal(parameter.alias, 'assigned name'); }); it('#Should fallback to meetingNumber if meetingJoinUrl/sipUrl does not exists', async () => { @@ -176,14 +176,14 @@ describe('plugin-meetings', () => { }; MeetingUtil.parseLocusJoin = sinon.stub(); - await MeetingUtil.joinMeeting(meeting, {alias: 'userName'}); + await MeetingUtil.joinMeeting(meeting, {alias: 'assigned name'}); assert.calledOnce(meeting.meetingRequest.joinMeeting); const parameter = meeting.meetingRequest.joinMeeting.getCall(0).args[0]; assert.isUndefined(parameter.inviteeAddress); assert.equal(parameter.meetingNumber, 'meetingNumber'); - assert.equal(parameter.alias, 'userName'); + assert.equal(parameter.alias, 'assigned name'); }); });