Skip to content

Commit

Permalink
#2957 - change pos to position
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoblit committed Aug 7, 2023
1 parent 4f732e4 commit ba74a10
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,15 @@ test.describe('Click and drag Atom on canvas', () => {
for (const [idx, direction] of directions.entries()) {
await moveOnAtom(page, 'P', idx);

const previousAtomPos = await getAtomByIndex(page, { label: 'P' }, idx);
const previousAtomPosition = await getAtomByIndex(
page,
{ label: 'P' },
idx,
);

await dragMouseTo(
previousAtomPos.x + direction.x,
previousAtomPos.y + direction.y,
previousAtomPosition.x + direction.x,
previousAtomPosition.y + direction.y,
page,
);
}
Expand Down

0 comments on commit ba74a10

Please sign in to comment.