Skip to content

Commit

Permalink
remove extra cast on page mouse
Browse files Browse the repository at this point in the history
This was previously needed when we used our custom puppeteer mouse type, now
natively supported so the cast is useless.
  • Loading branch information
tbouffard authored and aibcmars committed Nov 4, 2020
1 parent d62f510 commit f9d965b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/performance/bpmn.navigation.performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ describe.each([1, 2, 3, 4, 5])('diagram navigation performance', run => {
await page.mouse.move(viewportCenterX + 200, viewportCenterY);
await page.keyboard.down('Control');
for (let i = 0; i < xTimes; i++) {
await (<Mouse>page.mouse).wheel({ deltaX: deltaX });
await page.mouse.wheel({ deltaX: deltaX });
if (i % 5 === 0) {
await delay(30);
}
}
await delay(100);
for (let i = 0; i < xTimes; i++) {
await (<Mouse>page.mouse).wheel({ deltaX: -deltaX });
await page.mouse.wheel({ deltaX: -deltaX });
if (i % 5 === 0) {
await delay(30);
}
Expand Down

0 comments on commit f9d965b

Please sign in to comment.