Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgamis-msft committed Dec 3, 2024
1 parent 44b2ef0 commit 9cfbb24
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const displayNames = [
test.describe('PIN - Pinning tests', async () => {
test('Pin and unpin remote participants via video tile', async ({ page, serverUrl }, testInfo) => {
const participants = displayNames.map((name) => defaultMockRemoteParticipant(name));
addVideoStream(participants[1], true);
if (participants[1]) {
addVideoStream(participants[1], true);
}
const initialState = defaultMockCallAdapterState(participants);

await page.goto(buildUrlWithMockAdapter(serverUrl, initialState, { newControlBarExperience: 'true' }));
Expand Down Expand Up @@ -80,7 +82,9 @@ test.describe('PIN - Pinning tests', async () => {

test('Pin and unpin remote participants via participant item', async ({ page, serverUrl }, testInfo) => {
const participants = displayNames.map((name) => defaultMockRemoteParticipant(name));
addVideoStream(participants[1], true);
if (participants[1]) {
addVideoStream(participants[1], true);
}
const initialState = defaultMockCallAdapterState(participants);

await page.goto(buildUrlWithMockAdapter(serverUrl, initialState, { newControlBarExperience: 'true' }));
Expand Down Expand Up @@ -130,7 +134,9 @@ test.describe('PIN - Pinning tests', async () => {

test('Pin max remote participants', async ({ page, serverUrl }, testInfo) => {
const participants = displayNames.map((name) => defaultMockRemoteParticipant(name));
addVideoStream(participants[1], true);
if (participants[1]) {
addVideoStream(participants[1], true);
}
const initialState = defaultMockCallAdapterState(participants);

await page.goto(buildUrlWithMockAdapter(serverUrl, initialState, { newControlBarExperience: 'true' }));
Expand Down

0 comments on commit 9cfbb24

Please sign in to comment.