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

Function triggerFullscreenDetection

e2e/functions.ts:449–458  ·  view source on GitHub ↗
({
  browserName,
  page,
}: TestProps)

Source from the content-addressed store, hash-verified

447
448// evaluate->action
449export const triggerFullscreenDetection = async ({
450 browserName,
451 page,
452}: TestProps): Promise<void> =>
453 page.evaluate((browser) => {
454 (document as DocumentWithVendorFullscreen)[
455 browser === "firefox" ? "webkitFullscreenElement" : "mozFullScreenElement"
456 ] = document.documentElement;
457 document.dispatchEvent(new Event("fullscreenchange"));
458 }, browserName);
459
460export const mockSaveFilePicker = async (
461 { page }: TestProps,

Callers 1

Window.spec.tsFile · 0.90

Calls 2

evaluateMethod · 0.45
dispatchEventMethod · 0.45

Tested by

no test coverage detected