repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/jquery.ts
packages/driver/src/dom/jquery.ts
import $ from 'jquery' import _ from 'lodash' // wrap the object in jquery export function wrap (obj) { return $(obj) } const query = (selector, context) => { // @ts-ignore return new $.fn.init(selector, context) } // pull out the raw elements if this is wrapped export const unwrap = function (obj) { if (isJ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/window.ts
packages/driver/src/dom/window.ts
import $jquery from './jquery' import $document from './document' const getWindowByDocument = (doc) => { // parentWindow for IE return doc.defaultView || doc.parentWindow } const isWindow = function (obj) { try { if ($jquery.isJquery(obj)) { obj = obj[0] } return Boolean(obj && obj.window ===...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/transform.ts
packages/driver/src/dom/transform.ts
import _ from 'lodash' import $elements from './elements' import $document from './document' const { isDocument } = $document export const detectVisibility = ($el: any) => { const list = extractTransformInfoFromElements($el) if (existsInvisibleBackface(list)) { return elIsBackface(list) ? 'backface' : 'visib...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/dimensions.ts
packages/driver/src/dom/dimensions.ts
// NOTE: Non-JQuery version of getElementDimensions is at app/runner/dimensions. // This duplication of code has been created when migrating legacy runner to app. // When migrating `driver`, we might need to remove this function and use the `app` version instead. import _ from 'lodash' interface Box { offset: { top...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/blackout.ts
packages/driver/src/dom/blackout.ts
import $ from 'jquery' import $dimensions from './dimensions' function addBlackoutForElement ($body: JQuery<HTMLBodyElement>, $el: JQuery<HTMLElement>) { const dimensions = $dimensions.getElementDimensions($el) const width = dimensions.widthWithBorder const height = dimensions.heightWithBorder const top = dime...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/coordinates.ts
packages/driver/src/dom/coordinates.ts
import _ from 'lodash' import $window from './window' import $elements from './elements' import $jquery from './jquery' const getElementAtPointFromViewport = (doc: Document, x: number, y: number) => { return $elements.elementFromPoint(doc, x, y) } const isAUTFrame = (win) => { const parent = win.parent // http...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/visibility.ts
packages/driver/src/dom/visibility.ts
import _ from 'lodash' import $jquery from './jquery' import $document from './document' import $elements from './elements' import $coordinates from './coordinates' import * as $transform from './transform' const { isElement, isBody, isHTML, isOption, isOptgroup, getParent, getFirstParentWithTagName, isAncestor, isChil...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/document.ts
packages/driver/src/dom/document.ts
import $jquery from './jquery' const docNode = window.Node.DOCUMENT_NODE const docFragmentNode = window.Node.DOCUMENT_FRAGMENT_NODE //TODO: make this not allow jquery const isDocument = (obj: Node | JQuery): obj is Document => { try { let node = obj as Node if ($jquery.isJquery(obj)) { node = obj[0] ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/selection.ts
packages/driver/src/dom/selection.ts
import _ from 'lodash' import $document from './document' import $elements from './elements' import debugFn from 'debug' const debug = debugFn('cypress:driver:selection') const INTERNAL_STATE = '__Cypress_state__' const _getSelectionBoundsFromTextarea = (el) => { return { start: $elements.getNativeProp(el, 's...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/index.ts
packages/driver/src/dom/index.ts
import $jquery from './jquery' import $window from './window' import $document from './document' import $elements from './elements' import $coordinates from './coordinates' import $selection from './selection' import $visibility from './visibility' import $blackout from './blackout' import $animation from './animation'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/animation.ts
packages/driver/src/dom/animation.ts
import $ from 'jquery' function addCssAnimationDisabler ($body: JQuery<HTMLBodyElement>) { $(` <style id="__cypress-animation-disabler"> *, *:before, *:after { transition-property: none !important; animation: none !important; } </style> `).appendTo($body) } function removeCssAn...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/detached.ts
packages/driver/src/dom/elements/detached.ts
import $window from '../window' import $document from '../document' import $ from 'jquery' import $jquery from '../jquery' export const isDetached = ($el) => { return !isAttached($el) } export const isAttached = function ($el) { // if we're being given window // then these are automatically attached if ($wind...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/elementHelpers.ts
packages/driver/src/dom/elements/elementHelpers.ts
import $jquery from '../jquery' import _ from 'lodash' import type { HTMLSingleValueChangeInputElement, HTMLValueIsNumberTypeElement } from './types' const inputTypeNeedSingleValueChangeRe = /^(date|time|week|month|datetime-local)$/ const valueIsNumberTypeRe = /progress|meter|li/ export const getTagName = (el) => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/contentEditable.ts
packages/driver/src/dom/elements/contentEditable.ts
import { getNativeProp, tryCallNativeMethod } from './nativeProps' import $document from '../document' import { getTagName, isElement } from './elementHelpers' import type { HTMLContentEditableElement } from './types' // this property is the tell-all for contenteditable // should be true for elements: // - with [con...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/utils.ts
packages/driver/src/dom/elements/utils.ts
import $ from 'jquery' import _ from 'lodash' import $jquery from '../jquery' import $window from '../window' import $document from '../document' const whitespaces = /\s+/g // When multiple space characters are considered as a single whitespace in all tags except <pre>. export const normalizeWhitespaces = (elem) => {...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/shadow.ts
packages/driver/src/dom/elements/shadow.ts
import $ from 'jquery' export const isShadowRoot = (maybeRoot) => { return maybeRoot?.toString() === '[object ShadowRoot]' } export const isWithinShadowRoot = (node: HTMLElement) => { return isShadowRoot(node.getRootNode()) } // if the node has a shadow root, we must behave like // the browser and find the inner...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/complexElements.ts
packages/driver/src/dom/elements/complexElements.ts
import _ from 'lodash' import $jquery from '../jquery' import $ from 'jquery' import $document from '../document' import $window from '../window' import { getHostContenteditable, isContentEditable, isDesignModeDocumentElement } from './contentEditable' import { isInputType } from './input' import { findParent, getParen...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/input.ts
packages/driver/src/dom/elements/input.ts
import { isButton, isInput } from './elementHelpers' import { getNativeProp } from './nativeProps' import $jquery from '../jquery' import _ from 'lodash' import type { JQueryOrEl } from './types' export const isInputType = function (el: JQueryOrEl<HTMLElement>, type) { el = ([] as HTMLElement[]).concat($jquery.unwra...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/types.ts
packages/driver/src/dom/elements/types.ts
declare global { interface Window { Element: typeof Element HTMLElement: typeof HTMLElement HTMLFormElement: typeof HTMLFormElement HTMLLinkElement: typeof HTMLLinkElement HTMLScriptElement: typeof HTMLScriptElement HTMLInputElement: typeof HTMLInputElement HTMLSelectElement: typeof HTMLSe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/nativeProps.ts
packages/driver/src/dom/elements/nativeProps.ts
// rules for native methods and props // if a setter or getter or function then add a native method // if a traversal, don't import _ from 'lodash' import $window from '../window' import { isInput, isTextarea, isSelect, isButton, isSvg } from './elementHelpers' // @ts-ignore const descriptor = <T extends keyof Window...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/index.ts
packages/driver/src/dom/elements/index.ts
export * from './types' import * as Find from './find' import * as ComplexElements from './complexElements' import * as ShadowElements from './shadow' import * as ElementHelpers from './elementHelpers' import * as NativeProps from './nativeProps' import * as InputElements from './input' import * as ContentEditab...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/elements/find.ts
packages/driver/src/dom/elements/find.ts
import _ from 'lodash' import $ from 'jquery' import $document from '../document' import $jquery from '../jquery' import { getTagName } from './elementHelpers' import { isWithinShadowRoot, getShadowElementFromPoint } from './shadow' import { normalizeWhitespaces } from './utils' /** * Find Parents relative to an init...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/visibility/memoize.ts
packages/driver/src/dom/visibility/memoize.ts
export function memoize<T> (fn: (...args: any[]) => T): (...args: any[]) => T { const objIds = new WeakMap<any, number>() let nextObjId = 0 const cache = new WeakMap<any, { result: T, timestamp: number }>() function composeKey (...args: any[]): { key } { return { key: args.map((arg) => { if (...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/dom/visibility/fastIsHidden.ts
packages/driver/src/dom/visibility/fastIsHidden.ts
import $elements from '../elements' import { memoize } from './memoize' import { unwrap, wrap, isJquery } from '../jquery' import Debug from 'debug' const debug = Debug('cypress:driver:dom:visibility:fastIsHidden') const { isOption, isOptgroup, isBody, isHTML } = $elements const getBoundingClientRect = memoize((el: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/config/jquery.ts
packages/driver/src/config/jquery.ts
import JQuery from 'jquery' import { scrollTo } from './jquery.scrollto' import $dom from '../dom' // Add missing types. interface ExtendedJQueryStatic extends JQueryStatic { find: any expr: JQuery.Selectors & { filters: any } } const $: ExtendedJQueryStatic = JQuery as any $.fn.scrollTo = scrollTo // see diff...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/config/lodash.ts
packages/driver/src/config/lodash.ts
import _ from 'lodash' import { clean, count, isBlank, toBoolean } from 'underscore.string' // only export exactly what we need, nothing more! _.mixin({ clean, count, isBlank, toBoolean, }) export default _ declare module 'lodash' { interface LoDashStatic { clean: typeof clean count: typeof count ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/config/bluebird.ts
packages/driver/src/config/bluebird.ts
import Promise from 'bluebird' Promise.config({ cancellation: true, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/config/jquery.scrollto.ts
packages/driver/src/config/jquery.scrollto.ts
/*! * jQuery.scrollTo * Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler * Licensed under MIT * https://github.com/flesler/jquery.scrollTo * @projectDescription Lightweight, cross-browser and highly customizable animated scrolling with jQuery * @author Ariel Flesler * @versi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/assertions.ts
packages/driver/src/cy/assertions.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../dom' import $errUtils from '../cypress/error_utils' import type { ICypress } from '../cypress' import type { $Cy } from '../cypress/cy' // TODO // bTagOpen + bTagClosed // are duplicated in assertions.coffee const butRe = /,? but\b/ const bTag...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/jquery.ts
packages/driver/src/cy/jquery.ts
import $ from 'jquery' import $dom from '../dom' import $utils from '../cypress/utils' import type { StateFunc } from '../cypress/state' const remoteJQueryisNotSameAsGlobal = (remoteJQuery) => { return remoteJQuery && (remoteJQuery !== $) } // eslint-disable-next-line @cypress/dev/arrow-body-multiline-braces expor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/listeners.ts
packages/driver/src/cy/listeners.ts
import _ from 'lodash' import { handleInvalidEventTarget, handleInvalidAnchorTarget, GuardedEvent, GuardedAnchorEvent } from './top_attr_guards' const HISTORY_ATTRS = 'pushState replaceState'.split(' ') const HISTORY_NAV_ATTRS = 'go back forward'.split(' ') type BoundEventHandler<K extends keyof WindowEventMap> = K...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/keyboard.ts
packages/driver/src/cy/keyboard.ts
import Promise from 'bluebird' import Debug from 'debug' import _ from 'lodash' import dayjs from 'dayjs' import $errUtils from '../cypress/error_utils' import { USKeyboard } from '../cypress/UsKeyboardLayout' import $dom from '../dom' import $document from '../dom/document' import $elements, { HTMLTextLikeInputElement...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/testConfigOverrides.ts
packages/driver/src/cy/testConfigOverrides.ts
import _ from 'lodash' import $errUtils from '../cypress/error_utils' // See Test Config Overrides in ../../../../cli/types/cypress.d.ts const mochaOverrideLevel = ['restoring', 'suite', 'test'] as const export type MochaOverrideLevel = typeof mochaOverrideLevel[number] type ResolvedTestConfigOverride = { /** ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/navigation.ts
packages/driver/src/cy/navigation.ts
import _ from 'lodash' import { $Location } from '../cypress/location' export const bothUrlsMatchAndOneHasHash = (current, remote, eitherShouldHaveHash: boolean = false): boolean => { // the current has a hash or the last char of href is a hash const currentHasHash = current.hash || current.href.slice(-1) === '#' ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/timers.ts
packages/driver/src/cy/timers.ts
import type { ICypress } from '../cypress' // eslint-disable-next-line @cypress/dev/arrow-body-multiline-braces export const create = (Cypress: ICypress) => ({ reset () { return Cypress.action('app:timers:reset') }, pauseTimers (shouldPause) { return Cypress.action('app:timers:pause', shouldPause) }, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/focused.ts
packages/driver/src/cy/focused.ts
import $dom from '../dom' import $window from '../dom/window' import $elements from '../dom/elements' import $actionability from './actionability' import type { StateFunc } from '../cypress/state' const simulateBlurEvent = (el, win) => { // todo handle relatedTarget's per the spec const focusoutEvt = new FocusEven...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/top_attr_guards.ts
packages/driver/src/cy/top_attr_guards.ts
import $elements from '../dom/elements' const invalidTargets = new Set(['_parent', '_top']) export type GuardedEvent = Event & {target: HTMLFormElement | HTMLAnchorElement} /** * Guard against target being set to something other than blank or self, while trying * to preserve the appearance of having the correct ta...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/location.ts
packages/driver/src/cy/location.ts
import { $Location, LocationObject } from '../cypress/location' import type { StateFunc } from '../cypress/state' import $utils from '../cypress/utils' const getRemoteLocationFromCrossOriginWindow = (autWindow: Window): Promise<LocationObject> => { return new Promise((resolve, reject) => { const channel = new Me...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/snapshots_css.ts
packages/driver/src/cy/snapshots_css.ts
import _ from 'lodash' import md5 from 'md5' import path from 'path' import url from 'url' import $utils from '../cypress/utils' import LimitedMap from '../util/limited_map' const anyUrlInCssRe = /url\((['"])([^'"]*)\1\)/gm const screenStylesheetRe = /(screen|all)/ const reduceText = (arr, fn) => { return _.reduce(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/chai.ts
packages/driver/src/cy/chai.ts
/* eslint-disable prefer-rest-params */ // tests in driver/cypress/integration/commands/assertions_spec.js import _ from 'lodash' import $ from 'jquery' import chai from 'chai' import sinonChai from '@cypress/sinon-chai' import $dom from '../dom' import $utils from '../cypress/utils' import { escapeBackslashes, escap...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/aliases.ts
packages/driver/src/cy/aliases.ts
import _ from 'lodash' import type { $Cy } from '../cypress/cy' import $errUtils from '../cypress/error_utils' import type { SubjectChain } from '../cypress/state' export const aliasRe = /^@.+/ export const aliasIndexRe = /\.(all|[\d]+)$/ const aliasDisplayRe = /^([@]+)/ const requestXhrRe = /\.request$/ const res...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/snapshots.ts
packages/driver/src/cy/snapshots.ts
import $ from 'jquery' import _ from 'lodash' import type { $Cy } from '../cypress/cy' import type { StateFunc } from '../cypress/state' import $dom from '../dom' import { create as createSnapshotsCSS } from './snapshots_css' import type { Log } from '../cypress/log' export const HIGHLIGHT_ATTR = 'data-cypress-el' ex...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/timeouts.ts
packages/driver/src/cy/timeouts.ts
import _ from 'lodash' import $errUtils from '../cypress/error_utils' import type { StateFunc } from '../cypress/state' // eslint-disable-next-line @cypress/dev/arrow-body-multiline-braces export const create = (state: StateFunc) => ({ timeout (ms?: number, delta: boolean = false) { const runnable = state('runna...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/retries.ts
packages/driver/src/cy/retries.ts
import _ from 'lodash' import Promise from 'bluebird' import $errUtils, { CypressError } from '../cypress/error_utils' import type { ICypress } from '../cypress' import type { $Cy } from '../cypress/cy' import type { StateFunc } from '../cypress/state' import type { Log } from '../cypress/log' const { errByPath, modi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/mouse.ts
packages/driver/src/cy/mouse.ts
import $ from 'jquery' import _ from 'lodash' import $dom from '../dom' import $elements from '../dom/elements' import $Keyboard, { Keyboard, ModifiersEventOptions } from './keyboard' import $selection from '../dom/selection' import debugFn from 'debug' import type { StateFunc } from '../cypress/state' import type { IF...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/overrides.ts
packages/driver/src/cy/overrides.ts
import _ from 'lodash' import $selection from '../dom/selection' import type { ICypress } from '../cypress' import type { StateFunc } from '../cypress/state' import type { IFocused } from './focused' import type { ISnapshots } from './snapshots' export const create = (state: StateFunc, config: ICypress['config'], foc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/video-recorder.ts
packages/driver/src/cy/video-recorder.ts
export const initVideoRecorder = async (Cypress) => { // Only start recording with getUserMedia API if we're in firefox and video-enabled and run mode. // TODO: this logic should be cleaned up or gotten from some video-specific config value if ( Cypress.isBrowser('firefox') && Cypress.config('video') ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/stability.ts
packages/driver/src/cy/stability.ts
import Promise from 'bluebird' import type { ICypress } from '../cypress' import type { StateFunc } from '../cypress/state' // eslint-disable-next-line @cypress/dev/arrow-body-multiline-braces export const create = (Cypress: ICypress, state: StateFunc) => ({ isStable: (stable: boolean = true, event: string) => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/actionability.ts
packages/driver/src/cy/actionability.ts
import _ from 'lodash' import $ from 'jquery' import Promise from 'bluebird' import debugFn from 'debug' import $dom from '../dom' import $utils from './../cypress/utils' import type { ElWindowPostion, ElViewportPostion, ElementPositioning } from '../dom/coordinates' import $elements from '../dom/elements' import $err...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/logGroup.ts
packages/driver/src/cy/logGroup.ts
import _ from 'lodash' import { $Command } from '../cypress/command' import $errUtils from '../cypress/error_utils' export default (Cypress, userOptions: Cypress.LogGroup.Config, fn: Cypress.LogGroup.ApiCallback) => { const cy = Cypress.cy const options: Cypress.InternalLogConfig = { ...userOptions, instr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/xhrs.ts
packages/driver/src/cy/xhrs.ts
import _ from 'lodash' import $errUtils from '../cypress/error_utils' import type { StateFunc } from '../cypress/state' const xhrNotWaitedOnByIndex = (state: StateFunc, alias: string, index: number, prop: 'requests' | 'responses') => { // find the last request or response // which hasnt already been used. let x...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/window.ts
packages/driver/src/cy/commands/window.ts
import _ from 'lodash' import Promise from 'bluebird' import $errUtils from '../../cypress/error_utils' import type { Log } from '../../cypress/log' import { getTitleFromAutomation } from './helpers/window' import type { StateFunc } from '../../cypress/state' import type { $Cy } from '../../cypress/cy' const viewport...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/commands.ts
packages/driver/src/cy/commands/commands.ts
import _ from 'lodash' import { $Chainer } from '../../cypress/chainer' import $errUtils from '../../cypress/error_utils' const command = function (ctx, name, ...args) { if (!ctx[name]) { const cmds = `\`${_.keys($Chainer.prototype).join('`, `')}\`` $errUtils.throwErrByPath('miscellaneous.invalid_command',...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/task.ts
packages/driver/src/cy/commands/task.ts
import _ from 'lodash' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' import $stackUtils from '../../cypress/stack_utils' import type { Log } from '../../cypress/log' import { runPrivilegedCommand } from '../../util/privileged_channel' interfa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/files.ts
packages/driver/src/cy/commands/files.ts
import _ from 'lodash' import { basename, isAbsolute, relative, resolve } from 'path' import $errUtils from '../../cypress/error_utils' import type { Log } from '../../cypress/log' import { runPrivilegedCommand } from '../../util/privileged_channel' interface InternalWriteFileOptions extends Partial<Cypress.WriteFile...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/navigation.ts
packages/driver/src/cy/commands/navigation.ts
import _ from 'lodash' import UrlParse from 'url-parse' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' import type { Log } from '../../cypress/log' import { bothUrlsMatchAndOneHasHash } from '../navigation' import { $Location, LocationObject } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/cookies.ts
packages/driver/src/cy/commands/cookies.ts
import _ from 'lodash' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' const COOKIE_PROPS = 'name value path secure hostOnly httpOnly expiry domain sameSite'.split(' ') function pickCookieProps (cookie) { if (!cookie) return cookie if (_....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/waiting.ts
packages/driver/src/cy/commands/waiting.ts
import _ from 'lodash' import Promise from 'bluebird' import { waitForRoute } from '../net-stubbing/wait-for-route' import { isDynamicAliasingPossible } from '../net-stubbing/aliasing' import ordinal from 'ordinal' import $errUtils, { type CypressError, type InternalCypressError } from '../../cypress/error_utils' impo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/clock.ts
packages/driver/src/cy/commands/clock.ts
import _ from 'lodash' import { create as createClock, Clock } from '../../cypress/clock' import $errUtils from '../../cypress/error_utils' type CyClock = Clock & { tick(ms, options?: any): number restore(options?: any): void } // create a global clock let clock: CyClock | null = null export default function (C...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/aliasing.ts
packages/driver/src/cy/commands/aliasing.ts
import _ from 'lodash' import $dom from '../../dom' import $errUtils from '../../cypress/error_utils' export default function (Commands, Cypress, cy) { Commands.addQuery('as', function asFn (alias, options = {} as Partial<Cypress.AsOptions>) { Cypress.ensure.isChildCommand(this, [alias], cy) cy.validateAlias...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/screenshot.ts
packages/driver/src/cy/commands/screenshot.ts
/* global Cypress, cy */ import _ from 'lodash' import $ from 'jquery' import bytes from 'bytes' import Promise from 'bluebird' import $Screenshot from '../../cypress/screenshot' import $dom from '../../dom' import $errUtils from '../../cypress/error_utils' import $utils from '../../cypress/utils' import type { Log } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/debugging.ts
packages/driver/src/cy/commands/debugging.ts
import _ from 'lodash' import $utils from '../../cypress/utils' const resume = (state, resumeAll = true) => { const onResume = state('onResume') // dont do anything if this isnt a fn if (!_.isFunction(onResume)) { return } // nuke this out so it can only // be called a maximum of 1 time state('onRe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/xhr.ts
packages/driver/src/cy/commands/xhr.ts
import $errUtils from '../../cypress/error_utils' export default (Commands) => { return Commands.addAll({ server () { return $errUtils.throwErrByPath('server.removed', { args: { cmd: 'server' } }) }, route (...args) { return $errUtils.throwErrByPath('route.removed', { args: { cmd: 'route' } ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/location.ts
packages/driver/src/cy/commands/location.ts
import _ from 'lodash' import $errUtils from '../../cypress/error_utils' import { getUrlFromAutomation } from './helpers/location' export function urlQueryCommand (Cypress: Cypress.Cypress, cy: Cypress.Cypress, options: Partial<Cypress.UrlOptions> = {}) { Cypress.log({ message: '', hidden: options.log === false, ti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/asserting.ts
packages/driver/src/cy/commands/asserting.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../dom' import $errUtils from '../../cypress/error_utils' const reExistence = /exist/ const reHaveLength = /length/ const onBeforeLog = (log, command, commandLogId) => { log.set('commandLogId', commandLogId) const previousLogInstance = c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/fixtures.ts
packages/driver/src/cy/commands/fixtures.ts
import _ from 'lodash' import Promise from 'bluebird' import { basename, extname, sep } from 'path' import $errUtils from '../../cypress/error_utils' const NULL_SEP = '\u0000' const clone = (obj) => { if (Buffer.isBuffer(obj)) { return Buffer.from(obj) } return JSON.parse(JSON.stringify(obj)) } /** * Gi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/agents.ts
packages/driver/src/cy/commands/agents.ts
import _ from 'lodash' import sinon from 'sinon' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' type Counts = { spy: number stub: number children: Record<string, number> } let counts: Counts | null = null sinon.setFormatter($utils.str...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/traversals.ts
packages/driver/src/cy/commands/traversals.ts
import _ from 'lodash' import $dom from '../../dom' import $elements from '../../dom/elements' import { resolveShadowDomInclusion } from '../../cypress/shadow_dom_utils' import { subjectChainToString } from '../../cypress/error_messages' type TraversalOptions = Partial<Cypress.Loggable & Cypress.Timeoutable & Cypress...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/misc.ts
packages/driver/src/cy/commands/misc.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../dom' import $errUtils from '../../cypress/error_utils' import type { Log } from '../../cypress/log' interface InternalWrapOptions extends Partial<Cypress.Loggable & Cypress.Timeoutable> { _log?: Log timeout: number } export default (Co...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/index.ts
packages/driver/src/cy/commands/index.ts
import * as Actions from './actions' import * as Agents from './agents' import * as Aliasing from './aliasing' import * as Asserting from './asserting' import * as Clock from './clock' import * as Commands from './commands' import * as Connectors from './connectors' import * as Cookies from './cookies' import *...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/exec.ts
packages/driver/src/cy/commands/exec.ts
import _ from 'lodash' import Promise from 'bluebird' import $errUtils from '../../cypress/error_utils' import type { Log } from '../../cypress/log' import { runPrivilegedCommand } from '../../util/privileged_channel' interface InternalExecOptions extends Partial<Cypress.ExecOptions> { _log?: Log cmd?: string t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/storage.ts
packages/driver/src/cy/commands/storage.ts
import _ from 'lodash' import $errUtils from '../../cypress/error_utils' import $LocalStorage from '../../cypress/local_storage' import { clearStorage, getStorage, StorageType } from './sessions/storage' type Options = Partial<Cypress.Loggable> const clearLocalStorage = (state, keys) => { const local = window.loca...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/popups.ts
packages/driver/src/cy/commands/popups.ts
const windowAlert = (Cypress, str) => { Cypress.log({ type: 'parent', name: 'alert', message: str, event: true, end: true, snapshot: true, consoleProps () { return { 'Alerted': str, } }, }) } const windowConfirmed = (Cypress, str, ret) => { Cypress.log({ ty...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/connectors.ts
packages/driver/src/cy/commands/connectors.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../dom' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' const returnFalseIfThenable = (key, ...args): boolean => { if ((key === 'then') && _.isFunction(args[0]) && _.isFunction(args[1])) { // ht...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/request.ts
packages/driver/src/cy/commands/request.ts
import _ from 'lodash' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' import { $Location } from '../../cypress/location' import { whatIsCircular } from '../../util/what-is-circular' const isOptional = (memo, val, key) => { if (_.isNull(val))...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/helpers/window.ts
packages/driver/src/cy/commands/helpers/window.ts
export class TitleNotYetAvailableError extends Error { constructor () { const message = 'document.title is not yet available' super(message) this.name = 'TitleNotYetAvailableError' } } export function getTitleFromAutomation (Cypress: Cypress.Cypress, options: Partial<Cypress.Loggable & Cypress.Timeout...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/helpers/location.ts
packages/driver/src/cy/commands/helpers/location.ts
export class UrlNotYetAvailableError extends Error { constructor () { const message = 'URL is not yet available' super(message) this.name = 'UrlNotYetAvailableError' } } export function getUrlFromAutomation (Cypress: Cypress.Cypress, options: Partial<Cypress.Loggable & Cypress.Timeoutable> = {}) { c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/mount.ts
packages/driver/src/cy/commands/actions/mount.ts
import $errUtils from '../../../cypress/error_utils' export default (Commands) => { return Commands.addAll({ mount () { return $errUtils.throwErrByPath('mount.not_implemented') }, }) }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/focus.ts
packages/driver/src/cy/commands/actions/focus.ts
import _ from 'lodash' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $elements from '../../../dom/elements' import $selection from '../../../dom/selection' import type { Log } from '../../../cypress/log' interface InternalFocusO...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/submit.ts
packages/driver/src/cy/commands/actions/submit.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' import type { Log } from '../../../cypress/log' interface InternalSubmitOptions extend...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/trigger.ts
packages/driver/src/cy/commands/actions/trigger.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' export const dispatch = (target, appWindow, eventName, options) => { const eventConstructor = options.eventConstructor ?? 'Event...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/type.ts
packages/driver/src/cy/commands/actions/type.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $elements from '../../../dom/elements' import $selection from '../../../dom/selection' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionab...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/scroll.ts
packages/driver/src/cy/commands/actions/scroll.ts
import _ from 'lodash' import $ from 'jquery' import Promise from 'bluebird' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' import type { Log } from '../../../cypress/log' const findScrol...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/select.ts
packages/driver/src/cy/commands/actions/select.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $elements from '../../../dom/elements' import type { Log } from '../../../cypress/log' const newLineRe = /\n/g interface Intern...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/click.ts
packages/driver/src/cy/commands/actions/click.ts
import _ from 'lodash' import $ from 'jquery' import Promise from 'bluebird' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' import type { ElViewportPostion } from '../../../dom/coordinates'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/press.ts
packages/driver/src/cy/commands/actions/press.ts
import type { $Cy } from '../../../cypress/cy' import type { StateFunc } from '../../../cypress/state' import { isSupportedKey, SupportedKey, AutomationCommands } from '@packages/types' import { defaults } from 'lodash' import $errUtils from '../../../cypress/error_utils' import $utils from '../../../cypress/utils' ex...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/hover.ts
packages/driver/src/cy/commands/actions/hover.ts
import $errUtils from '../../../cypress/error_utils' export default (Commands) => { return Commands.addAll({ prevSubject: 'element' }, { hover () { return $errUtils.throwErrByPath('hover.not_implemented') }, }) }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/index.ts
packages/driver/src/cy/commands/actions/index.ts
import * as Check from './check' import * as Click from './click' import * as Focus from './focus' import * as Hover from './hover' import * as Scroll from './scroll' import * as Select from './select' import * as SelectFile from './selectFile' import * as Submit from './submit' import * as Type from './type' import * ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/selectFile.ts
packages/driver/src/cy/commands/actions/selectFile.ts
import { basename } from 'path' import _ from 'lodash' import mime from 'mime' import $dom from '../../../dom' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' import { addEventCoords, dispatch } from './trigger' import { runPrivilegedCommand } from '../../../util/p...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/actions/check.ts
packages/driver/src/cy/commands/actions/check.ts
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import $elements from '../../../dom/elements' const checkOrUncheck = (Cypress, cy, type, subject, values: any[] = [], userOptions = {})...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/prompt/prompt-driver-types.ts
packages/driver/src/cy/commands/prompt/prompt-driver-types.ts
// Note: This file is owned by the cloud delivered // `cy-prompt` bundle. It is downloaded and copied to the app. // It should not be modified directly in the app. import type Emitter from 'component-emitter' interface InternalActions extends Cypress.Actions { ( eventName: 'prompt:backend:request', listener...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/prompt/index.ts
packages/driver/src/cy/commands/prompt/index.ts
import { init, loadRemote } from '@module-federation/runtime' import type { CypressInternal, CyPromptDriverDefaultShape, CyPromptMoreInfoNeededOptions } from './prompt-driver-types' import type Emitter from 'component-emitter' import $errUtils from '../../../cypress/error_utils' import $stackUtils from '../../../cypres...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/origin/util.ts
packages/driver/src/cy/commands/origin/util.ts
import _ from 'lodash' export const serializeRunnable = (runnable) => { if (!runnable) return undefined const fields = _.pick(runnable, ['id', 'type', 'title', 'parent', 'ctx', 'titlePath', '_currentRetry', '_timeout']) fields.ctx = _.pick(runnable.ctx, ['currentTest.id', 'currentTest._currentRetry', 'currentT...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/origin/unserializable_subject_proxy.ts
packages/driver/src/cy/commands/origin/unserializable_subject_proxy.ts
import $errUtils from '../../../cypress/error_utils' // These properties are required to avoid failing prior to attempting to use the subject. // If Symbol.toStringTag is passed through to the target we will not properly fail the 'cy.invoke' command. const passThroughProps = [ 'then', Symbol.isConcatSpreadable, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/origin/validator.ts
packages/driver/src/cy/commands/origin/validator.ts
import $utils from '../../../cypress/utils' import $errUtils from '../../../cypress/error_utils' import { difference, isPlainObject, isString, isFunction } from 'lodash' import type { LocationObject } from '../../../cypress/location' import { policyFromConfig, DocumentDomainInjection } from '@packages/network-tools' c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/origin/index.ts
packages/driver/src/cy/commands/origin/index.ts
import Bluebird from 'bluebird' import $errUtils from '../../../cypress/error_utils' import $stackUtils from '../../../cypress/stack_utils' import { Validator } from './validator' import { isFunction } from 'lodash' import { createUnserializableSubjectProxy } from './unserializable_subject_proxy' import { serializeRunn...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/sessions/utils.ts
packages/driver/src/cy/commands/sessions/utils.ts
import _ from 'lodash' import $ from 'jquery' import Bluebird from 'bluebird' import { $Location } from '../../../cypress/location' const getSessionDetailsByDomain = (sessState: Cypress.SessionData) => { return _.merge( _.mapValues(_.groupBy(sessState.cookies, 'domain'), (v) => ({ cookies: v })), ..._.map(se...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/sessions/origins.ts
packages/driver/src/cy/commands/sessions/origins.ts
import Bluebird from 'bluebird' import { $Location } from '../../../cypress/location' import _ from 'lodash' export async function mapOrigins (Cypress: Cypress.Cypress, origins: string | string[]): Promise<string[]> { const getOrigins = Bluebird.map( ([] as string[]).concat(origins), async (origin) => { if...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/sessions/manager.ts
packages/driver/src/cy/commands/sessions/manager.ts
import _ from 'lodash' import { getAllHtmlOrigins } from './origins' import { clearStorage, getStorage, setStorage } from './storage' const LOGS = { clearCurrentSessionData: { displayName: 'Clear cookies, localStorage and sessionStorage', consoleProps: { Event: 'Cypress.session.clearCurrentSessionData(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/driver/src/cy/commands/sessions/index.ts
packages/driver/src/cy/commands/sessions/index.ts
import _ from 'lodash' import stringifyStable from 'json-stable-stringify' import $errUtils from '../../../cypress/error_utils' import $utils from '../../../cypress/utils' import logGroup from '../../logGroup' import SessionsManager from './manager' import { getConsoleProps, navigateAboutBlank, SESSION_STEPS, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false