MCPcopy Create free account

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

Functions9,434 in github.com/cypress-io/cypress

↓ 885 callersMethodthen
* Enables you to work with the subject yielded from the previous command. * * @see https://on.cypress.io/then
cli/types/cypress.d.ts:2260
↓ 807 callersMethodjoin
(from, ...rest)
packages/driver/src/cypress/location.ts:243
↓ 601 callersFunctiondebug
(bool = true, options: any = {})
packages/driver/src/cypress/cookies.ts:16
↓ 596 callersFunctionrequire
(moduleName)
tooling/v8-snapshot/src/blueprint/custom-require.js:6
↓ 466 callersMethodlog
* Internal options for "cy.log" used in custom commands. * * @see https://on.cypress.io/cypress-log
cli/types/cypress.d.ts:608
↓ 445 callersMethodpush
(response)
packages/server/lib/request.ts:779
↓ 443 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:1249
↓ 440 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:1391
↓ 413 callersMethodresolve
(from, to)
packages/driver/src/cypress/location.ts:259
↓ 411 callersMethodclick
* Click a DOM element. * * @see https://on.cypress.io/click * @example * cy.get('button').click() // Click on button
cli/types/cypress.d.ts:1127
↓ 394 callersMethodget
(fullPath: string)
packages/packherd-require/src/types.ts:115
↓ 366 callersMethodget
(type: string, ...args: any[])
packages/data-context/src/util/config-file-updater.ts:13
↓ 351 callersMethodget
(attr: K)
cli/types/cypress.d.ts:6607
↓ 343 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:2172
↓ 341 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:2516
↓ 334 callersMethodforEach
(fn: (value: T) => void)
packages/proxy/lib/http/util/prerequests.ts:86
↓ 325 callersMethodon
(eventName: T, cb: (event: Event<T>[0]) => void)
packages/types/src/protocol.ts:16
↓ 285 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:1425
↓ 273 callersMethodset
(key: K, value: LogConfig[K])
cli/types/cypress.d.ts:6609
↓ 237 callersMethodmount
* Install all vue plugins and globals then mount
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:253
↓ 226 callersMethodwrap
* Yield the element passed into `.wrap()`. * * @see https://on.cypress.io/wrap * @example ``` // wraps DOM element cy.get('
cli/types/cypress.d.ts:2582
↓ 225 callersMethodstate
()
packages/reporter/src/test/test-model.ts:119
↓ 210 callersMethodstringify
()
packages/driver/src/cypress/command.ts:142
↓ 206 callersMethodslice
(index: number)
packages/driver/src/util/queue.ts:36
↓ 201 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:932
↓ 180 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:1369
↓ 170 callersFunctiondefineConfig
(config: any)
cli/lib/cypress.ts:78
↓ 162 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:2138
↓ 160 callersFunctionsetTimeout
()
packages/driver/cypress/e2e/commands/clock.cy.js:326
↓ 152 callersMethodparse
(cookie: string)
packages/server/lib/util/cookies.ts:78
↓ 145 callersMethodemit
(event: string | symbol, ...args: any[])
packages/reporter/src/lib/events.ts:24
↓ 145 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:81
↓ 141 callersMethodconfig
* Returns all configuration objects. * @see https://on.cypress.io/config * @example ``` Cypress.config() // {defaultCommandTimeo
cli/types/cypress.d.ts:477
↓ 140 callersMethodapply
* The plugin's entrypoint, called once by webpack when the compiler is initialized.
npm/webpack-dev-server/src/CypressCTWebpackPlugin.ts:125
↓ 140 callersMethodsetup
(config)
packages/app/src/runner/event-manager.ts:413
↓ 134 callersMethodend
()
packages/network-interception/lib/policies/types.ts:15
↓ 134 callersMethodsend
(command: T, params?: Command<T>['paramsType'][0])
packages/types/src/protocol.ts:15
↓ 127 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:2436
↓ 124 callersMethodfn
(...args: any[])
cli/types/cypress.d.ts:6558
↓ 123 callersMethodonce
(event: string | symbol, listener: (...args: any[]) => void)
cli/types/cypress-eventemitter.d.ts:15
↓ 121 callersMethoderror
(error: Error)
cli/types/cypress.d.ts:6605
↓ 119 callersMethoddefaults
(options: ElementSelectorDefaultsOptions)
packages/driver/src/cypress/element_selector.ts:32
↓ 116 callersMethodpick
(...args)
packages/driver/src/cypress/log.ts:415
↓ 115 callersFunctiondone
(status, nativeStatusText, responses, headers)
packages/driver/cypress/fixtures/jquery-3.2.1.js:9154
↓ 115 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:2544
↓ 111 callersFunctionresolve
(uri: string, opts?: GetModuleKeyOpts)
packages/packherd-require/src/require.ts:215
↓ 109 callersMethodcreate
()
cli/types/cypress.d.ts:6486
↓ 109 callersMethodnow
* Invoke a command synchronously, without using the command queue. * * @see https://on.cypress.io/api/custom-queries
cli/types/cypress.d.ts:1710
↓ 106 callersMethodinvoke
* Invoke a function on the previously yielded subject. * * @see https://on.cypress.io/invoke
cli/types/cypress.d.ts:1556
↓ 104 callersMethodexec
* Execute a system command. * @see https://on.cypress.io/exec
cli/types/cypress.d.ts:1397
↓ 102 callersMethodpercySnapshot
* Custom command to take a percy snapshot of the current DOM * @example cy.percySnapshot()
packages/reporter/index.d.ts:16
↓ 101 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:2529
↓ 100 callersFunctiondebug
(namespace)
packages/data-context/test/unit/data/ProjectConfigIpc-real-child-process.spec.ts:11
↓ 100 callersMethodhas
(flag: number)
tooling/v8-snapshot/src/generator/snapshot-generator-flags.ts:28
↓ 95 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:2561
↓ 94 callersMethodadd
(origFullPath: string, convertedContent: string)
packages/packherd-require/src/types.ts:117
↓ 94 callersMethodreadFile
* Read a file and yield its contents. * * @see https://on.cypress.io/readfile
cli/types/cypress.d.ts:1907
↓ 93 callersMethodon
(event: 'rerun', listener: () => void)
packages/server/lib/plugins/preprocessor.ts:19
↓ 93 callersFunctionstate
(key: string)
packages/driver/test/unit/cypress/log.spec.ts:93
↓ 89 callersMethodskip
()
packages/driver/src/cypress/command.ts:29
↓ 88 callersMethodscaffoldProject
(project: string)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:98
↓ 88 callersMethodvalue
(text: string)
cli/types/cy-chai.d.ts:8
↓ 87 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:1592
↓ 84 callersFunctionreject
(err)
packages/driver/src/cy/commands/navigation.ts:385
↓ 84 callersMethodtimeout
(ms: number, message?: string | Error)
packages/ts/typedefs/cypress-request-promise.d.ts:16
↓ 82 callersMethodupdate
(props: UpdatableTestProps, cb: UpdateTestCallback)
packages/reporter/src/test/test-model.ts:184
↓ 80 callersMethodrestore
* Restore all overridden native functions. * This is automatically called between tests, so should not generally be needed. * @see https://o
cli/types/cypress.d.ts:6514
↓ 79 callersMethodcallsFake
(func: (...args: any[]) => any)
cli/types/cypress.d.ts:2683
↓ 79 callersFunctionmount
(jsx: React.ReactNode, options: MountOptions = {}, rerenderKey?: string)
npm/react/src/mount.ts:47
↓ 78 callersFunctionstripIndent
(strings: TemplateStringsArray, ...args: any[])
packages/errors/src/stripIndent.ts:1
↓ 77 callersMethodfirst
* Get the first DOM element within a set of DOM elements. * * @see https://on.cypress.io/first
cli/types/cypress.d.ts:1441
↓ 76 callersMethodremove
()
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:101
↓ 74 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:2617
↓ 72 callersMethodfilter
* Get the DOM elements that match a specific selector. Opposite of `.not()` * * @see https://on.cypress.io/filter
cli/types/cypress.d.ts:1404
↓ 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:2490
↓ 68 callersMethodadd
* Add a custom command * @see https://on.cypress.io/api/commands
cli/types/cypress.d.ts:809
↓ 68 callersMethodmountFragment
* Mount helper for a component with a GraphQL fragment
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:257
↓ 68 callersMethodprojectPath
(name)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:103
↓ 68 callersMethodwithArgs
* Creates a spy / stub but only for calls with given arguments. * @see https://on.cypress.io/stubs-spies-and-clocks * @see https://on.cypres
cli/types/cypress.d.ts:2681
↓ 65 callersMethodaction
(eventName, ...args)
packages/driver/src/cypress.ts:503
↓ 65 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:1738
↓ 64 callersMethodreset
(options?: { resetBetweenSpecs?: boolean })
packages/network-interception/lib/runtime.ts:10
↓ 63 callersMethodassign
(...obj: any[])
packages/ts/index.d.ts:73
↓ 63 callersMethodentries
()
packages/server/lib/browsers/cdp-command-queue.ts:21
↓ 62 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:601
↓ 62 callersMethodlength
()
packages/driver/src/util/queue.ts:102
↓ 62 callersMethoduse
(middlewares: AutomationMiddleware)
packages/server/lib/automation/automation.ts:191
↓ 61 callersMethod$$
* jQuery library bound to the AUT * * @see https://on.cypress.io/$ * @example * cy.$$('p')
cli/types/cypress.d.ts:2651
↓ 60 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:981
↓ 59 callersFunctionbefore
()
system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts:26
↓ 59 callersMethodstringify
(val: any)
packages/server/lib/cloud/protocol.ts:576
↓ 58 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:1642
↓ 56 callersFunctionassert
(...args)
packages/driver/src/cy/assertions.ts:486
↓ 56 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:379
↓ 56 callersMethodremove
()
packages/data-context/src/actions/AppActions.ts:12
↓ 55 callersFunctionafter
($body: JQuery<HTMLBodyElement>)
packages/driver/src/cy/commands/screenshot.ts:406
↓ 55 callersMethoddebug
* Set a debugger and log what the previous command yields. * * @see https://on.cypress.io/debug
cli/types/cypress.d.ts:1344
↓ 55 callersMethodemit
(event: 'rerun')
packages/server/lib/plugins/preprocessor.ts:21
↓ 55 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:513
↓ 55 callersMethodoff
(eventName: string, cb: (event: any) => void)
packages/types/src/protocol.ts:17
next →1–100 of 9,434, ranked by callers