Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/calcite-components/src/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ export async function getElementXY(
* Note that this util should only be used for test debugging purposes and not be included in a test.
* Based on https://github.com/puppeteer/puppeteer/issues/4378#issuecomment-499726973
*
* @example
* import { visualizeMouseCursor } from "../../tests/utils";
*
* const page = await newE2EPage();
* await page.setContent(`<calcite-tooltip>Content</calcite-tooltip>`);
*
* await visualizeMouseCursor(page);
* await page.waitForChanges();
*
* @param {E2EPage} page - the e2e page
*/
export async function visualizeMouseCursor(page: E2EPage): Promise<void> {
Expand Down