MCPcopy Create free account

hub / github.com/cypress-io/cypress / functions

Functions10,953 in github.com/cypress-io/cypress

↓ 961 callersMethodthen
* Enables you to work with the subject yielded from the previous command. * * @see https://on.cypress.io/then
cli/types/cypress.d.ts:2502
↓ 915 callersMethodjoin
(from, ...rest)
packages/driver/src/cypress/location.ts:243
↓ 813 callersMethodget
(type: string, ...args: any[])
packages/data-context/src/util/config-file-updater.ts:13
↓ 649 callersFunctiondebug
(bool = true, options: any = {})
packages/driver/src/cypress/cookies.ts:16
↓ 519 callersMethodpush
(response)
packages/server/lib/request.ts:806
↓ 470 callersMethodresolve
(from, to)
packages/driver/src/cypress/location.ts:259
↓ 444 callersMethodcontains
* Get the DOM element containing the text. * DOM elements can contain more than the desired text and still match. * Additionally, Cypress pr
cli/types/cypress.d.ts:1404
↓ 442 callersMethodlog
* Internal options for "cy.log" used in custom commands. * * @see https://on.cypress.io/cypress-log
cli/types/cypress.d.ts:602
↓ 431 callersMethodeq
* Get A DOM element at a specific index in an array of elements. * * @see https://on.cypress.io/eq * @param {Number} index A number ind
cli/types/cypress.d.ts:1551
↓ 417 callersMethodclick
* Click a DOM element. * * @see https://on.cypress.io/click * @example * cy.get('button').click() // Click on button
cli/types/cypress.d.ts:1275
↓ 390 callersMethodforEach
(fn: (value: T) => void)
packages/proxy/lib/http/util/prerequests.ts:89
↓ 379 callersMethodget
(attr: K)
cli/types/cypress.d.ts:6995
↓ 370 callersMethodvisit
* Visit the given url * * @param {string} url The URL to visit. If relative uses `baseUrl` * @param {VisitOptions} [options] Pass in an
cli/types/cypress.d.ts:2758
↓ 357 callersMethodon
(eventName: T, cb: (event: Event<T>[0]) => void)
packages/types/src/protocol.ts:16
↓ 348 callersMethodfind
Matches in document order. Throws on a selector the browser rejects.
packages/app/src/tap/types.ts:69
↓ 330 callersMethodfn
(...args: any[])
cli/types/cypress.d.ts:6952
↓ 273 callersMethodset
(nameOrHeaders: string | Record<string, CypressHeaderValue>, value?: CypressHeaderValue)
packages/proxy/lib/types.ts:53
↓ 267 callersMethodslice
(index: number)
packages/driver/src/util/queue.ts:36
↓ 266 callersMethodstub
* Replace a function, record its usage and control its behavior. * > Note: `.stub()` assumes you are already familiar with our guide: * [Stu
cli/types/cypress.d.ts:2404
↓ 263 callersMethodstringify
()
packages/driver/src/cypress/command.ts:142
↓ 253 callersMethodfilter
* Function used to filter the standard set of mocked browsers. Ignored if browsers option is provided. * Ex. * cy.findBrowsers({ * filter:
packages/frontend-shared/cypress/support/e2e.ts:79
↓ 249 callersMethodwrap
* Yield the element passed into `.wrap()`. * * @see https://on.cypress.io/wrap * @example ``` // wraps DOM element cy.get('
cli/types/cypress.d.ts:2824
↓ 237 callersMethodeach
* Iterate through an array like structure (arrays or objects with a length property). * * @see https://on.cypress.io/each
cli/types/cypress.d.ts:1527
↓ 235 callersMethodstate
()
packages/reporter/src/test/test-model.ts:121
↓ 232 callersMethodmount
* Install all vue plugins and globals then mount
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:247
↓ 214 callersMethodas
* Assign an alias for later use. Reference the alias later within a * [cy.get()](https://on.cypress.io/get) or * [cy.wait()](https://on.cypr
cli/types/cypress.d.ts:1080
↓ 213 callersFunctionsetTimeout
(..._args: unknown[])
packages/driver/cypress/e2e/commands/clock.cy.ts:381
↓ 179 callersMethodparse
(cookie: string)
packages/server/lib/automation/cookie/jar.ts:81
↓ 171 callersMethodcall
(method: string, args?: unknown[])
cli/lib/tap/tap-connection.ts:45
↓ 166 callersFunctiondefineConfig
(config: any)
cli/lib/cypress.ts:78
↓ 155 callersMethodnow
* Invoke a command synchronously, without using the command queue. * * @see https://on.cypress.io/api/custom-queries
cli/types/cypress.d.ts:1906
↓ 155 callersMethodonce
(event: string | symbol, listener: (...args: any[]) => void)
cli/types/cypress-eventemitter.d.ts:15
↓ 154 callersMethodemit
(event: string | symbol, ...args: any[])
packages/reporter/src/lib/events.ts:28
↓ 153 callersMethodsetup
(config)
packages/app/src/runner/event-manager.ts:423
↓ 149 callersMethodmatch
(hostname: string)
packages/server/lib/mtls/bridge-plan.ts:35
↓ 145 callersMethodconfig
* Returns all configuration objects. * @see https://on.cypress.io/config * @example ``` Cypress.config() // {defaultCommandTimeo
cli/types/cypress.d.ts:506
↓ 145 callersMethodend
()
packages/network-interception/lib/policies/types.ts:15
↓ 142 callersMethodspy
* Returns a new spy function. * > Note: `.spy()` assumes you are already familiar with our guide: [Stubs, Spies, and Clocks](https://on.cypress.i
cli/types/cypress.d.ts:2370
↓ 141 callersMethodwindow
* Get the window object of the page that is currently active. * * @see https://on.cypress.io/window * @example ``` cy.visit('ht
cli/types/cypress.d.ts:2786
↓ 133 callersFunctiondone
(status, nativeStatusText, responses, headers)
packages/driver/cypress/fixtures/jquery-3.2.1.js:9154
↓ 130 callersMethodtype
* Type into a DOM element. * * @see https://on.cypress.io/type * @example * cy.get('input').type('Hello, World') * // t
cli/types/cypress.d.ts:2678
↓ 124 callersMethodapply
* The plugin's entrypoint, called once by webpack when the compiler is initialized.
npm/webpack-dev-server/src/CypressCTWebpackPlugin.ts:133
↓ 121 callersFunctionresolve
(p: string)
packages/server/lib/util/spec_frame_scripts.ts:10
↓ 120 callersMethodreadFile
* Read a file and yield its contents. * * @see https://on.cypress.io/readfile
cli/types/cypress.d.ts:2139
↓ 119 callersMethodadd
(policy: NetworkPolicy)
packages/network-interception/lib/ports/driving-ports.ts:33
↓ 119 callersMethodcreate
()
cli/types/cypress.d.ts:6862
↓ 119 callersMethodinvoke
* Invoke a function on the previously yielded subject. * * @see https://on.cypress.io/invoke
cli/types/cypress.d.ts:1734
↓ 118 callersMethodon
(event: 'rerun', listener: () => void)
packages/server/lib/plugins/preprocessor.ts:20
↓ 116 callersMethoddefaults
(options: ElementSelectorDefaultsOptions)
packages/driver/src/cypress/element_selector.ts:32
↓ 116 callersMethodpick
(...args)
packages/driver/src/cypress/log.ts:625
↓ 112 callersFunctionreject
(err)
packages/driver/src/cy/commands/navigation.ts:387
↓ 110 callersMethodits
* Get a property's value on the previously yielded subject. * * @see https://on.cypress.io/its * @example * // Get the 'width'
cli/types/cypress.d.ts:1770
↓ 110 callersMethodsend
(command: T, params?: Command<T>['paramsType'][0])
packages/types/src/protocol.ts:15
↓ 108 callersMethodexec
(command: string, args?: Record<string, string>, options?: Record<string, string>)
packages/app/src/tap/contract.ts:63
↓ 106 callersMethodwait
* Wait for a number of milliseconds. * You almost never need to wait for an arbitrary period of time. * There are always better ways to expr
cli/types/cypress.d.ts:2771
↓ 103 callersMethodpercySnapshot
* Custom command to take a percy snapshot of the current DOM * @example cy.percySnapshot()
packages/reporter/index.d.ts:18
↓ 102 callersMethodentries
()
packages/server/lib/browsers/cdp-protocol/cdp-command-queue.ts:20
↓ 99 callersFunctiondebug
(namespace)
packages/data-context/test/unit/data/ProjectConfigIpc-real-child-process.spec.ts:15
↓ 99 callersMethodfilter
* Get the DOM elements that match a specific selector. Opposite of `.not()` * * @see https://on.cypress.io/filter
cli/types/cypress.d.ts:1558
↓ 99 callersMethodremove
()
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:85
↓ 97 callersMethoderror
(error: Error)
cli/types/cypress.d.ts:6993
↓ 96 callersMethodwithin
* Scopes all subsequent cy commands to within this element. * Useful when working within a particular group of elements such as a `<form>`.
cli/types/cypress.d.ts:2803
↓ 92 callersFunctionstate
(key: string)
packages/driver/test/unit/cypress/log.spec.ts:526
↓ 92 callersMethodupdate
(props: UpdatableTestProps, cb: UpdateTestCallback)
packages/reporter/src/test/test-model.ts:186
↓ 91 callersMethodreject
* Rejects every enqueued command's deferred and empties the queue. Used when * the connection reaches a terminal state, since enqueued commands are
packages/server/lib/browsers/cdp-protocol/cdp-command-queue.ts:59
↓ 89 callersFunctionresolve
( depth, deferred, handler, special )
system-tests/projects/e2e/static/jquery.js:3494
↓ 89 callersMethodtimeout
(ms: number, message?: string | Error)
packages/ts/typedefs/cypress-request-promise.d.ts:16
↓ 88 callersMethodskip
()
packages/driver/src/cypress/command.ts:29
↓ 87 callersMethodvalue
* Assert that the value of the first element of the selection contains the given value, using `.val()`. * A number is compared against the value
cli/types/cy-chai.d.ts:35
↓ 85 callersMethodscaffoldProject
(project: string)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:82
↓ 82 callersMethodfirst
* Get the first DOM element within a set of DOM elements. * * @see https://on.cypress.io/first
cli/types/cypress.d.ts:1595
↓ 80 callersFunctionmount
(jsx: React.ReactNode, options: MountOptions = {}, rerenderKey?: string)
npm/react/src/mount.ts:47
↓ 79 callersFunction$
(selector: string)
packages/driver/test/unit/dom/accessibility/roles.spec.ts:21
↓ 78 callersMethodclear
* Clear the value of an `input` or `textarea`. * An alias for `.type({selectall}{del})` * * @see https://on.cypress.io/clear
cli/types/cypress.d.ts:1129
↓ 78 callersFunctionstripIndent
(strings: TemplateStringsArray, ...args: any[])
packages/errors/src/stripIndent.ts:1
↓ 75 callersMethod$$
* jQuery library bound to the AUT * * @see https://on.cypress.io/$ * @example * cy.$$('p')
cli/types/cypress.d.ts:2893
↓ 74 callersMethodorigin
* Enables running Cypress commands in a secondary origin. * @see https://on.cypress.io/origin * @example * cy.origin('example.com',
cli/types/cypress.d.ts:1934
↓ 73 callersMethodintercept
* Use `cy.intercept()` to stub and intercept HTTP requests and responses. * * @see https://on.cypress.io/intercept * @example
packages/network-interception/lib/types/external-types.ts:519
↓ 72 callersMethodstringify
(val: any)
packages/server/lib/cloud/protocol.ts:576
↓ 71 callersMethoddestroy
()
packages/types/src/studio/studio-server-types.ts:82
↓ 71 callersMethodfind
* Get the descendent DOM elements of a specific selector. * * @see https://on.cypress.io/find * @example * cy.get('.article').f
cli/types/cypress.d.ts:1579
↓ 71 callersMethodopen
* Opens Cypress GUI. Resolves with void when the * GUI is closed. * @see https://on.cypress.io/module-api#cypress-open
cli/types/cypress-npm-api.d.ts:386
↓ 70 callersMethodviewport
* Control the size and orientation of the screen for your application. * * @see https://on.cypress.io/viewport * @example * //
cli/types/cypress.d.ts:2732
↓ 69 callersMethodnext
* Get the immediately following sibling of each DOM element within a set of DOM elements. * * @see https://on.cypress.io/next
cli/types/cypress.d.ts:1820
↓ 69 callersMethodprojectPath
(name)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:87
↓ 68 callersMethodmountFragment
* Mount helper for a component with a GraphQL fragment
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:251
↓ 67 callersMethodemit
(event: 'rerun')
packages/server/lib/plugins/preprocessor.ts:22
↓ 67 callersMethodwriteFile
* Write to a file with the specified contents. * * @see https://on.cypress.io/writefile ``` cy.writeFile('path/to/message.txt', 'Hel
cli/types/cypress.d.ts:2859
↓ 66 callersFunctionbefore
()
system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts:26
↓ 66 callersMethodreset
(options?: { resetBetweenSpecs?: boolean })
packages/network-interception/lib/runtime.ts:10
↓ 65 callersMethodisBrowser
* Returns true if currently running the supplied browser name or matcher object. Also accepts an array of matchers. * @example isBrowser('chrome'
cli/types/cypress.d.ts:595
↓ 65 callersMethoduse
(middleware: InterceptMiddleware)
packages/network-interception/lib/ports/http-interception.ts:65
↓ 65 callersMethodwrite
* Adds a chunk of string data to the internal buffer. * * @param chunk The string chunk to add to the buffer
packages/stderr-filtering/lib/LineDecoder.ts:25
↓ 64 callersMethodremove
()
packages/data-context/src/actions/AppActions.ts:12
↓ 64 callersMethodreporter
* Yields the body of the reporter iframe (`#reporter-frame`) once * the reporter has mounted into it. The reporter renders into its own
packages/app/cypress/e2e/support/reporter.ts:16
↓ 64 callersMethodsend
(command: 'Page.enable' | 'Page.getFrameTree' | 'Runtime.enable' | 'Runtime.addBinding' | 'Runtime.evaluate',
packages/socket/lib/node/cdp-socket.ts:16
↓ 64 callersMethodtext
* Assert that the text of the selection contains the given text, using `.text()`. * A number is compared against the text as a string. *
cli/types/cy-chai.d.ts:24
↓ 62 callersMethodadd
* Add a custom command * @see https://on.cypress.io/api/commands
cli/types/cypress.d.ts:957
↓ 61 callersMethodaction
(eventName, ...args)
packages/driver/src/cypress.ts:496
↓ 61 callersMethodclose
* Calls underlying remote interface client close
packages/server/lib/browsers/cdp-protocol/cri-client.ts:73
next →1–100 of 10,953, ranked by callers