UNPKG

cypress-browser-permissions

Version:

A Cypress plugin package to handle setting common browser permissions like notifications, geolocation, images, and more

5 lines (4 loc) 511 B
/// <reference types="cypress" /> export declare function onBeforeBrowserLaunch(config: Pick<Cypress.PluginConfigOptions, 'env'>): (browser: Pick<Cypress.Browser, 'family'>, launchOptions: Cypress.BrowserLaunchOptions) => Cypress.BrowserLaunchOptions; export declare function modifyAndTransformPluginEnv({ env }: Pick<Cypress.PluginConfigOptions, 'env'>): void; export declare function cypressBrowserPermissionsPlugin(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.PluginConfigOptions;