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 4fb3f9a commit 298b8de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions e2e/tilt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ 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%');
Expand Down

0 comments on commit 298b8de

Please sign in to comment.