import { Page } from "https://deno.land/x/fresh@1.5.1/tests/deps.ts";
Emulates the idle state. If no arguments set, clears idle state emulation.
Examples
Example 1
Example 1
// set idle emulation
await page.emulateIdleState({isUserActive: true, isScreenUnlocked: false});
// do some checks here
...
// clear idle emulation
await page.emulateIdleState();