Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Jan 31, 2024
1 parent 298b8de commit de10aa3
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions e2e/tilt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,20 @@ test('should get max values of move params when mouse is positioned at corners o
glareOpacity: 0,
});

await content.getByTestId('topRight').hover({ position: { x: 25, y: 10 } });
const paramsString2 = await content.getByTestId('params').innerText();
const params2 = JSON.parse(paramsString2) as OnMoveParams;

console.log('🔎 Log ~ test ~ params2:', params2);

expect(params2).toStrictEqual({
tiltAngleX: -20,
tiltAngleY: 20,
tiltAngleXPercentage: -100,
tiltAngleYPercentage: 100,
glareAngle: -45,
glareOpacity: 0,
});

// await content.getByTestId('topRight').hover({ position: { x: 10, y: 1 } });
// await expect(content.getByTestId('tiltAngleX')).toHaveText('-20.00° / -100.00%');
// await expect(content.getByTestId('tiltAngleY')).toHaveText('-20.00° / -100.00%');
// await content.getByTestId('topRight').hover({ position: { x: 25, y: 10 } });
// const paramsString2 = await content.getByTestId('params').innerText();
// const params2 = JSON.parse(paramsString2) as OnMoveParams;

// console.log('🔎 Log ~ test ~ params2:', params2);

// expect(params2).toStrictEqual({
// tiltAngleX: -20,
// tiltAngleY: 20,
// tiltAngleXPercentage: -100,
// tiltAngleYPercentage: 100,
// glareAngle: -45,
// glareOpacity: 0,
// });

// await content.getByTestId('bottomRight').hover({ position: { x: 19, y: 19 } });
// await expect(content.getByTestId('tiltAngleX')).toHaveText('20.00° / 100.00%');
Expand Down

0 comments on commit de10aa3

Please sign in to comment.