MCPcopy Create free account
hub / github.com/DustinBrett/daedalOS / clickDesktop

Function clickDesktop

e2e/functions.ts:150–160  ·  view source on GitHub ↗
(
  { page }: TestProps,
  right = false,
  x = 0,
  y = 0,
  offset = 0
)

Source from the content-addressed store, hash-verified

148
149// locator->action
150export const clickDesktop = async (
151 { page }: TestProps,
152 right = false,
153 x = 0,
154 y = 0,
155 offset = 0
156): Promise<void> =>
157 page.locator(DESKTOP_SELECTOR).click({
158 button: right ? "right" : undefined,
159 ...(x || y ? { position: { x: x + offset, y: y + offset } } : {}),
160 });
161
162export const clickSearchButton = async (
163 { page }: TestProps,

Callers 4

Desktop.spec.tsFile · 0.90
Wallpaper.spec.tsFile · 0.90
StartMenu.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected