UNPKG

testplane

Version:

Tests framework based on mocha and wdio

30 lines (29 loc) 1.98 kB
import { BrowserPlatform, Browser as PuppeteerBrowser } from "@puppeteer/browsers"; import debug from "debug"; import type { BrowserName } from "../browser/types"; export type DownloadProgressCallback = (done: number, total?: number) => void; export declare const browserInstallerDebug: debug.Debugger; export declare const DriverName: { readonly CHROMEDRIVER: PuppeteerBrowser.CHROMEDRIVER; readonly GECKODRIVER: "geckodriver"; readonly SAFARIDRIVER: "safaridriver"; readonly EDGEDRIVER: "edgedriver"; }; export type SupportedBrowser = (typeof BrowserName)[keyof typeof BrowserName]; export type SupportedDriver = (typeof DriverName)[keyof typeof DriverName]; export declare const createBrowserLabel: (browserName: string, version: string) => string; export declare const getMilestone: (version: string | number) => string; export declare const semverVersionsComparator: (a: string, b: string) => number; export declare const normalizeChromeVersion: (version: string) => string; export declare const getBrowserPlatform: () => BrowserPlatform; export declare const getChromePlatform: (version: string) => BrowserPlatform; export declare const getRegistryPath: (envValueOverride?: string) => string; export declare const getBrowsersDir: () => string; export declare const getOsPackagesDir: (osName: string, osVersion: string) => string; export declare const getGeckoDriverDir: (driverVersion: string) => string; export declare const getEdgeDriverDir: (driverVersion: string) => string; export declare const getChromiumDriverDir: (driverVersion: string) => string; export declare const getChromeDriverDir: () => string; export declare const retryFetch: (url: Parameters<typeof fetch>[0], opts?: Parameters<typeof fetch>[1], retry?: number, retryDelay?: number) => ReturnType<typeof fetch>; export declare const downloadFile: (url: string, filePath: string) => Promise<void>; export declare const unzipFile: (zipPath: string, outputDir: string) => Promise<string>;