(
{ page }: TestProps,
right = false,
x = 0,
y = 0,
offset = 0
)
| 148 | |
| 149 | // locator->action |
| 150 | export 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 | |
| 162 | export const clickSearchButton = async ( |
| 163 | { page }: TestProps, |
no outgoing calls
no test coverage detected