From f9d965b409b3e24505e38e007d5210a752425988 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 4 Nov 2020 14:52:31 +0100 Subject: [PATCH] remove extra cast on page mouse This was previously needed when we used our custom puppeteer mouse type, now natively supported so the cast is useless. --- test/e2e/performance/bpmn.navigation.performance.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/performance/bpmn.navigation.performance.test.ts b/test/e2e/performance/bpmn.navigation.performance.test.ts index a64c15e4f2..a4e2cbb3f3 100644 --- a/test/e2e/performance/bpmn.navigation.performance.test.ts +++ b/test/e2e/performance/bpmn.navigation.performance.test.ts @@ -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 (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 (page.mouse).wheel({ deltaX: -deltaX }); + await page.mouse.wheel({ deltaX: -deltaX }); if (i % 5 === 0) { await delay(30); }