Skip to content

Commit

Permalink
fix dynamic groups e2e failing because of imavid
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Sep 25, 2024
1 parent 744ac11 commit 2afece4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions e2e-pw/src/oss/specs/groups/nested-dynamic-groups.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const imagePaths = [1, 2, 3, 4]
`g${groupNum}sl2sc${idx > 1 ? "2" : "1"}`,
])
.flat()
.map((imgName) => `/tmp/${imgName}o${orderGen.next().value}.png`);
.map(
(imgName) =>
`/tmp/${imgName}o${orderGen.next().value}.png` as `${string}.png`
);

test.beforeAll(async ({ fiftyoneLoader }) => {
// create a dataset with two groups, each with 2 image samples
Expand Down Expand Up @@ -151,7 +154,8 @@ test(`dynamic groups of groups works`, async ({ grid, modal, sidebar }) => {
scene_key: "1",
order_key: "1",
});
await modal.video.playUntilFrames("2 / 2", true);
await modal.imavid.setSpeedTo("low");
await modal.imavid.playUntilFrames("2 / 2", true);

await modal.sidebar.assert.verifySidebarEntryTexts({
scene_key: "1",
Expand All @@ -164,7 +168,8 @@ test(`dynamic groups of groups works`, async ({ grid, modal, sidebar }) => {
order_key: "1",
});

await modal.video.playUntilFrames("2 / 2", true);
await modal.imavid.setSpeedTo("low");
await modal.imavid.playUntilFrames("2 / 2", true);

await modal.sidebar.assert.verifySidebarEntryTexts({
scene_key: "2",
Expand Down

0 comments on commit 2afece4

Please sign in to comment.