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/app/cypress/e2e/cypress-in-cypress.cy.ts
packages/app/cypress/e2e/cypress-in-cypress.cy.ts
import type { ReceivedCypressOptions } from '@packages/types' import type { DraggablePanel } from '../../src/runner/useRunnerStyle' const testingTypes = ['component', 'e2e'] as const const dragHandleToClientX = (panel: DraggablePanel, x: number) => { return cy.get(`[data-cy="${panel}ResizeHandle"]`).trigger('moused...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/top-nav.cy.ts
packages/app/cypress/e2e/top-nav.cy.ts
import type { SinonStub } from 'sinon' import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import { CYPRESS_REMOTE_MANIFEST_URL, NPM_CYPRESS_REGISTRY_URL } from '@packages/types' import type Sinon from 'sinon' import { dayjs } from '../../src/runs/utils/day' import { cyBrowserMozillaFirefoxX1...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/reporter_header.cy.ts
packages/app/cypress/e2e/reporter_header.cy.ts
describe('Reporter Header', () => { context('Specs Shortcut', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') cy.startAppServer() cy.visitApp() cy.specsPageIsVisible() cy.contains('dom-content.spec').click() cy.wait...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/debug.cy.ts
packages/app/cypress/e2e/debug.cy.ts
import type { OpenFileInIdeQuery } from '../../src/generated/graphql-test' import RelevantRunsDataSource_RunsByCommitShas from '../fixtures/gql-RelevantRunsDataSource_RunsByCommitShas.json' import DebugDataPassing from '../fixtures/debug-Passing/gql-Debug.json' import DebugDataFailing from '../fixtures/debug-Failing/gq...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_switcher.cy.ts
packages/app/cypress/e2e/specs_list_switcher.cy.ts
describe('App: Spec List Testing Type Switcher', () => { context('e2e unconfigured', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress', ['--component']) cy.startAppServer('component') cy.withCtx(async (ctx, o) => { const confi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/sidebar_navigation.cy.ts
packages/app/cypress/e2e/sidebar_navigation.cy.ts
import type { SinonStub } from 'sinon' describe('Sidebar Navigation', { viewportWidth: 1280 }, () => { context('accessibility', () => { beforeEach(() => { cy.scaffoldProject('todos') cy.openProject('todos') cy.startAppServer() cy.visitApp() cy.specsPageIsVisible() cy.contains(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/cypress-in-cypress-run-mode.cy.ts
packages/app/cypress/e2e/cypress-in-cypress-run-mode.cy.ts
import { CY_IN_CY_SIMULATE_RUN_MODE } from '@packages/types' import type { ReceivedCypressOptions } from '@packages/types' describe('Cypress In Cypress - run mode', { viewportWidth: 1200 }, () => { it('e2e run mode spec runner header is correct', () => { cy.scaffoldProject('cypress-in-cypress') cy.findBrowse...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/settings.cy.ts
packages/app/cypress/e2e/settings.cy.ts
import type { SinonStub } from 'sinon' const SidebarSettingsLinkSelector = '[data-cy="sidebar-link-settings-page"]' const isWindows = Cypress.platform === 'win32' describe('App: Settings', () => { before(() => { cy.scaffoldProject('todos', { timeout: 50 * 1000 }) }) beforeEach(() => { cy.openProject('t...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/cypress-in-cypress-e2e.cy.ts
packages/app/cypress/e2e/cypress-in-cypress-e2e.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' // import { snapshotAUTPanel } from './support/snapshot-aut-panel' import { getPathForPlatform } from '../../src/paths' describe('Cypress In Cypress E2E', { viewportWidth: 1500, defaultCommandTimeout: 10000 }, () => { beforeEach(() => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/test-isolation.cy.ts
packages/app/cypress/e2e/test-isolation.cy.ts
describe('Test Isolation', () => { it('fires events in the right order with the right arguments - open mode', () => { cy.scaffoldProject('cypress-in-cypress') cy.findBrowsers() cy.openProject('cypress-in-cypress') cy.startAppServer() cy.visitApp(`/specs/runner?file=cypress/e2e/test-isolation.spec...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_latest_runs.cy.ts
packages/app/cypress/e2e/specs_list_latest_runs.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import type { CloudRunStatus } from '@packages/frontend-shared/src/generated/graphql' function specRowSelector (specFileName: string) { return `[data-cy-row="${specFileName}"]` } function dotSelector (specFileName: string, dotNumber: 0 |...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs.cy.ts
packages/app/cypress/e2e/specs.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import type { SinonStub } from 'sinon' import { getPathForPlatform } from '../../src/paths' describe('App: Specs', () => { describe('Testing Type: E2E', () => { context('js project with default spec pattern', () => { beforeEach(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_actual_git_repo.cy.ts
packages/app/cypress/e2e/specs_list_actual_git_repo.cy.ts
describe('Spec List - Last updated with git info', () => { let projectRoot: string beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') .then((projectPath) => { projectRoot = projectPath cy.task('initGitRepoForTestProject', projectPath) cy.openProject('cypress-in-cypress') cy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runs.cy.ts
packages/app/cypress/e2e/runs.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import type { SinonStub } from 'sinon' function moveToRunsPage (): void { cy.findByTestId('sidebar-link-runs-page').click() cy.findByTestId('app-header-bar').findByText('Runs').should('be.visible') cy.findByTestId('runs-container').s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/create-from-component.cy.ts
packages/app/cypress/e2e/create-from-component.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import { getPathForPlatform } from '../../src/paths' function validateCreateFromVueComponentCard (beforeEachFn: () => void, expectedSpecPath: string) { beforeEach(beforeEachFn) it('Shows create from component card for Vue projects', ()...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_no_git_repo.cy.ts
packages/app/cypress/e2e/specs_list_no_git_repo.cy.ts
describe('Spec List - Last updated with no git info', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') cy.startAppServer('e2e') cy.visitApp() cy.specsPageIsVisible() }) // TODO: fix flaky test https://github.com/cypress-io/cypress/issues...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_component.cy.ts
packages/app/cypress/e2e/specs_list_component.cy.ts
import { getPathForPlatform } from '../../src/paths' describe('App: Spec List (Component)', () => { beforeEach(() => { cy.scaffoldProject('component-tests') cy.openProject('component-tests', ['--component']) cy.startAppServer('component') cy.visitApp() cy.specsPageIsVisible() }) it('opens sp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_flaky.cy.ts
packages/app/cypress/e2e/specs_list_flaky.cy.ts
describe('App: Spec List - Flaky Indicator', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') cy.startAppServer('e2e') cy.loginUser() cy.withCtx((ctx, o) => { // Must have a cloud project ID in order to fetch flaky data o.sinon.s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/specs_list_e2e.cy.ts
packages/app/cypress/e2e/specs_list_e2e.cy.ts
import { getPathForPlatform } from '../../src/paths' describe('App: Spec List (E2E)', () => { const launchApp = (specFilter?: string) => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') cy.startAppServer('e2e', { // we can't use skipMockingPrompts when we mock saved s...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/cypress-origin-communicator.cy.ts
packages/app/cypress/e2e/cypress-origin-communicator.cy.ts
describe('Cypress In Cypress Origin Communicator', () => { describe('primary origin memory leak prevention', () => { let removeAllListenersSpy beforeEach(() => { removeAllListenersSpy = undefined cy.scaffoldProject('cypress-in-cypress') cy.findBrowsers() cy.openProject('cypress-in-cyp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/support/execute-spec.ts
packages/app/cypress/e2e/support/execute-spec.ts
import { shouldHaveTestResults } from '../runner/support/spec-loader' export interface ExpectedResults { passCount?: number | string failCount?: number | string pendingCount?: number | string } declare global { namespace Cypress { interface Chainable { /** * Adapter to wait for a spec to fini...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/support/e2eSupport.ts
packages/app/cypress/e2e/support/e2eSupport.ts
import '@packages/frontend-shared/cypress/support/e2e' import 'cypress-real-events/support' import './execute-spec' Cypress.on('window:before:load', (win) => { // Can set this in a spec-by-spec basis to 'true' to use // graphql over fetch instead of web sockets. // This allows you to intercept GraphQL with `cy.i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/support/snapshot-aut-panel.ts
packages/app/cypress/e2e/support/snapshot-aut-panel.ts
export const snapshotAUTPanel = (name) => { const hideEl = ($el) => { $el.attr('style', 'display: none !important') } cy.percySnapshot(name, { // @ts-ignore width: 536, elementOverrides: { '[data-cy=sidebar]': hideEl, '[data-cy="reporter-panel"]': hideEl, '[data-cy="specs-list-p...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/subscriptions/configChange-subscription.cy.ts
packages/app/cypress/e2e/subscriptions/configChange-subscription.cy.ts
function updateProjectIdInCypressConfig (value: string) { return cy.withCtx(async (ctx, o) => { let config = await ctx.actions.file.readFileInProject('cypress.config.js') config = config.replace(`projectId: 'abc123'`, `projectId: '${o.value}'`) await ctx.actions.file.writeFileInProject('cypress.config.js...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/subscriptions/authChange-subscription.cy.ts
packages/app/cypress/e2e/subscriptions/authChange-subscription.cy.ts
describe('authChange subscription', () => { beforeEach(() => { }) const AUTHED_USER = { name: 'Test User', email: 'test@example.com', authToken: 'test-1234', } const setActiveUser = () => { cy.withCtx((ctx, o) => { ctx.update((d) => { d.user = o.AUTHED_USER }) }, { AU...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/subscriptions/errorWarningChange-subscription.cy.ts
packages/app/cypress/e2e/subscriptions/errorWarningChange-subscription.cy.ts
describe('errorWarningChange subscription', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') }) function assertLoadingIntoErrorWorks (errorName: string) { cy.contains('h2', errorName).should('be.visible') cy.contains('[role="alert"]', 'Loadi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/subscriptions/createCloudOrgModal-subscription.cy.ts
packages/app/cypress/e2e/subscriptions/createCloudOrgModal-subscription.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import type { SinonStub } from 'sinon' describe('CreateCloudOrgModalSubscription', { viewportWidth: 1200 }, () => { beforeEach(() => { cy.scaffoldProject('component-tests') cy.openProject('component-tests', ['--component']) c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/subscriptions/specChange-subscription.cy.ts
packages/app/cypress/e2e/subscriptions/specChange-subscription.cy.ts
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import { getPathForPlatform } from '../../../src/paths' describe('specChange subscription', () => { beforeEach(() => { cy.scaffoldProject('cypress-in-cypress') cy.openProject('cypress-in-cypress') cy.startAppServer() cy.vi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-ui.cy.ts
packages/app/cypress/e2e/studio/studio-ui.cy.ts
import { launchStudio, loadProjectAndRunSpec } from './helper' import pDefer from 'p-defer' describe('Cypress Studio - UI and Panel Management', () => { it('closes studio panel when clicking studio button (from the cloud)', () => { launchStudio() cy.findByTestId('studio-panel').should('be.visible') cy.f...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/helper.ts
packages/app/cypress/e2e/studio/helper.ts
import type { ProjectFixtureDir } from '@tooling/system-tests' export function loadProjectAndRunSpec ({ projectName = 'experimental-studio' as ProjectFixtureDir, specName = 'spec.cy.js', cliArgs = [''], specSelector = 'data-cy-row' } = {}) { cy.viewport(1500, 1000) cy.scaffoldProject(projectName) cy.openProject...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-assertions.cy.ts
packages/app/cypress/e2e/studio/studio-assertions.cy.ts
import { launchStudio } from './helper' describe('Cypress Studio - Assertions and Right-Click Menu', () => { it('updates an existing test with assertions', () => { launchStudio() cy.waitForSpecToFinish() cy.getAutIframe().within(() => { cy.get('#increment').rightclick().then(() => { cy.ge...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-basic.cy.ts
packages/app/cypress/e2e/studio/studio-basic.cy.ts
import { launchStudio, loadProjectAndRunSpec, assertClosingPanelWithoutChanges, incrementCounter } from './helper' describe('Cypress Studio - Basic Functionality', () => { it('does not display the launch studio button when test is pending', () => { loadProjectAndRunSpec({ specName: 'skipped.cy.js' }) cy.con...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-navigation.cy.ts
packages/app/cypress/e2e/studio/studio-navigation.cy.ts
import { launchStudio, loadProjectAndRunSpec, incrementCounter, inputNewTestName } from './helper' describe('Cypress Studio - Navigation and URL Management', () => { it('does not re-enter studio mode when changing pages and then coming back', () => { launchStudio() // go to the runs page cy.findByTestId(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-error-handling.cy.ts
packages/app/cypress/e2e/studio/studio-error-handling.cy.ts
import { loadProjectAndRunSpec } from './helper' describe('Cypress Studio - Error Handling and Retry Logic', () => { describe('failing to load studio and retrying', () => { it('displays error panel when studio bundle fails to load', () => { // Intercept the studio bundle request and make it fail cy.i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-limitations.cy.ts
packages/app/cypress/e2e/studio/studio-limitations.cy.ts
describe('Cypress Studio - Limitations', () => { it('does not show the studio button in component testing mode', () => { // Load project in component testing mode cy.scaffoldProject('experimental-studio') cy.openProject('experimental-studio', ['--component']) cy.startAppServer('component') cy.visi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-new-tests.cy.ts
packages/app/cypress/e2e/studio/studio-new-tests.cy.ts
import { launchStudio, loadProjectAndRunSpec, incrementCounter, inputNewTestName } from './helper' describe('Cypress Studio - New Test Creation', () => { it('does not enter single test mode when creating a new test', () => { launchStudio({ specName: 'spec-w-multiple-tests.cy.js', createNewTestFromSuite: true }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/studio/studio-state-management.cy.ts
packages/app/cypress/e2e/studio/studio-state-management.cy.ts
import { launchStudio, incrementCounter } from './helper' describe('Cypress Studio - State Management', () => { it('exits studio mode if the spec is removed on the file system', () => { launchStudio() incrementCounter(0) cy.get('.cm-line').should('contain.text', `cy.get('#increment').click();`) //...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/runner.experimentalRetries.mochaEvents.cy.ts
packages/app/cypress/e2e/runner/runner.experimentalRetries.mochaEvents.cy.ts
import { runSpec } from './support/spec-loader' import { runCypressInCypressMochaEventsTest } from './support/mochaEventsUtils' /** * The mochaEvent tests require a spec to be loaded and executed within an inner Cypress context. * The spec must load and execute within the duration of the Cypress command timeout. * ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/runner-ct.justInTimeCompile.cy.ts
packages/app/cypress/e2e/runner/runner-ct.justInTimeCompile.cy.ts
import type { fixtureDirs } from '@tooling/system-tests' type ProjectDirs = typeof fixtureDirs const JIT_DIR: ProjectDirs[number] = 'justInTimeCompile' const PROJECTS: {bundler: 'vite' | 'webpack'}[] = [ // when running for vite, justInTimeCompile=true is set but is a no-op for vite since JIT compiling is not supp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-vite.errors.cy.ts
packages/app/cypress/e2e/runner/reporter-ct-vite.errors.cy.ts
import { generateCtErrorTests } from './reporter-ct-generator' generateCtErrorTests('Vite', 'cypress-vite.config.js')
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/ui-states.cy.ts
packages/app/cypress/e2e/runner/ui-states.cy.ts
import { snapshotReporter } from './support/snapshot-reporter' import { loadSpec } from './support/spec-loader' describe('src/cypress/runner ui states', { retries: 0, defaultCommandTimeout: 600000 }, () => { beforeEach(() => { cy.viewport(1000, 1500) }) it('hooks', () => { loadSpec({ filePath: 'ru...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts
packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts
import type { fixtureDirs } from '@tooling/system-tests' type ProjectDirs = typeof fixtureDirs const PROJECTS: {projectName: ProjectDirs[number], test: string}[] = [ { projectName: 'angular-21', test: 'app.component' }, { projectName: 'react-vite-ts-configured', test: 'App.cy' }, { projectName: 'react18', test:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-webpack.errors.cy.ts
packages/app/cypress/e2e/runner/reporter-ct-webpack.errors.cy.ts
import { generateCtErrorTests } from './reporter-ct-generator' generateCtErrorTests('Webpack', 'cypress-webpack.config.js')
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter.hooks.cy.ts
packages/app/cypress/e2e/runner/reporter.hooks.cy.ts
import { loadSpec } from './support/spec-loader' describe('hooks', { // Limiting tests kept in memory due to large memory cost // of nested spec snapshots numTestsKeptInMemory: 1, }, () => { it('displays commands under correct hook', () => { loadSpec({ filePath: 'hooks/basic.cy.js', passCount: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter.errors.cy.ts
packages/app/cypress/e2e/runner/reporter.errors.cy.ts
import * as specLoader from './support/spec-loader' import { createVerify, verifyInternalFailure } from './support/verify-failures' type VerifyFunc = (specTitle: string, verifyOptions: any) => void /** * Navigates to desired error spec file within Cypress app and waits for completion. * Returns scoped verify functi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/retries.ui.cy.ts
packages/app/cypress/e2e/runner/retries.ui.cy.ts
import { loadSpec } from './support/spec-loader' import { snapshotReporter } from './support/snapshot-reporter' // Returns wrapped attempt tag found within runnable containing selector const getAttemptTag = (sel: string) => { return cy.get(`.test.runnable:contains(${sel}) .attempt-tag`) } describe('runner/cypress r...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/runner.ui.cy.ts
packages/app/cypress/e2e/runner/runner.ui.cy.ts
import { loadSpec } from './support/spec-loader' import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' describe('src/cypress/runner', () => { describe('tests finish with correct state', () => { it('simple 1 test', () => { loadSpec({ filePath: 'runner/simple-single-test.runn...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-generator.ts
packages/app/cypress/e2e/runner/reporter-ct-generator.ts
import * as specLoader from './support/spec-loader' import { createVerify, verifyInternalFailure } from './support/verify-failures' type VerifyFunc = (specTitle: string, verifyOptions: any) => void /** * Navigates to desired error spec file within Cypress app and waits for completion. * Returns scoped verify fu...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/logger.cy.ts
packages/app/cypress/e2e/runner/logger.cy.ts
import sinon from 'sinon' import { logger } from '../../../src/runner/logger' import _ from 'lodash' describe('logger', () => { let spyLog = sinon.spy(logger, 'log') afterEach(() => { // reset after each unit test spyLog.resetHistory() }) // https://github.com/cypress-io/cypress/issues/17542 it('cy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/retries.mochaEvents.cy.ts
packages/app/cypress/e2e/runner/retries.mochaEvents.cy.ts
import { runSpec } from './support/spec-loader' import { runCypressInCypressMochaEventsTest } from './support/mochaEventsUtils' /** * The mochaEvent tests require a spec to be loaded and executed within an inner Cypress context. * The spec must load and execute within the duration of the Cypress command timeout. * ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter.command_errors.cy.ts
packages/app/cypress/e2e/runner/reporter.command_errors.cy.ts
import * as specLoader from './support/spec-loader' import { createVerify } from './support/verify-failures' type VerifyFunc = (specTitle: string, verifyOptions: any) => void /** * Navigates to desired error spec file within Cypress app and waits for completion. * Returns scoped verify function to aid inner spec va...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-vite.uncaught-errors.cy.ts
packages/app/cypress/e2e/runner/reporter-ct-vite.uncaught-errors.cy.ts
import { generateCtUncaughtErrorTests } from './reporter-ct-generator' generateCtUncaughtErrorTests('Vite', 'cypress-vite.config.js')
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/pluginEvents.cy.ts
packages/app/cypress/e2e/runner/pluginEvents.cy.ts
import { getPathForPlatform } from '../../../src/paths' describe('plugin events', () => { it('supports "before:run" event', () => { let projectRoot: string cy.scaffoldProject('plugin-run-events') .then((projectPath) => { projectRoot = projectPath cy.openProject('plugin-run-events') cy...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/event-manager.cy.ts
packages/app/cypress/e2e/runner/event-manager.cy.ts
import { loadSpec, shouldHaveTestResults } from './support/spec-loader' describe('event-manager', () => { it('emits the cypress:created event when spec is rerun', () => { // load the spec initially loadSpec({ filePath: 'hooks/basic.cy.js', passCount: 2, }) cy.window().then((win) => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/cloud-debug-filter.cy.ts
packages/app/cypress/e2e/runner/cloud-debug-filter.cy.ts
describe('cloud debug test filtering', () => { beforeEach(() => { cy.scaffoldProject('cloud-debug-filter') cy.openProject('cloud-debug-filter') cy.startAppServer('e2e') }) it('works with nested suites', () => { cy.visitApp(`specs/runner?file=cypress/e2e/test.cy.js`) cy.waitForSpecToFinish() ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/ct-framework-errors.cy.ts
packages/app/cypress/e2e/runner/ct-framework-errors.cy.ts
import type { ProjectFixtureDir } from '@tooling/system-tests/' import { createVerify } from './support/verify-failures' type VerifyFunc = (specTitle: string, verifyOptions: any) => Cypress.Chainable type Options = { projectName: ProjectFixtureDir configFile: string filePath: string failCount: number passCo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/runner.mochaEvents.cy.ts
packages/app/cypress/e2e/runner/runner.mochaEvents.cy.ts
import { runSpec } from './support/spec-loader' import { runCypressInCypressMochaEventsTest } from './support/mochaEventsUtils' /** * The mochaEvent tests require a spec to be loaded and executed within an inner Cypress context. * The spec must load and execute within the duration of the Cypress command timeout. * ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/reporter-ct-webpack.uncaught-errors.cy.ts
packages/app/cypress/e2e/runner/reporter-ct-webpack.uncaught-errors.cy.ts
import { generateCtUncaughtErrorTests } from './reporter-ct-generator' generateCtUncaughtErrorTests('Webpack', 'cypress-webpack.config.js')
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/retries.experimentalRetries.mochaEvents.cy.ts
packages/app/cypress/e2e/runner/retries.experimentalRetries.mochaEvents.cy.ts
import { loadSpec, runSpec } from './support/spec-loader' import { runCypressInCypressMochaEventsTest } from './support/mochaEventsUtils' /** * The mochaEvent tests require a spec to be loaded and executed within an inner Cypress context. * The spec must load and execute within the duration of the Cypress command ti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/sessions.ui.cy.ts
packages/app/cypress/e2e/runner/sessions.ui.cy.ts
import { loadSpec } from './support/spec-loader' import { snapshotReporter } from './support/snapshot-reporter' const validateSessionsInstrumentPanel = (sessionIds: Array<string> = []) => { cy.get('.sessions-container') // there could be multiple retries where multiple session containers are rendered .first() ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/support/mochaTypes.ts
packages/app/cypress/e2e/runner/support/mochaTypes.ts
export type Timing = { hookId: `h${number}` fnDuration: number afterFnDuration: number } export type SanitizedTiming = { hookId?: `h${number}` fnDuration: 'match.number' afterFnDuration: 'match.number' } export type MochaLifecycleBase<T> = { 'test'?: T 'before each'?: T[] 'after each'?: T[] 'befor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/support/verify-failures.ts
packages/app/cypress/e2e/runner/support/verify-failures.ts
import _ from 'lodash' import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' // Assert that either the the dialog is presented or the mutation is emitted, depending on // whether the test has a preferred IDE defined. const verifyIdeOpen = ({ fileName, filePath, action, hasPreferredIde, line, c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/support/mochaEventsUtils.ts
packages/app/cypress/e2e/runner/support/mochaEventsUtils.ts
import type { CypressInCypressMochaEvent } from '../../../../src/runner/event-manager' import _ from 'lodash' import type { MochaLifecycleData, SanitizedMochaLifecycleData } from './mochaTypes' import EventEmitter from 'events' import disparity from 'disparity' const hooks = { before: ['before all', 'before each'], ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/support/spec-loader.ts
packages/app/cypress/e2e/runner/support/spec-loader.ts
import type { ProjectFixtureDir } from '@tooling/system-tests/lib/fixtureDirs' import type { ExpectedResults } from '../../support/execute-spec' export const shouldHaveTestResults = ({ passCount, failCount, pendingCount }: ExpectedResults) => { passCount = passCount || '--' failCount = failCount || '--' cy.get(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/support/snapshot-reporter.ts
packages/app/cypress/e2e/runner/support/snapshot-reporter.ts
// Takes percy snapshot with navigation/AUT/reporter hidden export const snapshotReporter = () => { let sidebarWidth = 0 cy.get('[data-cy=sidebar]') .invoke('width') .then((w) => { if (w) { sidebarWidth = w } }).then(() => { cy.get('[data-cy=reporter-panel]') }) .invoke('width') .then...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/issues/issue-18042.cy.ts
packages/app/cypress/e2e/runner/issues/issue-18042.cy.ts
import { loadSpec } from '../support/spec-loader' // https://github.com/cypress-io/cypress/issues/18042 describe('issue 18042', () => { it('Call count is shown even if cy.stub().log(false)', function () { loadSpec({ filePath: 'issues/issue-18042.cy.js', passCount: 1, }) cy.contains('Spies / ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/e2e/runner/issues/issue-9162.cy.ts
packages/app/cypress/e2e/runner/issues/issue-9162.cy.ts
import { loadSpec } from '../support/spec-loader' // https://github.com/cypress-io/cypress/issues/9162 describe('issue 9162', () => { it('tests does not hang even if there is a fail in before().', function () { loadSpec({ filePath: 'issues/issue-9162.cy.js', passCount: 0, failCount: 1, }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/component/support/ctSupport.ts
packages/app/cypress/component/support/ctSupport.ts
import { AutIframe } from '../../../src/runner/aut-iframe' import { EventManager } from '../../../src/runner/event-manager' import type { Socket } from '@packages/socket/browser/client' export const StubWebsocket = new Proxy<Socket>(Object.create(null), { get: (obj, prop) => { throw Error(`Cannot access ${String...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/component/support/index.ts
packages/app/cypress/component/support/index.ts
/// <reference path="../../../../frontend-shared/cypress/support/component.ts" /> import '@packages/frontend-shared/cypress/support/component.ts' import { registerMountFn } from '@packages/frontend-shared/cypress/support/common' import { createRouter } from '../../../src/router/router' import { createPinia } from '../...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/vitest.config.ts
packages/proxy/vitest.config.ts
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { env: { CYPRESS_INTERNAL_ENV: 'test', }, include: ['test/**/*.spec.ts'], globals: true, environment: 'node', }, })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/integration/net-stubbing.spec.ts
packages/proxy/test/integration/net-stubbing.spec.ts
import { describe, expect, beforeEach, afterEach, it, vi } from 'vitest' import { NetworkProxy } from '../../' import { netStubbingState as _netStubbingState, NetStubbingState, onNetStubbingEvent, } from '@packages/net-stubbing' import { defaultMiddleware } from '../../lib/http' import express from 'express' impo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/request-middleware.spec.ts
packages/proxy/test/unit/http/request-middleware.spec.ts
import { describe, expect, beforeEach, it, vi } from 'vitest' import _ from 'lodash' import RequestMiddleware from '../../../lib/http/request-middleware' import { testMiddleware } from './helpers' import { CypressIncomingRequest, CypressOutgoingResponse } from '../../../lib' import { HttpBuffer, HttpBuffers } from '../...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/helpers.ts
packages/proxy/test/unit/http/helpers.ts
import { HttpMiddleware, HttpStages, _runStage } from '../../../lib/http' export function testMiddleware (middleware: HttpMiddleware<any>[], ctx = {}) { const fullCtx = { debug: () => {}, req: {}, res: {}, config: {}, middleware: { 0: middleware, }, ...ctx, } const onError = ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/response-middleware.spec.ts
packages/proxy/test/unit/http/response-middleware.spec.ts
import { describe, expect, beforeEach, afterEach, it, vi, Mock, MockInstance } from 'vitest' import _ from 'lodash' import ResponseMiddleware from '../../../lib/http/response-middleware' import { debugVerbose } from '../../../lib/http' import EventEmitter from 'events' import { testMiddleware } from './helpers' import ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/index.spec.ts
packages/proxy/test/unit/http/index.spec.ts
import { describe, expect, it, beforeEach, vi, Mock } from 'vitest' import { Http, HttpMiddleware, HttpMiddlewareStacks, HttpStages, ServerCtx } from '../../../lib/http' import { BrowserPreRequest } from '../../../lib' import type CyServer from '@packages/server' describe('http', function () { describe('Http.handle'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/error-middleware.spec.ts
packages/proxy/test/unit/http/error-middleware.spec.ts
import { describe, expect, it, vi } from 'vitest' import _ from 'lodash' import ErrorMiddleware, { AbortRequest, UnpipeResponse, DestroyResponse, } from '../../../lib/http/error-middleware' import { testMiddleware, } from './helpers' describe('http/error-middleware', function () { it('exports the members in ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/service-worker-injector.spec.ts
packages/proxy/test/unit/http/util/service-worker-injector.spec.ts
import { describe, expect, it } from 'vitest' import { injectIntoServiceWorker } from '../../../../lib/http/util/service-worker-injector' describe('lib/http/util/service-worker-injector', () => { describe('injectIntoServiceWorker', () => { it('injects into the service worker', () => { const actual = inject...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/prerequests.spec.ts
packages/proxy/test/unit/http/util/prerequests.spec.ts
import { describe, expect, it, vi } from 'vitest' import { CorrelationInformation, PreRequests } from '@packages/proxy/lib/http/util/prerequests' import { BrowserPreRequest, CypressIncomingRequest } from '@packages/proxy' import { performance } from 'perf_hooks' import { ProtocolManagerShape } from '@packages/types' d...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/cookies.spec.ts
packages/proxy/test/unit/http/util/cookies.spec.ts
import { describe, expect, it } from 'vitest' import { calculateSiteContext, getSameSiteContext, shouldAttachAndSetCookies } from '../../../../lib/http/util/cookies' describe('getSameSiteContext', () => { describe('calculates the same site context correctly for', () => { const isNone = (autUrl: string, requestUr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/top-simulation.spec.ts
packages/proxy/test/unit/http/util/top-simulation.spec.ts
import { describe, expect, it, vi } from 'vitest' import { HttpMiddlewareThis } from '../../../../lib/http' import { doesTopNeedToBeSimulated } from '../../../../lib/http/util/top-simulation' describe('.doesTopNeedToBeSimulated', () => { const autUrl = 'http://localhost:8080' it('returns false when URL matches th...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/buffers.spec.ts
packages/proxy/test/unit/http/util/buffers.spec.ts
import { describe, beforeEach, expect, it } from 'vitest' import { HttpBuffers, HttpBuffer } from '../../../../lib/http/util/buffers' describe('http/util/buffers', () => { let buffers: HttpBuffers beforeEach(() => { buffers = new HttpBuffers() }) describe('#get', () => { it('returns buffer by url', (...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/regex-rewriter.spec.ts
packages/proxy/test/unit/http/util/regex-rewriter.spec.ts
import { describe, expect, it } from 'vitest' import _ from 'lodash' import { concatStream } from '@packages/network' import fs from 'fs/promises' import rp from '@cypress/request-promise' import * as regexRewriter from '../../../../lib/http/util/regex-rewriter' const original = `\ <html> <body> top1 settop ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/csp-header.spec.ts
packages/proxy/test/unit/http/util/csp-header.spec.ts
import { describe, expect, it } from 'vitest' import { generateCspDirectives, parseCspHeaders } from '../../../../lib/http/util/csp-header' const patchedHeaders = [ 'content-security-policy', 'Content-Security-Policy', 'content-security-policy-report-only', 'Content-Security-Policy-Report-Only', ] const cspDi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/service-worker-manager.spec.ts
packages/proxy/test/unit/http/util/service-worker-manager.spec.ts
import { describe, expect, it, vi } from 'vitest' import { ServiceWorkerManager, serviceWorkerClientEventHandler } from '../../../../lib/http/util/service-worker-manager' const createBrowserPreRequest = ( { url, initiatorUrl, callFrameUrl, documentUrl, isPreload, originalResourceType, hasRedirectResponse }: { url:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/test/unit/http/util/replace_stream.spec.ts
packages/proxy/test/unit/http/util/replace_stream.spec.ts
/** * This file contains test code from the `replacestream` library * (https://github.com/eugeneware/replacestream), to which the following license applies: * * Copyright (c) 2014, Eugene Ware * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/network-proxy.ts
packages/proxy/lib/network-proxy.ts
import { telemetry } from '@packages/telemetry' import { Http, ServerCtx } from './http' import type { BrowserPreRequest } from './types' import type Protocol from 'devtools-protocol' import type { ServiceWorkerClientEvent } from './http/util/service-worker-manager' export class NetworkProxy { http: Http construc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/types.ts
packages/proxy/lib/types.ts
import type { Readable } from 'stream' import type { Request, Response } from 'express' import type { ProxyTimings } from '@packages/types' import type { ResourceType } from '@packages/net-stubbing' import type { BackendRoute } from '@packages/net-stubbing/lib/server/types' import type { Protocol } from 'devtools-proto...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/index.ts
packages/proxy/lib/index.ts
export { NetworkProxy } from './network-proxy' export * from './types'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/response-middleware.ts
packages/proxy/lib/http/response-middleware.ts
import charset from 'charset' import crypto from 'crypto' import iconv from 'iconv-lite' import _ from 'lodash' import { PassThrough, Readable } from 'stream' import { URL } from 'url' import zlib from 'zlib' import { InterceptResponse } from '@packages/net-stubbing' import { concatStream, httpUtils } from '@packages/n...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/error-middleware.ts
packages/proxy/lib/http/error-middleware.ts
import errors from '@packages/errors' import type { HttpMiddleware } from '.' import type { Readable } from 'stream' import { InterceptError } from '@packages/net-stubbing' import type { Request } from '@cypress/request' // do not use a debug namespace in this file - use the per-request `this.debug` instead // availa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/request-middleware.ts
packages/proxy/lib/http/request-middleware.ts
import _ from 'lodash' import { blocked } from '@packages/network' import { InterceptRequest, SetMatchingRoutes } from '@packages/net-stubbing' import { telemetry } from '@packages/telemetry' import { isVerboseTelemetry as isVerbose } from '.' import { addCookieJarCookiesToRequest, getSameSiteContext, shouldAttachAnd...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/index.ts
packages/proxy/lib/http/index.ts
import Bluebird from 'bluebird' import chalk from 'chalk' import Debug from 'debug' import _ from 'lodash' import { errorUtils } from '@packages/errors' import { DeferredSourceMapCache } from '@packages/rewriter' import { telemetry, Span } from '@packages/telemetry' import ErrorMiddleware from './error-middleware' impo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/inject.ts
packages/proxy/lib/http/util/inject.ts
import { oneLine } from 'common-tags' import { getRunnerInjectionContents, getRunnerCrossOriginInjectionContents } from '@packages/resolve-dist' import type { SerializableAutomationCookie } from '@packages/server/lib/util/cookies' import Debug from 'debug' const debug = Debug('cypress:proxy:http:inject') interface In...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/service-worker-injector.ts
packages/proxy/lib/http/util/service-worker-injector.ts
/// <reference lib="dom" /> import type { ServiceWorkerClientEvent } from './service-worker-manager' // this should be of type ServiceWorkerGlobalScope from the webworker lib, // but we can't reference it directly because it causes errors in other packages interface ServiceWorkerGlobalScope extends WorkerGlobalScope ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/cookies.ts
packages/proxy/lib/http/util/cookies.ts
import _ from 'lodash' import type Debug from 'debug' import { URL } from 'url' import { SerializableAutomationCookie, Cookie, CookieJar, toughCookieToAutomationCookie } from '@packages/server/lib/util/cookies' import type { RequestCredentialLevel } from '../../types' import type { ResourceType } from '@packages/net-st...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/buffers.ts
packages/proxy/lib/http/util/buffers.ts
import _ from 'lodash' import debugModule from 'debug' import { removeDefaultPort } from '@packages/network-tools' import type { Readable } from 'stream' import type { IncomingMessage } from 'http' const debug = debugModule('cypress:proxy:http:util:buffers') export type HttpBuffer = { details: object originalUrl:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/ast-rewriter.ts
packages/proxy/lib/http/util/ast-rewriter.ts
import { HtmlJsRewriter, rewriteHtmlJsAsync, rewriteJsAsync } from '@packages/rewriter' import duplexify from 'duplexify' import { concatStream } from '@packages/network' import stream from 'stream' import type { SecurityOpts } from './rewriter' const pumpify = require('pumpify') const utf8Stream = require('utf8-strea...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/top-simulation.ts
packages/proxy/lib/http/util/top-simulation.ts
import type { HttpMiddlewareThis } from '../index' export const doesTopNeedToBeSimulated = <T>(ctx: HttpMiddlewareThis<T>): boolean => { const currentAUTUrl = ctx.getAUTUrl() // if the AUT url is undefined for whatever reason, return false as we do not want to complicate top simulation if (!currentAUTUrl) { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/prerequests.ts
packages/proxy/lib/http/util/prerequests.ts
import type { CypressIncomingRequest, BrowserPreRequest, BrowserPreRequestWithTimings, } from '../../types' import type { ProtocolManagerShape } from '@packages/types' import Debug from 'debug' const debug = Debug('cypress:proxy:http:util:prerequests') const debugVerbose = Debug('cypress-verbose:proxy:http:util:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/proxy/lib/http/util/regex-rewriter.ts
packages/proxy/lib/http/util/regex-rewriter.ts
import { STRIPPED_INTEGRITY_TAG } from '@packages/rewriter' import type { SecurityOpts } from './rewriter' const pumpify = require('pumpify') const { replaceStream } = require('./replace_stream') const utf8Stream = require('utf8-stream') const topOrParentEqualityBeforeRe = /((?:\bwindow\b|\bself\b)(?:\.|\[['"](?:top|...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false