{"version":3,"file":"timeouts.cjs","sources":["../../src/UNSAFE_Driver/timeouts.ts"],"sourcesContent":["const _timeouts = {\n  /**\n   * The window of time to wait for an element to exist in the DOM.\n   * Set to 0 to wait indefinitely.\n   * Defaults to 1000\n   */\n  elementExistsTimeout: 1000,\n  /**\n   * The window of time to wait for a remote script to complete execution.\n   * Set to 0 to wait indefinitely.\n   * Defaults to 30000\n   */\n  scriptTimeout: 30 * 1000,\n  /**\n   * The window of time with which the waitFor() function will retry the callback.\n   * Set to 0 to wait indefinitely.\n   * Defaults to 30000\n   */\n  waitForTimeout: 30 * 1000,\n  /**\n   * The delay between polling calls that waitFor() will wait before retrying the callback.\n   * Defaults to 100\n   */\n  pollingInterval: 100\n};\n\nexport type TimeoutsType = typeof _timeouts;\n\n/**\n * Set the default timeouts for the TestDriver in milliseconds.\n * Every property is optional, and can be partially set.\n * @param timeouts\n */\nexport function setTimeouts(timeouts: Partial<TimeoutsType>) {\n  Object.assign(_timeouts, timeouts);\n}\n\n/**\n * Get the default timeouts set for the TestDriver\n * @returns\n */\nexport function getTimeouts() {\n  return { ..._timeouts };\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,SAAS,GAAG;AAChB;;;;AAIG;AACH,IAAA,oBAAoB,EAAE,IAAI;AAC1B;;;;AAIG;IACH,aAAa,EAAE,EAAE,GAAG,IAAI;AACxB;;;;AAIG;IACH,cAAc,EAAE,EAAE,GAAG,IAAI;AACzB;;;AAGG;AACH,IAAA,eAAe,EAAE,GAAG;CACrB,CAAC;AAIF;;;;AAIG;AACG,SAAU,WAAW,CAAC,QAA+B,EAAA;AACzD,IAAA,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACrC,CAAC;AAED;;;AAGG;SACa,WAAW,GAAA;AACzB,IAAA,OAAO,EAAE,GAAG,SAAS,EAAE,CAAC;AAC1B;;;;;"}