MCPcopy Create free account

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

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

↓ 59 callersMethoddebug
* Set a debugger and log what the previous command yields. * * @see https://on.cypress.io/debug
cli/types/cypress.d.ts:1499
↓ 59 callersMethodpush
(message: T, data: AutomationCommands[T]['dataType'])
packages/server/lib/automation/automation.ts:263
↓ 59 callersMethodsend
(command: 'Page.enable' | 'Page.getFrameTree' | 'Runtime.enable' | 'Runtime.addBinding' | 'Runtime.evaluate',
packages/socket/lib/node/cdp-socket.ts:16
↓ 58 callersMethodaddEventListener
(type: K, listener: ServiceWorkerListener<K>, options?: boolean | AddEventListenerOptions)
packages/driver/cypress/e2e/e2e/service-worker.cy.ts:32
↓ 58 callersFunctionclearTimeout
()
packages/driver/src/cy/timeouts.ts:26
↓ 58 callersMethodlength
()
packages/driver/src/util/queue.ts:102
↓ 58 callersMethodstop
* Stop the Cypress App on the current machine while tests are running * @see https://on.cypress.io/cypress-stop * @example * Cypress
cli/types/cypress.d.ts:610
↓ 57 callersFunctionassert
(...args)
packages/driver/src/cy/assertions.ts:496
↓ 57 callersMethoddelete
(flag: Flag)
tooling/v8-snapshot/src/generator/snapshot-generator-flags.ts:36
↓ 56 callersFunctioncb
(resp)
packages/server/test/unit/socket.spec.ts:423
↓ 56 callersMethodlast
* Get the last DOM element within a set of DOM elements. * * @see https://on.cypress.io/last
cli/types/cypress.d.ts:1786
↓ 56 callersMethodtask
* Run a task in Node via the plugins file. * * @see https://on.cypress.io/api/task
cli/types/cypress.d.ts:2476
↓ 56 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
↓ 55 callersFunctionresolve
(depth, deferred, handler, special)
packages/driver/cypress/fixtures/jquery-3.2.1.js:3563
↓ 55 callersMethodstartSpan
(arg: startSpanOptions)
packages/telemetry/src/telemetry/index.ts:62
↓ 55 callersMethodvisitApp
* Visits the Cypress app, for Cypress-in-Cypress testing
packages/frontend-shared/cypress/support/e2e.ts:169
↓ 54 callersFunctionassertLogLength
(logs, expectedLength)
packages/driver/cypress/support/utils.ts:77
↓ 54 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:2923
↓ 51 callersFunctionresolve
( depth, deferred, handler, special )
system-tests/projects/e2e/static/jquery.js:3494
↓ 50 callersMethodcallsFake
(func: (...args: any[]) => any)
cli/types/cypress.d.ts:2925
↓ 50 callersMethodtrigger
* Trigger an event on a DOM element. * * @see https://on.cypress.io/trigger
cli/types/cypress.d.ts:2625
↓ 49 callersMethodclosest
* Get the first DOM element that matches the selector (whether it be itself or one of its ancestors). * * @see https://on.cypress.io/closest
cli/types/cypress.d.ts:1383
↓ 49 callersFunctioncmd
(command, args = '')
packages/driver/src/cypress/error_messages.ts:57
↓ 49 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:6906
↓ 49 callersMethodset
(key: K, value: LogConfig[K])
cli/types/cypress.d.ts:6995
↓ 48 callersMethodappendChild
(child: Node)
packages/driver/cypress/e2e/commands/misc.cy.ts:371
↓ 48 callersMethodattr
* Assert that the first element of the selection has the given attribute, using `.attr()`. * Optionally, assert a particular value as well. A num
cli/types/cy-chai.d.ts:109
↓ 48 callersFunctionon
( elem, types, selector, data, fn, one )
system-tests/projects/e2e/static/jquery.js:4809
↓ 46 callersMethodgetByRole
* Get every element with the given ARIA role, optionally narrowed to * those whose accessible name matches `name`. Elements hidden from the
cli/types/cypress.d.ts:1692
↓ 45 callersFunctionafter
($body: JQuery<HTMLBodyElement>)
packages/driver/src/cy/commands/screenshot.ts:406
↓ 45 callersFunctionmount
(componentOptions: any, options: any = {})
npm/vue/src/index.ts:401
↓ 45 callersMethodurl
* Get the current URL of the page that is currently active. * * @alias cy.location('href') * @see https://on.cypress.io/url
cli/types/cypress.d.ts:2720
↓ 45 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
↓ 44 callersMethodremoveAllListeners
(event?: string | symbol)
cli/types/cypress-eventemitter.d.ts:18
↓ 44 callersMethodspecsPageIsVisible
* Verifies the specs page is visible (list, no specs, or create spec page)
packages/frontend-shared/cypress/support/e2e.ts:173
↓ 43 callersMethodget
(fixture, encoding?: BufferEncoding)
packages/frontend-shared/cypress/e2e/e2ePluginSetup.ts:97
↓ 43 callersMethodresolve
()
packages/data-context/test/unit/actions/CodegenActions.spec.ts:165
↓ 42 callersMethodappend
(name: string, value: CypressHeaderValue)
packages/proxy/lib/types.ts:53
↓ 41 callersFunctioncallback
()
packages/driver/src/cy/commands/connectors.ts:343
↓ 41 callersMethodchildren
* Get the children of each DOM element within a set of DOM elements. * * @see https://on.cypress.io/children
cli/types/cypress.d.ts:1119
↓ 41 callersMethodunshift
(value: Command<any>)
packages/server/lib/browsers/cdp-protocol/cdp-command-queue.ts:99
↓ 41 callersMethodwaitForSpecToFinish
* Adapter to wait for a spec to finish in a standard way. It * * 1. Waits for 'Your tests are loading...' to not be present so that we k
npm/vite-dev-server/cypress/support/commands.ts:16
↓ 40 callersMethodaddAll
* Add one or more custom commands * @see https://on.cypress.io/api/commands
cli/types/cypress.d.ts:991
↓ 39 callersMethodfail
(err, options: { async?: boolean } = {})
packages/driver/src/cypress/cy.ts:388
↓ 39 callersMethodfocus
* Focus on a DOM element. * * @see https://on.cypress.io/focus * @example * cy.get('input').first().focus() // Focus on the first
cli/types/cypress.d.ts:1617
↓ 39 callersMethodoff
(eventName: string, cb: (event: any) => void)
packages/types/src/protocol.ts:17
↓ 38 callersFunctiongetCtx
()
packages/data-context/src/index.ts:56
↓ 37 callersFunctionfn
(express, errmsg)
packages/driver/src/cy/chai.ts:530
↓ 37 callersMethodremoveListener
(event: string | symbol, listener: (...args: any[]) => void)
cli/types/cypress-eventemitter.d.ts:16
↓ 36 callersFunctioncreateTestDataContext
(mode: DataContextConfig['mode'] = 'run', modeOptions: Partial<RunModeOptions | OpenModeOptions> = {})
packages/data-context/test/unit/helper.ts:43
↓ 36 callersFunctionexec
* Executes a given project and optionally sanitizes and checks output. * @example ``` systemTests.setup() project = Fixtures.projec
system-tests/lib/system-tests.ts:1026
↓ 36 callersMethodstubMutationResolver
* mock a mutation resolver when needed to spy on it or modify the result * @param document * @param resolver
packages/frontend-shared/cypress/support/mock-graphql/mountFragment.ts:261
↓ 35 callersMethodreply
* Control the response to this request. * If a function is passed, the request will be sent outgoing, and the function will be called * with
packages/network-interception/lib/types/external-types.ts:191
↓ 34 callersMethodisElement
* Throws an error if `subject` is not a DOM element.
cli/types/cypress.d.ts:157
↓ 34 callersMethodkill
()
system-tests/lib/tap-open.ts:184
↓ 34 callersMethodrun
* Execute a headless Cypress test run. * @see https://on.cypress.io/module-api#cypress-run * @example ``` const cypress = require(
cli/types/cypress-npm-api.d.ts:373
↓ 33 callersFunctiondedent
(html: string)
cli/lib/tap/render/dom.ts:11
↓ 33 callersMethoddocument
* Get the window.document of the page that is currently active. * * @see https://on.cypress.io/document * @example * cy.documen
cli/types/cypress.d.ts:1520
↓ 33 callersMethodrequest
* Make an HTTP GET request. * * @see https://on.cypress.io/request * @example * cy.request('http://dev.local/seed')
cli/types/cypress.d.ts:2200
↓ 33 callersMethodsnapshot
(name?: string, options?: { at?: number, next: string })
cli/types/cypress.d.ts:6997
↓ 32 callersMethodcreateServer
( app: Express, config: Cfg, onWarning: unknown, )
packages/server/lib/server-base.ts:345
↓ 32 callersFunctiongenerateMochaTestsForWin
(win, obj)
system-tests/project-fixtures/runner-specs/cypress/e2e/support/generate-mocha-tests.js:158
↓ 32 callersMethodlisten
()
packages/https-proxy/lib/server.ts:334
↓ 32 callersMethodreload
* Reload the page. * * @see https://on.cypress.io/reload * @example * cy.visit('http://localhost:3000/admin') * cy.relo
cli/types/cypress.d.ts:2157
↓ 31 callersMethodclose
()
packages/types/src/protocol.ts:138
↓ 31 callersFunctionconfig
(key: string)
packages/driver/test/unit/cypress/log.spec.ts:500
↓ 31 callersMethodis
(str)
packages/driver/src/cypress/command.ts:109
↓ 30 callersFunctiongetError
(type: Type, ...args: Parameters<AllCypressErrorObj[Type]>)
packages/errors/src/errors.ts:1827
↓ 30 callersMethodscrollIntoView
* Scroll an element into view. * * @see https://on.cypress.io/scrollintoview
cli/types/cypress.d.ts:2256
↓ 29 callersFunctiondebug
()
packages/proxy/test/unit/http/response-middleware.spec.ts:2057
↓ 29 callersMethodensureDir
(type: 'e2e' | 'fixtures' | 'support')
packages/data-context/src/actions/WizardActions.ts:387
↓ 29 callersMethodgetCookie
* Get a browser cookie by its name. * * @see https://on.cypress.io/getcookie
cli/types/cypress.d.ts:1699
↓ 29 callersMethodmerge
(log)
packages/driver/src/cypress/log.ts:774
↓ 29 callersMethodparent
* Get the parent DOM element of a set of DOM elements. * * @see https://on.cypress.io/parent
cli/types/cypress.d.ts:1954
↓ 29 callersMethodsetHeader
(name: string, value: CypressHeaderValue)
packages/proxy/lib/types.ts:54
↓ 28 callersMethodenv
* Gets multiple environment variables. * @see https://on.cypress.io/env * @example * cy.env(['KEY_1', 'KEY_2']).then(({ KEY_1, KEY_2
cli/types/cypress.d.ts:2484
↓ 28 callersMethodfixture
* Load a fixed set of data located in a file. * * @see https://on.cypress.io/fixture
cli/types/cypress.d.ts:1602
↓ 28 callersMethodgetCookies
* Get browser cookies for a domain. * * @see https://on.cypress.io/getcookies
cli/types/cypress.d.ts:1706
↓ 28 callersFunctionjQuery
(selector, context)
packages/driver/cypress/fixtures/jquery-3.2.1.js:94
↓ 28 callersMethodlocation
* Yield a plain object describing the current URL of the application under test. * * @see https://on.cypress.io/location * @example
cli/types/cypress.d.ts:1795
↓ 28 callersMethodremoveEventListener
(type: K, listener: ServiceWorkerListener<K>, options?: boolean | EventListenerOptions)
packages/driver/cypress/e2e/e2e/service-worker.cy.ts:33
↓ 27 callersMethodclone
()
packages/driver/src/cypress/command.ts:158
↓ 27 callersFunctionjoin
(char: string, ...pieces: (string | undefined)[])
packages/server/lib/util/ci_provider.ts:9
↓ 27 callersMethodscreenshot
* Take a screenshot of the application under test and the Cypress Command Log. * * @see https://on.cypress.io/screenshot * @example
cli/types/cypress.d.ts:2239
↓ 27 callersMethodshift
(queueKey: string)
packages/proxy/lib/http/util/prerequests.ts:61
↓ 27 callersMethodwriteFileInProject
(relativePath: string, data: any)
packages/data-context/src/actions/FileActions.ts:23
↓ 26 callersMethodautomation
* Fire automation:request event for internal use.
cli/types/cypress.d.ts:490
↓ 25 callersMethodclone
()
packages/server/lib/browsers/cdp-protocol/cri-client.ts:788
↓ 25 callersFunctionfetch
()
packages/driver/src/cy/commands/storage.ts:75
↓ 25 callersMethodoff
(event: E, listener: (event: CDPSocketBridgeEventPayload<E>) => void)
packages/socket/lib/node/cdp-socket.ts:18
↓ 25 callersMethodstart
(cb?: (err: Error | null, proc?: cp.ChildProcess) => void)
cli/lib/exec/xvfb.ts:91
↓ 24 callersMethodfetch
(input: RequestInfo | URL, init?: RequestInit)
packages/data-context/src/sources/UtilDataSource.ts:17
↓ 24 callersMethodgetElements
(cypressDom)
packages/app/src/runner/aut-iframe.ts:615
↓ 24 callersMethodisWindow
* Throws an error if `subject` is not a `window`.
cli/types/cypress.d.ts:167
↓ 24 callersFunctionnext
(err)
packages/driver/src/cypress/runner.ts:1735
↓ 24 callersMethodscrollTo
* Scroll to a specific position. * * @see https://on.cypress.io/scrollto
cli/types/cypress.d.ts:2263
↓ 24 callersMethodsetCookie
* Set a browser cookie. * * @see https://on.cypress.io/setcookie
cli/types/cypress.d.ts:2297
↓ 24 callersMethodstart
()
packages/server/lib/browsers/cdp-protocol/cdp-body-capture.ts:42
↓ 24 callersMethodtick
* Move the clock the specified number of `milliseconds`. * Any timers within the affected range of time will be called. * @param time Number
cli/types/cypress.d.ts:6891
↓ 23 callersMethodclock
* `cy.clock()` overrides native global functions related to time allowing them to be controlled * synchronously via [cy.tick()](https://on.cypres
cli/types/cypress.d.ts:1335
← previousnext →101–200 of 10,924, ranked by callers