Skip to content

Commit

Permalink
Slider: more stable tests (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso authored Dec 1, 2023
1 parent 430f3bb commit 79135a9
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 @@ -240,7 +240,7 @@ test.describe(`Slider tests`, () => {
targetPosition: {x: boundingBox!.x + boundingBox!.width * 0.75, y: 1},
});

expect((await sliderPO.sliderHandleState()).at(0)).toEqual(expectedState[0]);
await expect.poll(async () => (await sliderPO.sliderHandleState()).at(0)).toEqual(expectedState[0]);
expect((await sliderPO.sliderHandleState()).at(1)).toEqual(expectedState[1]);
expect((await sliderPO.sliderProgressState())[0]).toEqual('left: 40%; bottom: 0%; width: 43%; height: 100%;');
});
Expand Down

0 comments on commit 79135a9

Please sign in to comment.