Skip to content

Commit d202587

Browse files
committed
update(tests/distance-guide): select
1 parent 081af06 commit d202587

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

e2e/tests/distance-guide/index.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ test('Distance guide', async ({ page, canvasUtil }) => {
1010
page,
1111
'rect2',
1212
).getObjectCenter();
13-
// select the rect2
14-
await page.mouse.move(rect2Pos.x, rect2Pos.y);
15-
await page.mouse.down();
16-
await page.mouse.up();
13+
page.mouse.click(rect2Pos.x, rect2Pos.y);
1714

1815
const rectPos = await rectUtil.getObjectCenter();
1916
await page.mouse.move(rectPos.x, rectPos.y);
2017
await page.keyboard.down('Alt');
2118
expect(await canvasUtil.screenshot()).toMatchSnapshot({
2219
name: 'distance.png',
2320
});
21+
await page.keyboard.up('Alt');
2422
});
2523

2624
await test.step('drag the rect3', async () => {

0 commit comments

Comments
 (0)