@types/expect-puppeteer

  • Version 5.0.1
  • Published
  • 7.24 kB
  • 2 dependencies
  • MIT license

Install

npm i @types/expect-puppeteer
yarn add @types/expect-puppeteer
pnpm add @types/expect-puppeteer

Overview

TypeScript definitions for expect-puppeteer

Index

Functions

function expectPuppeteer

expectPuppeteer: typeof expectPuppeteer;

    function getDefaultOptions

    getDefaultOptions: () => ExpectDefaultOptions;

      function setDefaultOptions

      setDefaultOptions: (options: ExpectDefaultOptions) => void;

        Namespaces

        namespace global

        namespace global {}

          namespace global.jest

          namespace global.jest {}

            interface Matchers

            interface Matchers<R, T> {}

              method toClick

              toClick: (
              selector: string | MatchSelector,
              options?: ExpectToClickOptions
              ) => Promise<void>;

                method toDisplayDialog

                toDisplayDialog: (block: () => Promise<void>) => Promise<Dialog>;

                  method toFill

                  toFill: (
                  selector: string | MatchSelector,
                  value: string,
                  options?: ExpectTimingActions
                  ) => Promise<void>;

                    method toFillForm

                    toFillForm: (
                    selector: string | MatchSelector,
                    value: { [key: string]: any },
                    options?: ExpectTimingActions
                    ) => Promise<void>;

                      method toMatch

                      toMatch: (
                      matcher: string | RegExp,
                      options?: ExpectTimingActions
                      ) => Promise<void>;

                        method toMatchElement

                        toMatchElement: (
                        selector: string | MatchSelector,
                        options?: ExpectToClickOptions
                        ) => Promise<ElementHandle>;

                          method toSelect

                          toSelect: (
                          selector: string | MatchSelector,
                          valueOrText: string,
                          options?: ExpectTimingActions
                          ) => Promise<void>;

                            method toUploadFile

                            toUploadFile: (
                            selector: string | MatchSelector,
                            filePath: string,
                            options?: ExpectTimingActions
                            ) => Promise<void>;

                              Package Files (1)

                              Dependencies (2)

                              Dev Dependencies (0)

                              No dev dependencies.

                              Peer Dependencies (0)

                              No peer dependencies.

                              Badge

                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/expect-puppeteer.

                              • Markdown
                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/expect-puppeteer)
                              • HTML
                                <a href="https://www.jsdocs.io/package/@types/expect-puppeteer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>