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/store/selector-playground-store.ts
packages/app/src/store/selector-playground-store.ts
import { defineStore } from 'pinia' type SelectorMethod = 'get' | 'contains' interface SelectorPlaygroundStore { show: boolean getSelector: string containsSelector: string isShowingHighlight: boolean isOpen: boolean isEnabled: boolean isValid: boolean numElements: number method: SelectorMethod } ex...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/store/specs-store.ts
packages/app/src/store/specs-store.ts
import type { SpecFile, TestFilter } from '@packages/types/src' import { defineStore } from 'pinia' export interface SpecState { activeSpec: SpecFile | null | undefined specFilter?: string testFilter: TestFilter } export const useSpecStore = defineStore({ id: 'spec', state (): SpecState { return { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/store/index.ts
packages/app/src/store/index.ts
import { createPinia as _createPinia } from 'pinia' export * from './specs-store' export * from './aut-store' export * from './runner-ui-store' export * from './mobx-runner-store' export * from './selector-playground-store' export * from './screenshot-store' // Reusable installation function, used as an entry po...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/store/aut-store.ts
packages/app/src/store/aut-store.ts
import { defineStore } from 'pinia' export type ScriptError = { type: string, error: string } | null interface AutStoreState { url: string | undefined highlightUrl: boolean viewportWidth: number viewportHeight: number defaultViewportHeight: number defaultViewportWidth: number isLoadingUrl: boolean isL...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/store/spec-dirty-data-store.cy.tsx
packages/app/src/store/spec-dirty-data-store.cy.tsx
import { defineComponent } from 'vue' import { useSpecDirtyDataStore } from './spec-dirty-data-store' // Test component that uses the store const TestComponent = defineComponent({ setup () { const store = useSpecDirtyDataStore() return () => ( <div> <div data-cy="is-dirty">{store.isDirty().toS...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/SettingsCard.cy.tsx
packages/app/src/settings/SettingsCard.cy.tsx
import SettingsCard from './SettingsCard.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import IconLaptop from '~icons/mdi/laptop' describe('<SettingsCard />', () => { const title = 'My Device Settings' const description = 'The configuration I\'m passing in.' const header...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/SettingsContainer.cy.tsx
packages/app/src/settings/SettingsContainer.cy.tsx
import { SettingsContainerFragmentDoc } from '../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import SettingsContainer from './SettingsContainer.vue' const mountSettingsContainer = () => cy.mountFragment(SettingsCo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/SettingsSection.cy.tsx
packages/app/src/settings/SettingsSection.cy.tsx
import SettingsSection from './SettingsSection.vue' describe('<SettingsSection />', () => { it('renders the description and title slots', () => { cy.viewport(800, 200) const title = 'Project Id' const description = 'A Cypress config setting used to uniquely identify your project when recording runs to 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/settings/device/ProxySettings.cy.tsx
packages/app/src/settings/device/ProxySettings.cy.tsx
import { ProxySettingsFragmentDoc } from '../../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import ProxySettings from './ProxySettings.vue' describe('<ProxySettings />', { viewportHeight: 400, viewportWidth: 6...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/device/NotificationSettings.cy.tsx
packages/app/src/settings/device/NotificationSettings.cy.tsx
import NotificationSettings from './NotificationSettings.vue' import { NotificationSettingsFragmentDoc } from '../../generated/graphql-test' function assertFormControls (assertion: 'be.disabled' | 'not.be.disabled') { cy.findByTestId('send-test-notification').should(assertion) cy.get('input#passed').should(asserti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/device/TestingPreferences.cy.tsx
packages/app/src/settings/device/TestingPreferences.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { TestingPreferencesFragmentDoc } from '../../generated/graphql-test' import TestingPreferences from './TestingPreferences.vue' describe('<TestingPreferences />', () => { it('renders 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/settings/device/ExternalEditorSettings.cy.tsx
packages/app/src/settings/device/ExternalEditorSettings.cy.tsx
import ExternalEditorSettings from './ExternalEditorSettings.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { ExternalEditorSettingsFragmentDoc } from '../../generated/graphql-test' const editorText = defaultMessages.settingsPag...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/CloudSettings.cy.tsx
packages/app/src/settings/project/CloudSettings.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { CloudSettingsFragmentDoc } from '../../generated/graphql-test' import CloudSettings from './CloudSettings.vue' describe('<CloudSettings />', () => { it('displays the project Id and R...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ProjectSettings.cy.tsx
packages/app/src/settings/project/ProjectSettings.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { ProjectSettingsFragmentDoc } from '../../generated/graphql-test' import ProjectSettings from './ProjectSettings.vue' describe('<ProjectSettings />', () => { it('displays the experime...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/Config.cy.tsx
packages/app/src/settings/project/Config.cy.tsx
import Config from './Config.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { each } from 'lodash' import { ConfigFragmentDoc } from '../../generated/graphql-test' describe('<Config/>', { viewportWidth: 1200, viewportHeight: 160...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ProjectId.cy.tsx
packages/app/src/settings/project/ProjectId.cy.tsx
import { set } from 'lodash' import { ProjectIdFragmentDoc } from '../../generated/graphql-test' import ProjectId from './ProjectId.vue' describe('<ProjectId />', () => { beforeEach(() => { cy.viewport(1000, 600) }) it('renders the project ID in the input field', () => { const givenProjectId = 'aaaa-bbb...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/projectSettings.ts
packages/app/src/settings/project/projectSettings.ts
export const sections = { project: [ { title: 'Experiments', description: 'Enable or disable experiments', }, ], user: {}, } export interface Experiment { name: string description: string enabled: boolean key: string } export type CypressResolvedConfig = Array<{ field: string fro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ConfigSourceColors.ts
packages/app/src/settings/project/ConfigSourceColors.ts
export const CONFIG_LEGEND_COLOR_MAP = { default: 'text-gray-800 bg-gray-50', config: 'bg-teal-100 text-teal-700', env: 'bg-orange-100 text-orange-700', cli: 'bg-red-50 text-red-700', plugin: 'bg-purple-50 text-purple-700', } 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/settings/project/RecordKey.cy.tsx
packages/app/src/settings/project/RecordKey.cy.tsx
import { RecordKeyFragmentDoc } from '../../generated/graphql-test' import RecordKey from './RecordKey.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<RecordKey />', () => { const key = '1234-bbbb-5678-dddd' beforeEach((...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ExperimentRow.cy.tsx
packages/app/src/settings/project/ExperimentRow.cy.tsx
import ExperimentRow from './ExperimentRow.vue' describe('<ExperimentRow />', () => { const exp = { name: 'Name of Enabled Experiment', description: 'Description of stuff', key: 'experiment-key-enabled', enabled: true, } const expDisabled = { name: 'Name of Enabled Experiment', descripti...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/CodeBox.cy.tsx
packages/app/src/settings/project/CodeBox.cy.tsx
import CodeBox from './CodeBox.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import IconOctothorpe from '~icons/cy/octothorpe_x16.svg' describe('<CodeBox/>', () => { it('renders the code', () => { cy.mount(() => (<div class="p-12 resize-x overflow-auto"> <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/settings/project/ConfigLegend.cy.tsx
packages/app/src/settings/project/ConfigLegend.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import ConfigLegend from './ConfigLegend.vue' import { each } from 'lodash' import { OpenConfigFileInIdeFragmentDoc } from '../../generated/graphql-test' const legend = defaultMessages.settings...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ConfigBadge.cy.tsx
packages/app/src/settings/project/ConfigBadge.cy.tsx
import ConfigBadge from './ConfigBadge.vue' describe('<ConfigBadge />', () => { it('renders a badge with a label and description', () => { const description = 'This is a pretty great badge' const label = 'Wonderful' cy.mount(() => { return <ConfigBadge label="Wonderful" class="bg-fuchsia-100 text-...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/Experiments.cy.tsx
packages/app/src/settings/project/Experiments.cy.tsx
import { ExperimentsFragmentDoc } from '../../generated/graphql-test' import config from '@packages/frontend-shared/cypress/fixtures/config.json' import Experiments from './Experiments.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' des...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/settings/project/ConfigCode.cy.tsx
packages/app/src/settings/project/ConfigCode.cy.tsx
import ConfigCode from './ConfigCode.vue' import config from '@packages/frontend-shared/cypress/fixtures/config.json' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const selector = '[data-cy=code]' const arrayTest = ['a', 'b', 'c'] 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/settings/project/SpecPatterns.cy.tsx
packages/app/src/settings/project/SpecPatterns.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { SpecPatterns_SettingsFragmentDoc } from '../../generated/graphql-test' import SpecPatterns from './SpecPatterns.vue' describe('<SpecPatterns />', () => { beforeEach(() => { 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/src/settings/project/renderers/RendererPrimitive.cy.tsx
packages/app/src/settings/project/renderers/RendererPrimitive.cy.tsx
import { CONFIG_LEGEND_COLOR_MAP } from '../ConfigSourceColors' import RenderPrimitive from './RenderPrimitive.vue' function mountWithPrimitive (value: string| number | null, from: string) { cy.mount(() => { return ( <div class="p-12 overflow-auto"> <RenderPrimitive from={from} ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useRelevantRun.ts
packages/app/src/composables/useRelevantRun.ts
import { gql, useSubscription } from '@urql/vue' import { Debug_RelevantRuns_SubscriptionDocument, Sidebar_RelevantRuns_SubscriptionDocument } from '../generated/graphql' import { useUserProjectStatusStore } from '@packages/frontend-shared/src/store/user-project-status-store' import { computed } from 'vue' import { un...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useRequestAccess.ts
packages/app/src/composables/useRequestAccess.ts
import { RequestAccessComposable_RequestAccessDocument } from '../generated/graphql' import { gql, useMutation } from '@urql/vue' gql` mutation RequestAccessComposable_RequestAccess( $projectId: String! ) { cloudProjectRequestAccess(projectSlug: $projectId) { __typename ... on CloudProjectUnauthorized { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useTestingType.cy.tsx
packages/app/src/composables/useTestingType.cy.tsx
import { UseTestingType_ActivateTestingTypeDocument } from '../generated/graphql' import { useTestingType } from './useTestingType' import type { FunctionalComponent } from 'vue' describe('useTestingType', () => { type ComposableWrapperProps<R> = { useComposable: () => R, callback: (result: R) => void } const Com...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/usePreferences.ts
packages/app/src/composables/usePreferences.ts
import type { RunnerUiState } from '../store' import { useRunnerUiStore } from '../store' import { useMutation, gql } from '@urql/vue' import { Preferences_SetPreferencesDocument } from '../generated/graphql' gql` mutation Preferences_SetPreferences ($value: String!) { setPreferences (value: $value, type: global) { ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useDurationFormat.ts
packages/app/src/composables/useDurationFormat.ts
import { computed, Ref, unref } from 'vue' import { dayjs } from '../runs/utils/day.js' /* Format duration to in HH:mm:ss format. The `totalDuration` field is milliseconds. Remove the leading "00:" if the value is less than an hour. Currently, there is no expectation that a run duration will be greater 24 hours or...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useSpecFilter.ts
packages/app/src/composables/useSpecFilter.ts
import { useSpecStore } from '../store' import { useMutation, gql } from '@urql/vue' import { ref, watch } from 'vue' import { useDebounce } from '@vueuse/core' import { SpecFilter_SetPreferencesDocument } from '../generated/graphql' gql` mutation SpecFilter_SetPreferences ($value: String!) { setPreferences (value: ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useCloudSpecData.ts
packages/app/src/composables/useCloudSpecData.ts
import { gql, useMutation } from '@urql/vue' import { Ref, computed, watch } from 'vue' import { useDebounce } from '@vueuse/core' import { CloudData_RefetchDocument, SpecsListFragment } from '../generated/graphql' gql` mutation CloudData_Refetch ($ids: [ID!]!) { loadRemoteFetchables(ids: $ids){ id fetchingS...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useTestingType.ts
packages/app/src/composables/useTestingType.ts
import { useMutation, useQuery, gql } from '@urql/vue' import { computed, ref, watchEffect } from 'vue' import { UseTestingType_TestingTypeDocument, UseTestingType_ActivateTestingTypeDocument } from '../generated/graphql' gql` query UseTestingType_TestingType { currentProject { id currentTestingType isCT...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useRecordEvent.ts
packages/app/src/composables/useRecordEvent.ts
import { gql, useMutation } from '@urql/vue' import { UseRecordEvent_RecordEventDocument } from '../generated/graphql' import { nanoid } from 'nanoid' import { decodeBase64Unicode } from '@packages/frontend-shared/src/utils/base64' gql` mutation useRecordEvent_recordEvent ($messageId: String!, $campaign: String!, $med...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/composables/useDurationFormat.cy.tsx
packages/app/src/composables/useDurationFormat.cy.tsx
import { ref } from 'vue' import { useDurationFormat } from './useDurationFormat' describe('useDurationFormat', () => { it('should format duration', () => { expect(useDurationFormat(1000).value).to.eq('00:01') expect(useDurationFormat(60000).value).to.eq('01:00') expect(useDurationFormat(6000000).value)....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/SpecPatternModal.cy.tsx
packages/app/src/components/SpecPatternModal.cy.tsx
import { SpecPatternModalFragmentDoc } from '../generated/graphql-test' import SpecPatternModal from './SpecPatternModal.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('<SpecPatternModal />', () => { it('should not render if...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/FileMatchInput.cy.tsx
packages/app/src/components/FileMatchInput.cy.tsx
import FileMatchInput from './FileMatchInput.vue' import { ref } from 'vue' describe('<FileMatchInput />', () => { it('renders a reasonable length text and can be typed into', () => { const initialText = 'Initial Text Value' const newText = 'Hello' const inputText = ref(initialText) const onUpdateTex...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/FileMatchButton.cy.tsx
packages/app/src/components/FileMatchButton.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 FileMatchButton from './FileMatchButton.vue' import { faker } from '@faker-js/faker' import { ref } from 'vue' const fileMatchButtonSele...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/Blank.cy.tsx
packages/app/src/components/Blank.cy.tsx
import { initial, testIsolationBlankPage, visitFailure } from './Blank' import { getContainerEl } from '@cypress/mount-utils' describe('initial', () => { beforeEach(() => { getContainerEl()!.innerHTML = initial() }) it('works', () => { cy.get('[data-cy="cypress-logo"]') cy.percySnapshot() }) }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/FileMatch.cy.tsx
packages/app/src/components/FileMatch.cy.tsx
import FileMatch from './FileMatch.vue' import { ref } from 'vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { each } from 'lodash' /*---------- Selectors ----------*/ // Inputs const anyFilenameInputSelector = `[placeholder="$...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/FileMatchIndicator.cy.tsx
packages/app/src/components/FileMatchIndicator.cy.tsx
import FileMatchIndicator from './FileMatchIndicator.vue' import { faker } from '@faker-js/faker' faker.seed(1) describe('<FileMatchIndicator />', () => { it('renders a reasonable length text', () => { cy.mount(() => (<div class="p-12"> <FileMatchIndicator> No Matches </FileMatchIndicator> ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/SpecPatterns.cy.tsx
packages/app/src/components/SpecPatterns.cy.tsx
import SpecPatterns from './SpecPatterns.vue' import { SpecPatternsFragmentDoc } from '../generated/graphql-test' describe('<SpecPatterns />', () => { it('renders spec patterns', () => { cy.mountFragment(SpecPatternsFragmentDoc, { render: (gql) => <div class="p-[16px]"><SpecPatterns gql={gql} /></div>, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/promo/Promo.cy.tsx
packages/app/src/components/promo/Promo.cy.tsx
import Promo from './Promo.vue' import PromoCard from './PromoCard.vue' import PromoAction from './PromoAction.vue' import PromoHeader from './PromoHeader.vue' import { IconActionRestart, IconChevronRightSmall } from '@cypress-design/vue-icon' import { Promo_PromoSeenDocument } from '../../generated/graphql-test' desc...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/promo/PromoHeader.cy.tsx
packages/app/src/components/promo/PromoHeader.cy.tsx
import PromoHeader from './PromoHeader.vue' import Button from '@cypress-design/vue-button' describe('<PromoHeader />', () => { it('renders', () => { cy.mount( <PromoHeader title="I am a test header" v-slots={{ description: () => <p>Description of this header</p>, contro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/components/promo/PromoAction.cy.tsx
packages/app/src/components/promo/PromoAction.cy.tsx
import PromoAction from './PromoAction.vue' import { IconChevronRightSmall, IconActionRestart } from '@cypress-design/vue-icon' describe('<PromoAction />', () => { it('left label, right icon', () => { const action = cy.stub().as('action') cy.mount( <PromoAction action={action} leftLabe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/event-manager.ts
packages/app/src/runner/event-manager.ts
/* eslint-disable no-dupe-class-members */ import Bluebird from 'bluebird' import { EventEmitter } from 'events' import type { MobxRunnerStore } from '../store/mobx-runner-store' import type MobX from 'mobx' import type { LocalBusEmitsMap, LocalBusEventMap, DriverToLocalBus, SocketToDriverMap } from './event-manager-ty...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
true
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/dom.cy.tsx
packages/app/src/runner/dom.cy.tsx
import { getOrCreateHelperDom } from './dom' describe('dom utilities', () => { describe('getOrCreateHelperDom', () => { let body: HTMLBodyElement const className = 'test-helper' const css = 'test-css' beforeEach(() => { // Create a fresh body element for each test body = document.createE...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/useAutHeader.ts
packages/app/src/runner/useAutHeader.ts
import { useElementSize } from '@vueuse/core' import { ref, watch } from 'vue' import { useAutStore } from '../store' export function useAutHeader () { const autStore = useAutStore() const autHeaderEl = ref<HTMLDivElement>() const { height } = useElementSize(autHeaderEl) watch(height, (newVal) => { if (ne...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/SnapshotToggle.cy.tsx
packages/app/src/runner/SnapshotToggle.cy.tsx
import SnapshotToggle from './SnapshotToggle.vue' describe('<SnapshotToggle/>', () => { it('renders two segments', () => { const messages = [{ text: '1', id: '1' }, { text: '2', id: '2' }] cy.mount(() => (<SnapshotToggle class="m-20" messages={messages} />)) .get('body') .findByText('2') .click...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/useRunnerStyle.ts
packages/app/src/runner/useRunnerStyle.ts
import { isRunMode } from '@packages/frontend-shared/src/utils/isRunMode' import { useWindowSize } from '@vueuse/core' import { computed, ref, watchEffect } from 'vue' import { usePreferences } from '../composables/usePreferences' import { useAutStore, useRunnerUiStore } from '../store' import { useScreenshotStore } fr...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/SpecRunnerHeaderRunMode.cy.tsx
packages/app/src/runner/SpecRunnerHeaderRunMode.cy.tsx
import SpecRunnerHeaderRunMode from './SpecRunnerHeaderRunMode.vue' import { useAutStore } from '../store' import { cyGeneralGlobeX16 } from '@cypress-design/icon-registry' const browser = { displayName: 'Chrome', majorVersion: 1, } describe('SpecRunnerHeaderRunMode', { viewportHeight: 500 }, () => { it('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/runner/dimensions.ts
packages/app/src/runner/dimensions.ts
export const getElementDimensions = (el: HTMLElement) => { const { offsetHeight, offsetWidth } = el // Call getComputedStyle once and cache the result to avoid // multiple layout/reflow operations. const computedStyle: CSSStyleDeclaration = getComputedStyle(el, null) const paddingTop = getStylePropertyNumbe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/runner-constants.ts
packages/app/src/runner/runner-constants.ts
export const runnerConstants = { defaultSpecListWidth: 280, defaultReporterWidth: 450, defaultStudioWidth: 340, preferredMinimumPanelWidth: 200, absoluteAutMinimum: 100, absoluteSpecListMinimum: 50, absoluteReporterMinimum: 50, absoluteStudioMinimum: 340, collapsedNavBarWidth: 64, }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/injectBundle.ts
packages/app/src/runner/injectBundle.ts
import pDefer from 'p-defer' export const dfd = pDefer() export function injectBundle (namespace: string) { const script = document.createElement('script') script.src = `/${namespace}/runner/cypress_runner.js` script.type = 'text/javascript' const link = document.createElement('link') link.rel = 'stylesh...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/reporter.ts
packages/app/src/runner/reporter.ts
import { getMobxRunnerStore, MobxRunnerStore, useSpecStore } from '../store' import { getReporterElement } from './utils' import { getEventManager } from '.' import type { EventManager } from './event-manager' import { useRunnerUiStore } from '../store/runner-ui-store' let hasInitializeReporter = false let reactDomRoo...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/event-manager-types.ts
packages/app/src/runner/event-manager-types.ts
import type { FileDetails } from '@packages/types' import type { ScriptError } from '../store' import type { CommandLog, EntrySource, StudioLog } from '../store/studio-store' import type { CypressInCypressMochaEvent } from './event-manager' interface BeforeScreenshot { appOnly: boolean blackout: string[] disable...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/utils.ts
packages/app/src/runner/utils.ts
export const RUNNER_ID = 'unified-runner' export const REPORTER_ID = 'unified-reporter' export function getRunnerElement () { const runnerElement = document.getElementById(RUNNER_ID) if (!runnerElement) { throw Error(`Expected runner element with #${RUNNER_ID} but did not find it.`) } return runnerEleme...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/aut-iframe.ts
packages/app/src/runner/aut-iframe.ts
import { useSelectorPlaygroundStore } from '../store/selector-playground-store' import { blankContents } from '../components/Blank' import { logger } from './logger' import _ from 'lodash' /* eslint-disable no-duplicate-imports */ import type { DebouncedFunc } from 'lodash' import { useStudioStore } from '../store/stud...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/snapshot-store.ts
packages/app/src/runner/snapshot-store.ts
import { defineStore } from 'pinia' import type { AutSnapshot } from './iframe-model' import type { AutIframe } from './aut-iframe' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' interface SnapshotStoreState { messageTitle?: string snap...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/ScriptError.cy.tsx
packages/app/src/runner/ScriptError.cy.tsx
import ScriptError from './ScriptError.vue' const scriptError = `"Error: Webpack Compilation Error\n./cypress/integration/commands/actions/check_spec.js\nModule build failed (from /Users/username/work/cypress/node_modules/babel-loader/lib/index.js):\nSyntaxError: /Users/username/work/cypress/packages/driver/cypress/in...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/dom.ts
packages/app/src/runner/dom.ts
import { getOffset } from './dimensions' export const INT32_MAX = 2147483647 export function getZIndex (el) { const value = getComputedStyle(el, null).getPropertyValue('z-index') if (/^(auto|0)$/.test(value)) { return INT32_MAX } return parseFloat(value) } export function getOrCreateHelperDom ({ body, ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/SpecRunnerHeaderOpenMode.cy.tsx
packages/app/src/runner/SpecRunnerHeaderOpenMode.cy.tsx
import SpecRunnerHeaderOpenMode from './SpecRunnerHeaderOpenMode.vue' import { useAutStore, useSelectorPlaygroundStore } from '../store' import { useStudioStore } from '../store/studio-store' import { SpecRunnerHeaderFragment, SpecRunnerHeaderFragmentDoc } from '../generated/graphql-test' import { createEventManager, 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/runner/iframe-model.ts
packages/app/src/runner/iframe-model.ts
import { useSnapshotStore } from './snapshot-store' import { useAutStore } from '../store' import type { EventManager } from './event-manager' export interface AutSnapshot { id?: number name?: string $el: any snapshot?: AutSnapshot coords: [number, number] scrollBy: { x: number y: number } snap...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/get-runner-config-from-window.ts
packages/app/src/runner/get-runner-config-from-window.ts
import { decodeBase64Unicode } from '@packages/frontend-shared/src/utils/base64' export function getRunnerConfigFromWindow () { return JSON.parse(decodeBase64Unicode(window.__CYPRESS_CONFIG__?.base64Config)) as Cypress.Config }
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/useEventManager.ts
packages/app/src/runner/useEventManager.ts
import { watch } from 'vue' import { useRouter } from 'vue-router' import { addCrossOriginIframe, getAutIframeModel, getEventManager, UnifiedRunnerAPI } from '.' import { useAutStore, useSpecStore } from '../store' import { useStudioStore } from '../store/studio-store' import { empty, getReporterElement, getRunnerEleme...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/dimensions.cy.tsx
packages/app/src/runner/dimensions.cy.tsx
import { getElementDimensions } from './dimensions' describe('dimensions utilities', () => { describe('getElementDimensions', () => { let mockGetComputedStyle: typeof getComputedStyle let getComputedStyleCallCount: number beforeEach(() => { getComputedStyleCallCount = 0 mockGetComputedStyle...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/logger.ts
packages/app/src/runner/logger.ts
/* eslint-disable no-console */ import _ from 'lodash' interface Table { name: string data: object columns: any } interface Group { name: string items?: any label?: boolean expand?: boolean table?: boolean } export const logger = { log (...args: unknown[]) { console.log(...args) }, logErro...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/SnapshotControls.cy.tsx
packages/app/src/runner/SnapshotControls.cy.tsx
import SnapshotControls from './SnapshotControls.vue' import { autSnapshot } from '../../cypress/support/fixtures' import { useSnapshotStore } from './snapshot-store' import { createEventManager, createTestAutIframe } from '../../cypress/component/support/ctSupport' // tslint:disable-next-line: no-implicit-dependencies...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/unifiedRunner.ts
packages/app/src/runner/unifiedRunner.ts
import { Ref, onMounted, ref, watch, watchEffect, onBeforeUnmount, readonly } from 'vue' import { getAutIframeModel, UnifiedRunnerAPI } from '../runner' import { useSpecStore } from '../store' import { useSelectorPlaygroundStore } from '../store/selector-playground-store' import { closePlayground } from './selector-pla...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/index.ts
packages/app/src/runner/index.ts
/// <reference types="../../index" /> /** * This is the seam between the new "unified app", built with * Vite and Vue. * It consumes some older code, including: * - driver * - reporter * which are built with React and bundle with webpack. * * The entry point for the webpack bundle is `runner/main.tsx`. * Any ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/aut-iframe.cy.tsx
packages/app/src/runner/aut-iframe.cy.tsx
import { AutIframe } from './aut-iframe' import { createEventManager } from '../../cypress/component/support/ctSupport' import { getElementDimensions } from './dimensions' describe('AutIframe', () => { let autIframe: AutIframe beforeEach(() => { const eventManager = createEventManager() autIframe = new A...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/ResizablePanels.cy.tsx
packages/app/src/runner/ResizablePanels.cy.tsx
import ResizablePanels from './ResizablePanels.vue' import type { ResizablePanelName, DraggablePanel } from './useRunnerStyle' import { runnerConstants } from './runner-constants' // default values const defaultPanel1Width = runnerConstants.defaultSpecListWidth const defaultPanel2Width = runnerConstants.defaultReporte...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/selector-playground/utils.cy.ts
packages/app/src/runner/selector-playground/utils.cy.ts
import { useSelectorPlaygroundStore } from '../../store/selector-playground-store' import { useStudioStore } from '../../store/studio-store' import { getMethodPrefix, getMethodPrefixLength, SELECTOR_METHODS, closePlayground, openPlayground, togglePlayground } from './utils' import type { AutIframe } from '../aut-iframe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/selector-playground/utils.ts
packages/app/src/runner/selector-playground/utils.ts
import { useSelectorPlaygroundStore } from '../../store/selector-playground-store' import type { AutIframe } from '../aut-iframe' import { closeStudioAssertionsMenu } from '../studio/mounter' import { useStudioStore } from '../../store/studio-store' export type SelectorMethod = 'get' | 'contains' export const SELECTO...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/selector-playground/highlight-mounter.ts
packages/app/src/runner/selector-playground/highlight-mounter.ts
import { App, createApp } from 'vue' import HighlightApp from './HighlightApp.ce.vue' let app: App<Element> | null = null export default { mount (container: Element, selector: string, styles: any[]) { if (app) { app.unmount() } app = createApp(HighlightApp, { selector, styles, }) ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/selector-playground/SelectorPlayground.cy.tsx
packages/app/src/runner/selector-playground/SelectorPlayground.cy.tsx
import { createEventManager, createTestAutIframe } from '../../../cypress/component/support/ctSupport' import { useSelectorPlaygroundStore } from '../../store/selector-playground-store' import { Clipboard_CopyToClipboardDocument } from '../../generated/graphql-test' import SelectorPlayground from './SelectorPlayground....
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/studio/mounter.ts
packages/app/src/runner/studio/mounter.ts
import { App, createApp, StyleValue } from 'vue' import AssertionsMenu from './AssertionsMenu.ce.vue' import AssertionType from './AssertionType.ce.vue' import AssertionOptions from './AssertionOptions.ce.vue' import { getOrCreateHelperDom, getSelectorHighlightStyles } from '../dom' import type { PossibleAssertions, Ad...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/studio/AssertionsMenu.cy.tsx
packages/app/src/runner/studio/AssertionsMenu.cy.tsx
import AssertionsMenu from './AssertionsMenu.ce.vue' import AssertionType from './AssertionType.ce.vue' import AssertionOptions from './AssertionOptions.ce.vue' import type { PossibleAssertions, AddAssertion } from './types' // Add styles to the document const styleElement = document.createElement('style') styleEleme...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/studio/types.ts
packages/app/src/runner/studio/types.ts
export interface AssertionOption { name?: string value?: string | number | string[] } export interface AssertionType { type: string options?: AssertionOption[] } export type PossibleAssertions = AssertionType[] // Single argument assertion: ['be.visible'] export type AssertionArgs_1 = [string] // Two argume...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/events/telemetry.ts
packages/app/src/runner/events/telemetry.ts
import { telemetry } from '@packages/telemetry/browser/client' export const addTelemetryListeners = (Cypress: Cypress.Cypress) => { Cypress.on('test:before:run', (attributes, test) => { // we emit the 'test:before:run' events within various driver tests try { // If a span for a previous test hasn't bee...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/events/pausing.ts
packages/app/src/runner/events/pausing.ts
// tracks whether the cy.pause() was called from the primary driver // (value === null) or from a cross-origin spec bridge (value is the origin import type EventEmitter from 'events' // matching that spec bridge) let sendEventsToOrigin: string | null = null type GetCypressFunction = () => Cypress.Cypress class Paus...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/events/capture-protocol.ts
packages/app/src/runner/events/capture-protocol.ts
type ProtocolInfo = { type: 'cy:protocol-snapshot' | 'log:added' | 'log:changed' | 'page:loading'| 'test:before:run:async' | 'test:before:after:run:async' | 'test:after:run:async' | 'url:changed' | 'viewport:changed' timestamp: DOMHighResTimeStamp } const attachCypressProtocolInfo = (info: ProtocolInfo) => { let...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/screenshot/screenshot.cy.tsx
packages/app/src/runner/screenshot/screenshot.cy.tsx
// tslint:disable-next-line: no-implicit-dependencies - cypress import { mount } from 'cypress/vue' import type { FunctionalComponent } from 'vue-demi' import './screenshot.scss' const Layout: FunctionalComponent = () => { return ( <div id='wrapper'> <div id='header'>Header</div> <div id='body'>Body<...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/automation/AutomationDisconnected.cy.tsx
packages/app/src/runner/automation/AutomationDisconnected.cy.tsx
import { AutomationDisconnected_RelaunchBrowserDocument } from '../../generated/graphql-test' import AutomationDisconnected from './AutomationDisconnected.vue' describe('AutomationDisconnected', () => { it('should relaunch browser', () => { cy.mount(<AutomationDisconnected />) cy.findByTestId('collapsible')...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/runner/automation/AutomationMissing.cy.tsx
packages/app/src/runner/automation/AutomationMissing.cy.tsx
import { AutomationMissingFragmentDoc, VerticalBrowserListItems_SetBrowserDocument } from '../../generated/graphql-test' import AutomationMissing from './AutomationMissing.vue' import { cyGeneralGlobeX16 } from '@cypress-design/icon-registry' describe('AutomationMissing', () => { it('should render', () => { let ...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/navigation/KeyboardBindingsModal.cy.tsx
packages/app/src/navigation/KeyboardBindingsModal.cy.tsx
import KeyboardBindingsModal from './KeyboardBindingsModal.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' const setPlatformConfig = (platform: string) => { return cy.window().then((win) => { // @ts-ignore win.__CYPRESS_CONFIG...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/navigation/SidebarNavigationHeader.cy.tsx
packages/app/src/navigation/SidebarNavigationHeader.cy.tsx
import SidebarNavigationHeader from './SidebarNavigationHeader.vue' import { SidebarNavigationHeaderFragmentDoc } from '../generated/graphql-test' describe('SidebarNavigationHeader', () => { it('renders e2e icon', () => { cy.mountFragment(SidebarNavigationHeaderFragmentDoc, { render: (gql) => <div class="p...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/navigation/SidebarNavigation.cy.tsx
packages/app/src/navigation/SidebarNavigation.cy.tsx
import SidebarNavigation from './SidebarNavigation.vue' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' import { CloudRunStatus, SidebarNavigationFragment, SidebarNavigationFragmentDoc, SideBarNavigation_SetPreferencesDocument } from '../gene...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/navigation/SwitchTestingTypeModal.cy.tsx
packages/app/src/navigation/SwitchTestingTypeModal.cy.tsx
import SwitchTestingTypeModal from './SwitchTestingTypeModal.vue' import { SwitchTestingTypeModalFragmentDoc } from '../generated/graphql-test' // tslint:disable-next-line: no-implicit-dependencies - unsure how to handle these import { defaultMessages } from '@cy/i18n' describe('SwitchTestingTypeModal', () => { it('...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/navigation/SidebarNavigationRow.cy.tsx
packages/app/src/navigation/SidebarNavigationRow.cy.tsx
import SidebarNavigationRow from './SidebarNavigationRow.vue' import { IconStatusFailedOutline, IconTechnologyCodeEditor, IconTechnologyTestResults, IconObjectGear, IconGeneralPlaceholder, } from '@cypress-design/vue-icon' describe('SidebarNavigationRow', () => { it('renders something', () => { cy.moun...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/prompt/prompt-app-types.ts
packages/app/src/prompt/prompt-app-types.ts
// Note: This file is owned by the cloud delivered // `cy-prompt` bundle. It is downloaded and copied to the app. // It should not be modified directly in the app. import type Emitter from 'component-emitter' const SPEC_DIRTY_DATA_MODULES = Object.freeze({ STUDIO: { name: 'Studio', }, }) export type SpecDirt...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false
cypress-io/cypress
https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/packages/app/src/router/router.ts
packages/app/src/router/router.ts
import { createRouter as _createRouter, createWebHashHistory } from 'vue-router' import generatedRoutes from 'virtual:generated-pages' import { setupLayouts } from 'virtual:generated-layouts' /** * Generated Routes are created via https://github.com/hannoeru/vite-plugin-pages * The generates are based on the files 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/SpecRunSummary.cy.tsx
packages/app/src/specs/SpecRunSummary.cy.tsx
import SpecRunSummary from './SpecRunSummary.vue' import { exampleRuns } from '@packages/frontend-shared/cypress/support/mock-graphql/fakeCloudSpecRun' import type { CloudSpecRun } from '@packages/data-context/src/gen/cloud-source-types.gen' function validateTopBorder (color: string): void { cy.findByTestId('spec-ru...
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/SpecListGitInfo.cy.tsx
packages/app/src/specs/SpecListGitInfo.cy.tsx
import { SpecListRowFragmentDoc } from '../generated/graphql-test' import SpecListGitInfo from './SpecListGitInfo.vue' describe('SpecListGitInfo', () => { const mountWithStatus = (status: 'created' | 'modified' | 'unmodified') => { cy.mountFragment(SpecListRowFragmentDoc, { onResult: (ctx) => { ctx...
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/AverageDuration.cy.tsx
packages/app/src/specs/AverageDuration.cy.tsx
import type { AverageDurationFragment } from '../generated/graphql' import AverageDuration from './AverageDuration.vue' describe('<AverageDuration />', () => { function mountWithDurationValue (duration: number) { const gql: AverageDurationFragment = { id: 'id', data: { __typename: 'CloudProje...
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/InlineRunAllSpecs.cy.tsx
packages/app/src/specs/InlineRunAllSpecs.cy.tsx
import InlineRunAllSpecs from './InlineRunAllSpecs.vue' describe('<InlineRunAllSpecs/>', { viewportHeight: 50, viewportWidth: 150 }, () => { context('Correctly rendered for Inline Specs list', () => { beforeEach(() => { const runAllStub = cy.stub().as('runAllStub') cy.mount(() => { return ( ...
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/SpecItem.cy.tsx
packages/app/src/specs/SpecItem.cy.tsx
import SpecItem from './SpecItem.vue' describe('SpecItem', () => { it('renders a SpecItem', () => { cy.mount(() => ( <div> <SpecItem fileName="Render" extension=".cy.tsx"></SpecItem> <SpecItem fileName="FirstThreeHighlighted" extension=".cy.tsx" indexes={[0, 1, 2]}></SpecItem> </div>)...
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/InlineSpecListTree.cy.tsx
packages/app/src/specs/InlineSpecListTree.cy.tsx
import { ref } from 'vue' import { useSpecStore } from '../store' import InlineSpecListTree from './InlineSpecListTree.vue' import type { FuzzyFoundSpec } from './tree/useCollapsibleTree' describe('InlineSpecListTree', () => { let foundSpecs: FuzzyFoundSpec[] before(() => { cy.fixture('found-specs').then((spe...
typescript
MIT
409444f8ea51d8f14dec8d10510f78c4a5f42271
2026-01-04T15:36:58.228650Z
false