Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay and use meeting leave over end in event reporting test #1779

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions integration/js/EventReportingTest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {OpenAppStep, JoinMeetingStep, AuthenticateUserStep, EndMeetingStep} = require('./steps');
const {OpenAppStep, JoinMeetingStep, AuthenticateUserStep, LeaveMeetingStep} = require('./steps');
const {UserJoinedMeetingCheck, UserAuthenticationCheck, RosterCheck} = require('./checks');
const {TestUtils} = require('./node_modules/kite-common');
const SdkBaseTest = require('./utils/SdkBaseTest');
Expand All @@ -8,7 +8,7 @@ const { v4: uuidv4 } = require('uuid');
* 1. Starts a meeting with event reporting enabled.
* 2. Adds participants to the meeting.
* 3. Check if user joined correctly.
* 4. End meeting.
* 4. Leave meeting.
* */
class EventReportingTest extends SdkBaseTest {
constructor(name, kiteConfig) {
Expand All @@ -24,7 +24,8 @@ class EventReportingTest extends SdkBaseTest {
await JoinMeetingStep.executeStep(this, session);
await UserJoinedMeetingCheck.executeStep(this, session, attendee_id);
await RosterCheck.executeStep(this, session, 1);
await EndMeetingStep.executeStep(this, session);
await TestUtils.waitAround(5000);
await LeaveMeetingStep.executeStep(this, session);
await this.waitAllSteps();
}
}
Expand Down