diff --git a/e2e/tilt.spec.ts b/e2e/tilt.spec.ts index 509fc7d0..ceb9d51c 100644 --- a/e2e/tilt.spec.ts +++ b/e2e/tilt.spec.ts @@ -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%');