tests(increase-coverage): weekly tests PR (#4202)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-06-05 13:09:53 -04:00
1 parent f93cdf326d
commit 9f8ad28d71
27 files changed
+382 -39

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { Locator } from 'playwright';
/**
*
* @parm locator - The locator to click on
* @param points - The points to click on
* @returns Promise<void>
*/
export async function simulateClicksOnElement({
locator,
points,
}: {
locator: Locator;
points: { x: number; y: number }[];
}) {
for (const { x, y } of points) {
await locator.click({ delay: 100, position: { x, y } });
}
}