Skip to content

Commit

Permalink
Test different value for false color slider
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethnym committed Jul 27, 2023
1 parent d85ef28 commit 3c618e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/images.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ test('user can change the false colour parameters of an image', async ({
await llSliderRoot.dragTo(llSliderRoot, {
targetPosition: {
// moving the slider to the target value in %
x: (sliderDims?.width ?? 0) * 0.4,
x: (sliderDims?.width ?? 0) * 0.6,
y: sliderDims?.height ? sliderDims.height / 2 : 0,
},
});

expect(await llSlider.getAttribute('value')).toBe(`${0.4 * 255}`);
expect(await llSlider.getAttribute('value')).toBe(`${0.6 * 255}`);

const ulSlider = await popup.getByRole('slider', {
name: 'Upper Level (UL)',
Expand Down

0 comments on commit 3c618e1

Please sign in to comment.