import { Webdriver } from 'mugshot'; /** * Help the tests set up the environment. * * This is different from {@link Webdriver} because these methods are only * needed by the tests. */ export interface WebdriverTestSetup { /** * Navigate to an URL. */ url: (path: string) => Promise; } export interface WebdriverContractTest { name: string; /** * Run the test which will throw an `AssertionError` on failure. * * @param client The client you're adapting. It will be used to navigate to * a test fixture. * @param adapter The client adapter. */ run: (client: WebdriverTestSetup, adapter: Webdriver) => Promise; } export declare enum Fixture { animations = "animations", rect = "rect", rectInvisible = "rect-invisible", rectMultiple = "rect-multiple", rectScroll = "rect-scroll", rgby = "rgby", simple = "simple", simple2 = "simple2" } export declare function loadFixture(client: WebdriverTestSetup, adapter: Webdriver, name: Fixture): Promise; export declare const webdriverExecuteContractTests: WebdriverContractTest[]; export declare const webdriverViewportContractTests: WebdriverContractTest[]; export declare const webdriverGetElementRectContractTests: WebdriverContractTest[]; export declare const webdriverTakeScreenshotContractTests: WebdriverContractTest[]; /** * Contract tests for the {@link Webdriver} interface. * * Each key represents a suite of tests. Check the docs for each to understand * their scope. */ export declare const webdriverContractSuites: Record;