Skip to content

Commit

Permalink
fix: slider e2e test stability (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem authored Dec 14, 2023
1 parent 00d8e12 commit c7071d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/slider/slider.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ test.describe(`Slider tests`, () => {
targetPosition: {x: boundingBox!.x + boundingBox!.width * 0.8, y: 1},
});

expect((await sliderPO.sliderHandleState())[0]).toEqual(expectedState);
await expect.poll(async () => (await sliderPO.sliderHandleState()).at(0)).toEqual(expectedState);
});

test(`should move handle on key strokes`, async ({page}) => {
Expand Down

0 comments on commit c7071d4

Please sign in to comment.