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/src/specs/SpecsListBanners.cy.tsx
packages/app/src/specs/SpecsListBanners.cy.tsx
import { camelCase, assignIn, set } from 'lodash' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import SpecsListBanners from './SpecsListBanners.vue' import { ref } from 'vue' import type { Ref } from 'vue' import { SpecsListBannersFragment...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/RequestAccessButton.cy.tsx
packages/app/src/specs/RequestAccessButton.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { RequestAccessButton_RequestAccessDocument } from '../generated/graphql' import { RequestAccessButtonFragmentDoc } from '../generated/graphql-test' import RequestAccessButton from './Req...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/InlineSpecList.cy.tsx
packages/app/src/specs/InlineSpecList.cy.tsx
import { Specs_InlineSpecListFragment, Specs_InlineSpecListFragmentDoc, SpecFilter_SetPreferencesDocument, RunAllSpecsDocument } from '../generated/graphql-test' import InlineSpecList from './InlineSpecList.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/CreateSpecModal.cy.tsx
packages/app/src/specs/CreateSpecModal.cy.tsx
import CreateSpecModal from './CreateSpecModal.vue' import { ref } from 'vue' import { CreateSpecModalFragmentDoc, EmptyGenerator_MatchSpecFileDocument } from '../generated/graphql-test' const modalCloseSelector = '[aria-label=Close]' const triggerButtonSelector = '[data-testid=trigger]' const modalSelector = '[data-c...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecsRunAllSpecs.cy.tsx
packages/app/src/specs/SpecsRunAllSpecs.cy.tsx
import SpecsRunAllSpecs from './SpecsRunAllSpecs.vue' describe('<SpecsRunAllSpecs/>', () => { context('Correctly rendered for Specs List', () => { beforeEach(() => { cy.mount(() => { return ( <div class="flex justify-center"> <SpecsRunAllSpecs specNumber={25} directory='cypres...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/TestingTypePromo.cy.tsx
packages/app/src/specs/TestingTypePromo.cy.tsx
import TestingTypePromo from './TestingTypePromo.vue' describe('<TestingTypePromo />', () => { describe('component testing', () => { it('triggers event on button click', () => { const stub = cy.stub().as('activateTestingType') cy.mount(<TestingTypePromo testingType="component" onActivateTestingType=...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/LastUpdatedHeader.cy.tsx
packages/app/src/specs/LastUpdatedHeader.cy.tsx
import LastUpdatedHeader from './LastUpdatedHeader.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<LastUpdatedHeader />', () => { const popperContentSelector = '.v-popper__popper--shown' function mountWithProps (isGitAva...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecsList.cy.tsx
packages/app/src/specs/SpecsList.cy.tsx
import SpecsList from './SpecsList.vue' import { Specs_SpecsListFragmentDoc, SpecsListFragment, TestingTypeEnum, SpecFilter_SetPreferencesDocument } from '../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecFileItem.cy.tsx
packages/app/src/specs/SpecFileItem.cy.tsx
import SpecFileItem from './SpecFileItem.vue' describe('SpecFileItem', () => { it('renders a SpecFileItem with the base filename and extension having different highlights when not selected', () => { cy.mount(() => (<div class="bg-gray-1000 group"> <SpecFileItem fileName="Hello" extension=".spec.jsx...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecsListRowItem.cy.tsx
packages/app/src/specs/SpecsListRowItem.cy.tsx
import SpecsListRowItem from './SpecsListRowItem.vue' describe('SpecItem', () => { it('renders a SpecsListRowItem as leaf', () => { const toggleRowHandler = cy.stub() cy.mount(() => ( <SpecsListRowItem isLeaf={true} route={{ path: '/specs/runner', query: { file: '' } }} gridCol...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/NoSpecsPage.cy.tsx
packages/app/src/specs/NoSpecsPage.cy.tsx
import NoSpecsPage from './NoSpecsPage.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { NoSpecsPageFragmentDoc } from '../generated/graphql-test' const pageTitleSelector = '[data-cy=create-spec-page-title]' const pageDescription...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/InlineSpecListHeader.cy.tsx
packages/app/src/specs/InlineSpecListHeader.cy.tsx
import InlineSpecListHeader from './InlineSpecListHeader.vue' import { ref } from 'vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { defineStore } from 'pinia' describe('InlineSpecListHeader', () => { const mountWithProps = (pr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/RunStatusDots.cy.tsx
packages/app/src/specs/RunStatusDots.cy.tsx
import type { RunStatusDotsFragment } from '../generated/graphql' import RunStatusDots from './RunStatusDots.vue' import { fakeRuns } from '@packages/frontend-shared/cypress/support/mock-graphql/fakeCloudSpecRun' import { fill } from 'lodash' import type { CloudSpecRun } from '@packages/data-context/src/gen/cloud-sourc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/spec-utils.ts
packages/app/src/specs/spec-utils.ts
import fuzzySort from 'fuzzysort' import type { FoundSpec } from '@packages/types' import { ComputedRef, Ref, ref, watch } from 'vue' import _ from 'lodash' import { FuzzyFoundSpec, getPlatform } from './tree/useCollapsibleTree' export function fuzzySortSpecs <T extends FuzzyFoundSpec> (specs: T[], searchValue: string...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/CreateSpecCard.cy.tsx
packages/app/src/specs/CreateSpecCard.cy.tsx
// Anything with onClick SHOULD work, but isn't... // Defining emits for "Button.vue" removes the native handler on the // <button> element. vue-tsc just can't handle this yet. import CreateSpecCard from './CreateSpecCard.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import Doc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecNameDisplay.cy.tsx
packages/app/src/specs/SpecNameDisplay.cy.tsx
import SpecNameDisplay from './SpecNameDisplay.vue' describe('<SpecNameDisplay />', () => { it('should display spec name information', () => { cy.mount(<SpecNameDisplay specFileName="myFileName" specFileExtension=".cy.tsx" />) cy.findByText('myFileName').should('be.visible') cy.findByText('.cy.tsx').sho...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecsListHeader.cy.tsx
packages/app/src/specs/SpecsListHeader.cy.tsx
import SpecsListHeader from './SpecsListHeader.vue' import { defineComponent, ref, h } from 'vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const buttonSelector = '[data-cy=new-spec-button]' const mountWithSearchRef = () => { const ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/SpecHeaderCloudDataTooltip.cy.tsx
packages/app/src/specs/SpecHeaderCloudDataTooltip.cy.tsx
import { SpecHeaderCloudDataTooltipFragmentDoc } from '../generated/graphql-test' import SpecHeaderCloudDataTooltip from './SpecHeaderCloudDataTooltip.vue' import { get, set } from 'lodash' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' impo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/CreateOrganizationBanner.cy.tsx
packages/app/src/specs/banners/CreateOrganizationBanner.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import CreateOrganizationBanner from './CreateOrganizationBanner.vue' import { TrackedBanner_RecordBannerSeenDocument } from '../../generated/graphql' describe('<CreateOrganizationBanner />', (...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/EnableNotificationsBanner.cy.tsx
packages/app/src/specs/banners/EnableNotificationsBanner.cy.tsx
import { EnableNotificationsBanner_SetPreferencesDocument, EnableNotificationsBanner_ShowNotificationDocument } from '../../generated/graphql-test' import EnableNotificationsBanner from './EnableNotificationsBanner.vue' import { dayjs } from '../../runs/utils/day.js' describe('EnableNotificationsBanner', () => { con...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/TrackedBanner.cy.tsx
packages/app/src/specs/banners/TrackedBanner.cy.tsx
import TrackedBanner from './TrackedBanner.vue' import { ref, reactive } from 'vue' import { TrackedBanner_RecordBannerSeenDocument, TrackedBanner_SetProjectStateDocument } from '../../generated/graphql' describe('<TrackedBanner />', () => { it('should pass through props and child content', () => { cy.mount({ re...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/ConnectProjectBanner.cy.tsx
packages/app/src/specs/banners/ConnectProjectBanner.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import ConnectProjectBanner from './ConnectProjectBanner.vue' import { TrackedBanner_RecordBannerSeenDocument } from '../../generated/graphql' describe('<ConnectProjectBanner />', () => { con...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/RecordBanner.cy.tsx
packages/app/src/specs/banners/RecordBanner.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import RecordBanner from './RecordBanner.vue' import { TrackedBanner_RecordBannerSeenDocument } from '../../generated/graphql' describe('<RecordBanner />', () => { it('should render expected ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx
packages/app/src/specs/banners/ComponentTestingAvailableBanner.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import ComponentTestingAvailableBanner from './ComponentTestingAvailableBanner.vue' import { TrackedBanner_RecordBannerSeenDocument, TrackedBanner_SetProjectStateDocument } from '../../generated...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/index.ts
packages/app/src/specs/banners/index.ts
export { default as LoginBanner } from './LoginBanner.vue' export { default as CreateOrganizationBanner } from './CreateOrganizationBanner.vue' export { default as ConnectProjectBanner } from './ConnectProjectBanner.vue' export { default as RecordBanner } from './RecordBanner.vue' export { default as ComponentTesti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/banners/LoginBanner.cy.tsx
packages/app/src/specs/banners/LoginBanner.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import LoginBanner from './LoginBanner.vue' import { TrackedBanner_RecordBannerSeenDocument } from '../../generated/graphql' describe('<LoginBanner />', () => { const cohortOption = { cohort:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/switcher/TestingTypeSwitcher.cy.tsx
packages/app/src/specs/switcher/TestingTypeSwitcher.cy.tsx
import TestingTypeSwitcher from './TestingTypeSwitcher.vue' describe('<TestingTypeSwitcher />', () => { beforeEach(() => { const stub = cy.stub().as('selectTestingType') cy.mount(<TestingTypeSwitcher viewedTestingType="e2e" isCtConfigured isE2eConfigured={false} onSelectTestingType={...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/FileChooser.cy.tsx
packages/app/src/specs/generators/FileChooser.cy.tsx
import FileChooser from './FileChooser.vue' import { ref } from 'vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import data from '../../../cypress/fixtures/FileChooser.json' import type { FileParts } from '@packages/data-context/src/ge...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/GeneratorsCommon.tsx
packages/app/src/specs/generators/GeneratorsCommon.tsx
import type { TestingType } from '@packages/types' export const filters = { matchesCT: (testingType?: TestingType | null) => testingType === 'component', matchesE2E: (testingType?: TestingType | null) => testingType === 'e2e', }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/FileList.cy.tsx
packages/app/src/specs/generators/FileList.cy.tsx
import FileList from './FileList.vue' import data from '../../../cypress/fixtures/FileList.json' import { ref, Ref } from 'vue' import type { FileListItemFragment } from '../../generated/graphql-test' const difficultFile = { baseName: '[...all].vue', fileExtension: '.vue', } const noResultsSlot = () => <div data-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/ExpandableFileChooser.cy.tsx
packages/app/src/specs/generators/ExpandableFileChooser.cy.tsx
import ExpandableFileChooser from './ExpandableFileChooser.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import data from '../../../cypress/fixtures/FileChooser.json' import type { FileParts } from '@packages/data-context/src/gen/graph...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/ExpandableFileList.cy.tsx
packages/app/src/specs/generators/ExpandableFileList.cy.tsx
import ExpandableFileList from './ExpandableFileList.vue' import data from '../../../cypress/fixtures/FileList.json' import { ref, Ref } from 'vue' import type { FileListItemFragment } from '../../generated/graphql-test' const difficultFile = { baseName: '[...all].vue', fileExtension: '.vue', } const noResultsSlo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/types.ts
packages/app/src/specs/generators/types.ts
import type { TestingType } from '@packages/types' import type { Component } from 'vue' export type GeneratorId = 'vueComponent' | 'reactComponent' | 'empty' | 'scaffold' type CurrentProject = { readonly __typename?: 'CurrentProject' | undefined readonly id: string readonly codeGenGlobs?: { readonly compone...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/index.ts
packages/app/src/specs/generators/index.ts
import { keyBy } from 'lodash' import { computed } from 'vue' import type { SpecGenerator, GeneratorId } from './types' import { ScaffoldGenerator } from './scaffold' import { EmptyGenerator } from './empty' import { VueComponentGenerator, ReactComponentGenerator } from './component' export * from './types' export * ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/GeneratorSuccess.cy.tsx
packages/app/src/specs/generators/GeneratorSuccess.cy.tsx
import GeneratorSuccess from './GeneratorSuccess.vue' import data from '../../../cypress/fixtures/GeneratorSuccess.json' import type { FileListItemFragment } from '../../generated/graphql-test' const targetSelector = '[data-cy=file-row]' const spec = data[0] as FileListItemFragment const content = ` import ${spec.base...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/empty/EmptyGenerator.tsx
packages/app/src/specs/generators/empty/EmptyGenerator.tsx
import type { SpecGenerator } from '../types' import EmptyGeneratorCard from './EmptyGeneratorCard.vue' import EmptyGeneratorCardStepOne from '../EmptyGenerator.vue' export const EmptyGenerator: SpecGenerator = { card: EmptyGeneratorCard, entry: EmptyGeneratorCardStepOne, matches: () => true, show: () => true,...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/empty/index.ts
packages/app/src/specs/generators/empty/index.ts
export * from './EmptyGenerator'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/scaffold/ScaffoldGenerator.tsx
packages/app/src/specs/generators/scaffold/ScaffoldGenerator.tsx
import type { SpecGenerator } from '../types' import { filters } from '../GeneratorsCommon' import ScaffoldGeneratorCard from './ScaffoldGeneratorCard.vue' import ScaffoldGeneratorStepOne from './ScaffoldGeneratorStepOne.vue' export const ScaffoldGenerator: SpecGenerator = { card: ScaffoldGeneratorCard, entry: Sca...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/scaffold/index.ts
packages/app/src/specs/generators/scaffold/index.ts
export * from './ScaffoldGenerator'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/component/VueComponentGenerator.tsx
packages/app/src/specs/generators/component/VueComponentGenerator.tsx
import { filters } from '../GeneratorsCommon' import VueComponentGeneratorStepOne from './VueComponentGeneratorStepOne.vue' import type { SpecGenerator } from '../types' import ComponentGeneratorCard from './ComponentGeneratorCard.vue' export const VueComponentGenerator: SpecGenerator = { card: ComponentGeneratorCar...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/component/ReactComponentGenerator.tsx
packages/app/src/specs/generators/component/ReactComponentGenerator.tsx
import { filters } from '../GeneratorsCommon' import ReactComponentGeneratorStepOne from './ReactComponentGeneratorStepOne.vue' import type { SpecGenerator } from '../types' import ComponentGeneratorCard from './ComponentGeneratorCard.vue' export const ReactComponentGenerator: SpecGenerator = { card: ComponentGenera...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/component/ReactComponentList.cy.tsx
packages/app/src/specs/generators/component/ReactComponentList.cy.tsx
import { ComponentList_GetReactComponentsFromFileDocument } from '../../../generated/graphql-test' import ReactComponentList from './ReactComponentList.vue' describe('ReactComponentList', () => { const mockFile = { absolute: '/path/to/my/component', id: 'fileId', relative: '../path/to/my/component', ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/generators/component/index.ts
packages/app/src/specs/generators/component/index.ts
export * from './VueComponentGenerator' export * from './ReactComponentGenerator'
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/flaky-badge/FlakyBadge.cy.tsx
packages/app/src/specs/flaky-badge/FlakyBadge.cy.tsx
import FlakyBadge from './FlakyBadge.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const flakyBadgeTestId = 'flaky-badge' describe('<FlakyBadge />', () => { it('should render expected content', () => { cy.mount(<FlakyBadge />) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/flaky-badge/FlakyInformation.cy.tsx
packages/app/src/specs/flaky-badge/FlakyInformation.cy.tsx
import type { FlakyInformationCloudSpecFragment, FlakyInformationProjectFragment, FlakyInformationSpecFragment } from '../../generated/graphql' import FlakyInformation from './FlakyInformation.vue' describe('<FlakyInformation />', () => { function mountWithFlakyStatus (flaky: boolean) { const project: FlakyInfor...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/flaky-badge/FlakySpecSummary.cy.tsx
packages/app/src/specs/flaky-badge/FlakySpecSummary.cy.tsx
import FlakySpecSummary from './FlakySpecSummary.vue' describe('<FlakySpecSummary />', () => { it('severities', () => { cy.mount(() => <div> <FlakySpecSummary specName="test" specExtension=".cy.tsx" severity="low" totalFlakyRuns={4} totalRuns={50} ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/tree/useVirtualListNavigation.ts
packages/app/src/specs/tree/useVirtualListNavigation.ts
import { onBeforeUpdate, onUpdated, ref, unref } from 'vue' import { onKeyStroke } from '@vueuse/core' import type { UseVirtualListApi } from './useVirtualList' const focusEl = (itemRefs, activeItem) => { const idx = unref(activeItem) const el = itemRefs.value[idx]?.$el ?? itemRefs.value[idx] if (typeof el?.foc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/tree/useCollapsibleTree.ts
packages/app/src/specs/tree/useCollapsibleTree.ts
import type { ComputedRef, Ref } from 'vue' import { computed } from 'vue' import { useToggle } from '@vueuse/core' import type { FoundSpec } from '@packages/types/src' import { getRunnerConfigFromWindow } from '../../runner/get-runner-config-from-window' export type RawNode <T> = { id: string name: string child...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/specs/tree/useVirtualList.ts
packages/app/src/specs/tree/useVirtualList.ts
import type { Ref, CSSProperties } from 'vue' import { watch, ref, computed, shallowRef } from 'vue' import type { MaybeRef } from '@vueuse/core' import { useElementSize } from '@vueuse/core' import { isEqual } from 'lodash' export type UseVirtualListApi = ReturnType<typeof useVirtualList>['api'] export interface Use...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/useDebugRunSummary.ts
packages/app/src/debug/useDebugRunSummary.ts
import { gql, useSubscription } from '@urql/vue' import { computed, Ref, ref, unref, watchEffect } from 'vue' import { DebugProgress_DebugTestsFragment, DebugProgress_SpecsDocument } from '../generated/graphql' gql` subscription DebugProgress_Specs($id: ID!) { relevantRunSpecChange(runId: $id) { id ...DebugP...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugContainer.cy.tsx
packages/app/src/debug/DebugContainer.cy.tsx
import { DebugSpecListGroupsFragment, DebugSpecListSpecFragment, DebugSpecListTestsFragment, DebugSpecsFragment, DebugSpecsFragmentDoc, UseCohorts_DetermineCohortDocument } from '../generated/graphql-test' import DebugContainer from './DebugContainer.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure h...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugPageHeader.cy.tsx
packages/app/src/debug/DebugPageHeader.cy.tsx
import { CloudRunStatus, DebugPageHeaderFragmentDoc } from '../generated/graphql-test' import DebugPageHeader from './DebugPageHeader.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const defaults = [ { attr: 'debug-header-branch', te...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugSpec.cy.tsx
packages/app/src/debug/DebugSpec.cy.tsx
import DebugSpec, { Spec, TestResults } from './DebugSpec.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const resultCounts = (min: number, max: number) => { return { min, max, } } const multipleGroups: {[groupId: string]:...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugPendingRunCounts.cy.tsx
packages/app/src/debug/DebugPendingRunCounts.cy.tsx
import DebugPendingRunCounts from './DebugPendingRunCounts.vue' describe('<DebugPendingRunCounts />', () => { it('renders counts', () => { cy.mount( <DebugPendingRunCounts specs={{ id: '1', completedSpecs: 2, totalSpecs: 20 }} />, ) cy.contains('2 of 20').should('be.visible') }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugRunStates.cy.tsx
packages/app/src/debug/DebugRunStates.cy.tsx
import DebugPassed from './DebugPassed.vue' import DebugErrored from './DebugErrored.vue' import DebugNoTests from './DebugNoTests.vue' import DebugTimedout from './DebugTimedout.vue' import DebugCancelledAlert from './DebugCancelledAlert.vue' import DebugOverLimit from './DebugOverLimit.vue' const mockError = `We det...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugRunNavigation.cy.tsx
packages/app/src/debug/DebugRunNavigation.cy.tsx
import DebugRunNavigation from './DebugRunNavigation.vue' import { DebugRunNavigationFragment, DebugRunNavigationFragmentDoc } from '../generated/graphql-test' import { createRun } from '../../cypress/support/fixtures' import type { CommitInfo } from '@packages/frontend-shared/cypress/support/generated/test-graphql-typ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugFailedTest.cy.tsx
packages/app/src/debug/DebugFailedTest.cy.tsx
import DebugFailedTest from './DebugFailedTest.vue' import type { TestResults } from './DebugSpec.vue' const group1 = { os: { id: '123', name: 'Linux', nameWithVersion: 'Linux Debian', }, browser: { id: '123', formattedName: 'Chrome', formattedNameWithVersion: 'Chrome 106', }, groupNa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugSpecList.cy.tsx
packages/app/src/debug/DebugSpecList.cy.tsx
import { SetTestsForDebugDocument } from '../generated/graphql-test' import DebugSpecList from './DebugSpecList.vue' import type { CloudDebugSpec } from './utils/DebugMapping' const specs: CloudDebugSpec[] = [{ spec: { id: '123', basename: '', extension: '.ts', groupIds: [], shortPath: '', sp...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugSpecLimitBanner.cy.tsx
packages/app/src/debug/DebugSpecLimitBanner.cy.tsx
import DebugSpecLimitBanner from './DebugSpecLimitBanner.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<DebugSpecLimitBanner />', () => { it('renders expected copy and link', () => { cy.mount(() => ( <DebugSpecLi...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/useRunDateTimeInterval.cy.tsx
packages/app/src/debug/useRunDateTimeInterval.cy.tsx
import { ref } from 'vue' import type { CloudRunStatus } from '../generated/graphql' import { useRunDateTimeInterval } from './useRunDateTimeInterval' describe('useRunDateTimeInterval', () => { it('should format dates and times', () => { const now = new Date(2023, 3, 14) cy.clock(now) cy.then(() => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/GroupedDebugFailedTest.cy.tsx
packages/app/src/debug/GroupedDebugFailedTest.cy.tsx
import type { TestResults } from './DebugSpec.vue' import GroupedDebugFailedTest from './GroupedDebugFailedTest.vue' describe('<GroupedDebugFailedTest/>', () => { const testResult: TestResults[] = [ { id: '676df87878', titleParts: ['Login', 'Should redirect unauthenticated user to signin page'], ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/LayeredBrowserIcons.cy.tsx
packages/app/src/debug/LayeredBrowserIcons.cy.tsx
import LayeredBrowserIcons from './LayeredBrowserIcons.vue' describe('<LayeredBrowserIcons/>', () => { const browsers: string[] = ['CHROME', 'CHROME BETA', 'CANARY', 'CHROME CANARY', 'CHROME FOR TESTING', 'CUSTOM CHROME FOR TESTING', 'CHROMIUM', 'CUSTOM CHROMIUM', 'EDGE', 'EDGE BETA', 'EDGE CANARY', 'EDGE DEV', 'ELE...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/StatsMetadata.cy.tsx
packages/app/src/debug/StatsMetadata.cy.tsx
import StatsMetadata from './StatsMetadata.vue' describe('<StatsMetadata />', () => { const group_linux_chrome = { id: '123', os: { id: '123', name: 'Linux', nameWithVersion: 'Linux Debian', }, browser: { id: '123', formattedName: 'Chrome', formattedNameWithVersion...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugRunNavigationLimitMessage.cy.tsx
packages/app/src/debug/DebugRunNavigationLimitMessage.cy.tsx
import DebugRunNavigationLimitMessage from './DebugRunNavigationLimitMessage.vue' describe('DebugRunNavigationLimitMessage', () => { it('renders link if cloudProjectUrl is passed', () => { cy.mount(<DebugRunNavigationLimitMessage cloudProjectUrl="https://cloud.cypress.io/projects/ypt4pf/" />) cy.findByRole(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugTestingProgress.cy.tsx
packages/app/src/debug/DebugTestingProgress.cy.tsx
import { DebugTestingProgress_SpecsDocument } from '../generated/graphql' import DebugTestingProgress from './DebugTestingProgress.vue' import { createRelevantRunSpecChangeEvent } from '@packages/data-context/test/graphql/stubCloudTypes' describe('<DebugTestingProgress />', () => { it('renders as expected', () => { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/useRunDateTimeInterval.ts
packages/app/src/debug/useRunDateTimeInterval.ts
import type { CloudRun } from '@packages/frontend-shared/cypress/support/generated/test-graphql-types.gen' import { useIntervalFn } from '@vueuse/core' import dayjs from 'dayjs' import { computed, Ref, ref, unref, watchEffect } from 'vue' import { formatDuration, formatCreatedAt } from './utils/formatTime' type RunDat...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugArtifactLink.cy.tsx
packages/app/src/debug/DebugArtifactLink.cy.tsx
import DebugArtifactLink from './DebugArtifactLink.vue' import type { ArtifactType } from './utils/debugArtifacts' describe('<DebugArtifacts />', () => { const artifactMapping: {icon: ArtifactType, text: string, url: string}[] = [ { icon: 'TERMINAL_LOG', text: 'View Log', url: 'www.cypress.io' }, { icon: 'IM...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/DebugPendingRunSplash.cy.tsx
packages/app/src/debug/DebugPendingRunSplash.cy.tsx
import DebugPendingRunSplash from './DebugPendingRunSplash.vue' describe('<DebugPendingRunSplash />', () => { it('renders as expected', () => { cy.mount(<DebugPendingRunSplash/>) cy.findByTestId('title').contains('Testing in progress...') cy.findByTestId('splash-subtitle').contains('Failures will be dis...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/empty/DebugEmptyStates.cy.tsx
packages/app/src/debug/empty/DebugEmptyStates.cy.tsx
import DebugNotLoggedIn from './DebugNotLoggedIn.vue' import DebugNoProject from './DebugNoProject.vue' import DebugNoRuns from './DebugNoRuns.vue' import DebugLoading from './DebugLoading.vue' import DebugError from './DebugError.vue' import DebugEmptyView from './DebugEmptyView.vue' import { useUserProjectStatusStore...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/empty/DebugError.cy.tsx
packages/app/src/debug/empty/DebugError.cy.tsx
import DebugError from './DebugError.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<DebugError />', () => { it('can mount', () => { cy.mount(<DebugError />) cy.contains(defaultMessages.debugPage.emptyStates.gitRepo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/empty/DebugBranchError.cy.tsx
packages/app/src/debug/empty/DebugBranchError.cy.tsx
import DebugBranchError from './DebugBranchError.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<DebugBranchError />', () => { it('can mount', () => { cy.mount(<DebugBranchError />) cy.get('[data-cy=debug-empty-titl...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/utils/formatTime.ts
packages/app/src/debug/utils/formatTime.ts
import { dayjs } from '../../runs/utils/day.js' /** * Format duration to in HH[h] mm[m] ss[s] format. The `totalDuration` field is milliseconds. Remove the leading "00h" if the value is less * than an hour. Currently, there is no expectation that a run duration will be greater 24 hours or greater, so it is okay th...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/utils/DebugMapping.ts
packages/app/src/debug/utils/DebugMapping.ts
import type { DebugSpecListSpecFragment, DebugSpecListTestsFragment, DebugLocalSpecsFragment, TestingTypeEnum, DebugSpecListGroupsFragment } from '../../generated/graphql' import { posixify } from '../../paths' type DebugSpecsArgs = { specs: readonly DebugSpecListSpecFragment[] tests: readonly DebugSpecListTestsFr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/utils/constants.ts
packages/app/src/debug/utils/constants.ts
export const DEBUG_TAB_MEDIUM = 'Debug Tab' export const DEBUG_PROMO_CAMPAIGNS = { login: 'Debug Login Empty State', connectProject: 'Debug Connect Project Empty State', recordRun: 'Debug Record Run Empty State', } as const
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/debug/utils/debugArtifacts.ts
packages/app/src/debug/utils/debugArtifacts.ts
import type { CloudRunInstance } from '@packages/data-context/src/gen/graphcache-config.gen' import { getUrlWithParams } from '@packages/frontend-shared/src/utils/getUrlWithParams' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import type { useI18n } from '@cy/i18n' import { DEBUG_T...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunCard.cy.tsx
packages/app/src/runs/RunCard.cy.tsx
import { CloudRunStubs } from '@packages/data-context/test/graphql/stubCloudTypes' import { RunCardFragmentDoc } from '../generated/graphql-test' import RunCard from './RunCard.vue' import _ from 'lodash' const SECOND = 1000 const MINUTE = 60 * SECOND const HOUR = 60 * MINUTE const generateTags = (num): any => new Ar...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/useProjectRuns.ts
packages/app/src/runs/useProjectRuns.ts
import { gql, useMutation, useQuery } from '@urql/vue' import { Ref, computed, onMounted, onUnmounted } from 'vue' import { RunsDocument, RunsContainer_FetchNewerRunsDocument, RunCardFragment } from '../generated/graphql' import type { RunsComposable } from './RunsComposable' gql` query Runs { ...RunsContainer }` g...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsConnect.cy.tsx
packages/app/src/runs/RunsConnect.cy.tsx
import RunsConnect from './RunsConnect.vue' describe('<RunsConnect />', () => { it('show connect button', () => { cy.mount(() => <div class="h-screen"><RunsConnect campaign="abc" /></div>) cy.contains('button', 'Connect to Cypress Cloud').should('be.visible') }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsErrorRenderer.spec.tsx
packages/app/src/runs/RunsErrorRenderer.spec.tsx
import { RunsErrorRendererFragmentDoc } from '../generated/graphql-test' import RunsErrorRenderer from './RunsErrorRenderer.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { useUserProjectStatusStore } from '@packages/frontend-sha...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsLayout.cy.tsx
packages/app/src/runs/RunsLayout.cy.tsx
import RunsLayout from './RunsLayout.vue' import { RunsContainerFragmentDoc } from '../generated/graphql-test' const statuses = ['CANCELLED', 'ERRORED', 'FAILED', 'NOTESTS', 'OVERLIMIT', 'PASSED', 'RUNNING', 'TIMEDOUT'] describe('<RunsLayout />', () => { context('grouped runs when isUsingGit is true', () => { i...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/useGitTreeRuns.ts
packages/app/src/runs/useGitTreeRuns.ts
import { gql, useQuery } from '@urql/vue' import { Ref, computed } from 'vue' import { RunsGitTreeDocument, RunCardFragment } from '../generated/graphql' import { useRelevantRun } from '../composables/useRelevantRun' import type { RunsComposable } from './RunsComposable' gql` query RunsGitTree($runIds: [ID!]!) { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsContainer.cy.tsx
packages/app/src/runs/RunsContainer.cy.tsx
import RunsContainer from './RunsContainer.vue' import { RunsContainerFragmentDoc } from '../generated/graphql-test' import { useUserProjectStatusStore } from '@packages/frontend-shared/src/store/user-project-status-store' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defau...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunTagCount.cy.tsx
packages/app/src/runs/RunTagCount.cy.tsx
import RunTagCount from './RunTagCount.vue' describe('<RunTagCount />', () => { it('should show all information', () => { cy.mount({ name: 'RunTagCount', render () { return ( <RunTagCount value={5} tooltipData={{ flaky: 1, branchNa...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunTag.cy.tsx
packages/app/src/runs/RunTag.cy.tsx
import RunTag from './RunTag.vue' describe('<RunTag />', () => { it('should show a normal tag', () => { cy.mount({ name: 'RunTag', render () { return ( <RunTag label="test-label" /> ) }, }) cy.get(`[data-cy="runTag"`).should('be.visible')...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/CloudConnectButton.cy.tsx
packages/app/src/runs/CloudConnectButton.cy.tsx
import CloudConnectButton from './CloudConnectButton.vue' import { useUserProjectStatusStore } from '@packages/frontend-shared/src/store/user-project-status-store' describe('<CloudConnectButton />', { viewportHeight: 60, viewportWidth: 400 }, () => { context('not logged in ', () => { it('show user connect if not...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsSkeleton.cy.tsx
packages/app/src/runs/RunsSkeleton.cy.tsx
import RunsSkeleton from './RunsSkeleton.vue' describe('<RunsSkeleton />', () => { it('displays git structure', () => { cy.mount(<RunsSkeleton isUsingGit />) cy.get(`[data-cy="runsSkeleton-git"`).should('be.visible') }) it('displays default structure', () => { cy.mount(<RunsSkeleton />) 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/src/runs/RunsEmpty.cy.tsx
packages/app/src/runs/RunsEmpty.cy.tsx
import RunsEmpty from './RunsEmpty.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('RunsEmpty', () => { it('renders expected content', () => { cy.mount(<RunsEmpty />) cy.gqlStub.Query.currentProject = { id: 'te...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunNumber.cy.tsx
packages/app/src/runs/RunNumber.cy.tsx
import type { CloudRunStatus } from '../generated/graphql-test' import RunNumber from './RunNumber.vue' const STATUSES: CloudRunStatus[] = ['PASSED', 'FAILED', 'CANCELLED', 'RUNNING', 'ERRORED'] describe('<RunNumber />', () => { describe('playground', () => { STATUSES.forEach((status) => { it(`status = '$...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsError.cy.tsx
packages/app/src/runs/RunsError.cy.tsx
import RunsError from './RunsError.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import PaperAirplaneIcon from '~icons/cy/paper-airplane_x16.svg' describe('<RunsError />', () => { it('should show a normal error', () => { cy.mount({ name: 'RunsError', render (...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunResults.cy.tsx
packages/app/src/runs/RunResults.cy.tsx
import RunResults from './RunResults.vue' import { RunResultsFragmentDoc } from '../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { CloudRunStubs } from '@packages/data-context/test/graphql/stubCloudTypes' de...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsSkeletonRow.cy.tsx
packages/app/src/runs/RunsSkeletonRow.cy.tsx
import RunsSkeletonRow from './RunsSkeletonRow.vue' describe('<RunsSkeletonRow />', () => { it('playground', () => { cy.mount(<RunsSkeletonRow />) }) })
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsConnectSuccessAlert.spec.tsx
packages/app/src/runs/RunsConnectSuccessAlert.spec.tsx
import { RunsConnectSuccessAlertFragmentDoc } from '../generated/graphql-test' import RunsConnectSuccessAlert from './RunsConnectSuccessAlert.vue' describe('<RunConnectSuccessAlert />', { viewportHeight: 400 }, () => { it('playground', () => { cy.mountFragment(RunsConnectSuccessAlertFragmentDoc, { render: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/RunsComposable.ts
packages/app/src/runs/RunsComposable.ts
import type { Ref } from 'vue' import type { RunCardFragment } from '../generated/graphql' export type RunsComposable = { runs: Ref<RunCardFragment[] | undefined> reExecuteRunsQuery: () => void query: any allRunIds?: Ref<string[] | undefined> currentCommitInfo?: Ref<{ sha: string, message: string } | null | ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/utils/day.ts
packages/app/src/runs/utils/day.ts
import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' import duration from 'dayjs/plugin/duration' import customParseFormat from 'dayjs/plugin/customParseFormat' import utc from 'dayjs/plugin/utc' dayjs.extend(relativeTime) dayjs.extend(duration) dayjs.extend(customParseFormat) dayjs.extend(ut...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runs/utils/constants.ts
packages/app/src/runs/utils/constants.ts
export const RUNS_TAB_MEDIUM = 'Runs Tab' export const RUNS_PROMO_CAMPAIGNS = { login: 'Runs Login Empty State', connectProject: 'Runs Connect Project Empty State', recordRun: 'Runs Record Run Empty State', } as const
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/tasks/mochaEvents.ts
packages/app/cypress/tasks/mochaEvents.ts
import path from 'path' import fs from 'fs-extra' const snapshotFile = (filename: string) => path.join(__dirname, '..', 'e2e', 'runner', 'snapshots', `${filename}.json`) export const writeMochaEventSnapshot = ({ filename, snapshots }) => { const jsonFile = snapshotFile(filename) fs.ensureFileSync(jsonFile) fs....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/tasks/git.ts
packages/app/cypress/tasks/git.ts
import simpleGit from 'simple-git' import path from 'path' import fs from 'fs-extra' export async function initGitRepoForTestProject (projectPath: string) { const git = simpleGit({ baseDir: projectPath }) if (process.env.CI) { // need to set a user on CI await Promise.all([ git.addConfig('user.name'...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/cypress/support/fixtures.ts
packages/app/cypress/support/fixtures.ts
import { createCloudRun, createCloudRunCommitInfo } from '@packages/data-context/test/graphql/stubCloudTypes' import type { CloudRunStatus } from '../../src/generated/graphql-test' import type { AutSnapshot } from '../../src/runner/iframe-model' export const autSnapshot: AutSnapshot = { id: 1, name: 'DOM Test Snap...
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-component.cy.ts
packages/app/cypress/e2e/cypress-in-cypress-component.cy.ts
import type { SinonStub } from 'sinon' import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import { getPathForPlatform } from '../../src/paths' // import { snapshotAUTPanel } from './support/snapshot-aut-panel' describe('Cypress In Cypress CT', { viewportWidth: 1500, defaultCommandTimeout: 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/e2e/run-all-specs.cy.ts
packages/app/cypress/e2e/run-all-specs.cy.ts
import { RUN_ALL_SPECS_KEY } from '@packages/types/src' import { getPathForPlatform } from '../../src/paths' describe('run-all-specs', () => { const ALL_SPECS = { spec1: { relative: getPathForPlatform('cypress/e2e/folder-a/spec-a.cy.js'), name: 'runs folder-a/spec-a' }, spec2: { relative: getPathForPlatform(...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false