From 9bb1e9b510828918da2b311ab239098d2962328d Mon Sep 17 00:00:00 2001 From: jwrob Date: Thu, 7 Nov 2024 19:46:11 +0100 Subject: [PATCH] prompt 3 layers when found --- .../integration-tests/src/stepsImpl/viewerSelect.step.impl.ts | 1 - .../integration-tests/src/support-utils/events.ts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/millicast-sdk/integration-tests/src/stepsImpl/viewerSelect.step.impl.ts b/packages/millicast-sdk/integration-tests/src/stepsImpl/viewerSelect.step.impl.ts index 0269be33..837b4c36 100644 --- a/packages/millicast-sdk/integration-tests/src/stepsImpl/viewerSelect.step.impl.ts +++ b/packages/millicast-sdk/integration-tests/src/stepsImpl/viewerSelect.step.impl.ts @@ -11,7 +11,6 @@ export async function viewerSelectLayer( await getListOfActorsEvents(scenarioWorld,actor) await waitForEventLayers(scenarioWorld,actor) - console.log(await getListOfActorsEvents(scenarioWorld,actor)) await runStep([ `the ${actor} switch to the "Viewer" app`, `the ${actor} executes the "window.millicastView.select({encodingId:"${encodingId}"})" JavaScript function on the page`, diff --git a/packages/millicast-sdk/integration-tests/src/support-utils/events.ts b/packages/millicast-sdk/integration-tests/src/support-utils/events.ts index c90ae599..836fe27d 100644 --- a/packages/millicast-sdk/integration-tests/src/support-utils/events.ts +++ b/packages/millicast-sdk/integration-tests/src/support-utils/events.ts @@ -30,8 +30,10 @@ export async function waitForEventLayers(scenarioWorld: ScenarioWorld, actor: st if(myEvent["name"] === "layers" && myEvent["data"]["medias"]["0"]["layers"].length === 3) { eventPresent = true console.log("3 Layers Found") + console.log("Layers content: "+myEvent["data"]["medias"]["0"]["layers"]) } - } return(eventPresent) as boolean + } + return(eventPresent) as boolean } await retryUntilTrue(verifyMethod, 20) }