Skip to content

Commit

Permalink
Simplify media-pipeline integration tests by removing unrelated check…
Browse files Browse the repository at this point in the history
…s. (aws#2357)
  • Loading branch information
anuranduttaroy authored Jul 8, 2022
1 parent d4898ee commit 83109b6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions integration/js/MediaCaptureTest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { AuthenticateUserStep, JoinMeetingStep, OpenAppStep, ClickContentShareButton, ClickVideoButton, ClickMediaCaptureButton, EndMeetingStep } = require('./steps');
const { ContentShareVideoCheck, LocalVideoCheck, RosterCheck, UserAuthenticationCheck, UserJoinedMeetingCheck } = require('./checks');
const { RosterCheck, UserAuthenticationCheck, UserJoinedMeetingCheck } = require('./checks');
const { AppPage } = require('./pages/AppPage');
const { TestUtils } = require('./node_modules/kite-common');
const SdkBaseTest = require('./utils/SdkBaseTest');
Expand Down Expand Up @@ -29,13 +29,9 @@ class MediaCaptureTest extends SdkBaseTest {
await testWindow.runCommands(async () => await ClickVideoButton.executeStep(this, session));
await testWindow.runCommands(async () => await ClickContentShareButton.executeStep(this, session, "ON"));
await TestUtils.waitAround(5000);
await testWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_ON'));
await testWindow.runCommands(async () => await ContentShareVideoCheck.executeStep(this, session, "ON", testAttendeeId));

await monitorWindow.runCommands(async () => await this.addUserToMeeting(monitorAttendeeId, session, this.region));
await monitorWindow.runCommands(async () => await ClickVideoButton.executeStep(this, session));
await monitorWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_ON'));
await monitorWindow.runCommands(async () => await ContentShareVideoCheck.executeStep(this, session, "ON", testAttendeeId));

// Start media capture session
await testWindow.runCommands(async () => await ClickMediaCaptureButton.executeStep(this, session));
Expand All @@ -50,8 +46,6 @@ class MediaCaptureTest extends SdkBaseTest {

await TestUtils.waitAround(5000);

await testWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_OFF'));
await testWindow.runCommands(async () => await ContentShareVideoCheck.executeStep(this, session, "OFF", testAttendeeId));
await testWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 3));
await monitorWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 3));

Expand All @@ -60,19 +54,6 @@ class MediaCaptureTest extends SdkBaseTest {

await TestUtils.waitAround(5000);

await testWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_ON'));
await testWindow.runCommands(async () => await ContentShareVideoCheck.executeStep(this, session, "ON", testAttendeeId));
await testWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 4));
await monitorWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 4));

await monitorWindow.runCommands(async () => await ClickVideoButton.executeStep(this, session));
await monitorWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_OFF'));

await monitorWindow.runCommands(async () => await ClickVideoButton.executeStep(this, session));
await monitorWindow.runCommands(async () => await LocalVideoCheck.executeStep(this, session, 'VIDEO_ON'));

await TestUtils.waitAround(5000);

await testWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 4));
await monitorWindow.runCommands(async () => await RosterCheck.executeStep(this, session, 4));

Expand Down

0 comments on commit 83109b6

Please sign in to comment.