Skip to content

Commit 009678b

Browse files
authored
chore: fix linter warning
1 parent 3c23514 commit 009678b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/e2e/interactions.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ test.describe('Package Page', () => {
118118

119119
for (const { x, y } of points) {
120120
const isOnTop = await page.evaluate(
121-
({ x, y }) => {
122-
const el = document.elementFromPoint(x, y)
121+
({ pointX, pointY }) => {
122+
const el = document.elementFromPoint(pointX, pointY)
123123
// Ensure the element at this point is the button or contained within it
124124
return el?.closest('button[aria-label]') !== null
125125
},
126-
{ x, y },
126+
{ pointX: x, pointY: y },
127127
)
128128
expect(isOnTop, `Button is occluded at point (${x.toFixed(0)}, ${y.toFixed(0)})`).toBe(true)
129129
}

0 commit comments

Comments
 (0)