text
stringlengths
3
1.39M
id
stringlengths
16
173
metadata
dict
__index_level_0__
int64
0
363
import { expect } from 'chai' import { scaffoldMigrationProject as scaffoldProject } from '../helper' import { ProjectConfigIpc } from '../../../src/data/ProjectConfigIpc' describe('ProjectConfigIpc', () => { let projectConfigIpc beforeEach(async () => { const projectPath = await scaffoldProject('e2e') p...
cypress/packages/data-context/test/unit/data/ProjectConfigIpc.spec.ts/0
{ "file_path": "cypress/packages/data-context/test/unit/data/ProjectConfigIpc.spec.ts", "repo_id": "cypress", "token_count": 290 }
100
import { WizardBundler, WIZARD_BUNDLERS, CT_FRAMEWORKS, resolveComponentFrameworkDefinition } from '@packages/scaffold-config' import { expect } from 'chai' import { createTestDataContext, scaffoldMigrationProject, removeCommonNodeModules } from '../helper' function findFramework (type: Cypress.ResolvedComponentFramew...
cypress/packages/data-context/test/unit/sources/WizardDataSource.spec.ts/0
{ "file_path": "cypress/packages/data-context/test/unit/sources/WizardDataSource.spec.ts", "repo_id": "cypress", "token_count": 1912 }
101
import { defineConfig } from 'cypress' import { devServer as cypressWebpackDevServer } from '@cypress/webpack-dev-server' export default defineConfig({ projectId: 'ypt4pf', experimentalStudio: true, experimentalMemoryManagement: true, experimentalWebKitSupport: true, hosts: { 'foobar.com': '127.0.0.1', ...
cypress/packages/driver/cypress.config.ts/0
{ "file_path": "cypress/packages/driver/cypress.config.ts", "repo_id": "cypress", "token_count": 561 }
102
const { assertLogLength } = require('../../../support/utils') const { _, $ } = Cypress describe('src/cy/commands/actions/trigger', () => { beforeEach(function () { cy.visit('/fixtures/dom.html') }) context('#trigger', () => { it('sends event', (done) => { const $btn = cy.$$('#button') $btn....
cypress/packages/driver/cypress/e2e/commands/actions/trigger.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/commands/actions/trigger.cy.js", "repo_id": "cypress", "token_count": 18446 }
103
const stripAnsi = require('strip-ansi') const { assertLogLength } = require('../../support/utils') const { Promise } = Cypress describe('src/cy/commands/fixtures', () => { beforeEach(() => { return Cypress.emit('clear:fixtures:cache') }) // call all of the fixture triggers async to simulate // the real b...
cypress/packages/driver/cypress/e2e/commands/fixtures.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/commands/fixtures.cy.js", "repo_id": "cypress", "token_count": 3842 }
104
const baseUrl = Cypress.config('baseUrl') before(() => { // sessions has logic built in to persists sessions on UI refresh Cypress.session.clearAllSavedSessions() }) const expectCurrentSessionData = async (obj) => { return Cypress.session.getCurrentSessionData() .then((result) => { expect(result.cookies.m...
cypress/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js", "repo_id": "cypress", "token_count": 28691 }
105
const startingIndex = Cypress.isBrowser('firefox') ? 1 : 0 const timerNumber = (n) => n + startingIndex // NOTE: basically the same as a cy.wait(...) but uses setTimeout instead of Promise.delay // since firefox will sometimes have `Promise.delay(10)` fire faster than a `setTimeout(..., 1)` const cyWaitTimeout = (n) ...
cypress/packages/driver/cypress/e2e/cy/timers.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/cy/timers.cy.js", "repo_id": "cypress", "token_count": 5408 }
106
const { _ } = Cypress const pending = [] const testAfterRunEvents = [] Cypress.on('test:after:run', (test) => { testAfterRunEvents.push(test) if (test.state === 'pending') { return pending.push(test) } }) describe('src/cypress/runner', () => { context('pending tests', () => { it('is not pending', () ...
cypress/packages/driver/cypress/e2e/cypress/runner.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/cypress/runner.cy.js", "repo_id": "cypress", "token_count": 451 }
107
// https://github.com/cypress-io/cypress/issues/2118 it('will exit even if an onbeforeunload dialog is present in a child window', function () { cy.window().invoke('open', '/fixtures/blocking_onbeforeunload.html') })
cypress/packages/driver/cypress/e2e/e2e/abort_onbeforeunload_child.cy.ts/0
{ "file_path": "cypress/packages/driver/cypress/e2e/e2e/abort_onbeforeunload_child.cy.ts", "repo_id": "cypress", "token_count": 68 }
108
import { assertLogLength } from '../../../../support/utils' context('cy.origin log', { browser: '!webkit' }, () => { let logs: any = [] let lastTestLogId = '' beforeEach(() => { logs = [] cy.on('log:added', (attrs, log) => { logs.push(log) }) cy.visit('/fixtures/primary-origin.html') ...
cypress/packages/driver/cypress/e2e/e2e/origin/commands/log.cy.ts/0
{ "file_path": "cypress/packages/driver/cypress/e2e/e2e/origin/commands/log.cy.ts", "repo_id": "cypress", "token_count": 6338 }
109
import dayjs from 'dayjs' describe('cy.origin - cookie login', { browser: '!webkit' }, () => { const { _ } = Cypress // ensures unique username so there's no risk of false positives from // test pollution const getUsername = () => _.uniqueId('user') const verifyLoggedIn = (username, { cookieKey } = { cookie...
cypress/packages/driver/cypress/e2e/e2e/origin/cookie_login.cy.ts/0
{ "file_path": "cypress/packages/driver/cypress/e2e/e2e/origin/cookie_login.cy.ts", "repo_id": "cypress", "token_count": 13783 }
110
describe('cy.origin - uncaught errors', { browser: '!webkit' }, () => { beforeEach(() => { cy.visit('/fixtures/primary-origin.html') cy.get('a[data-cy="errors-link"]').click() }) describe('sync errors', () => { it('appropriately reports negative assertions', (done) => { cy.on('fail', (err) => {...
cypress/packages/driver/cypress/e2e/e2e/origin/uncaught_errors.cy.ts/0
{ "file_path": "cypress/packages/driver/cypress/e2e/e2e/origin/uncaught_errors.cy.ts", "repo_id": "cypress", "token_count": 7530 }
111
let changed = 0 // TODO(webkit): fix+unskip for webkit release describe('src/cy/commands/actions/type text_mask_spec', { browser: '!webkit' }, () => { beforeEach(() => { cy.visit('/fixtures/text-mask.html') // reset number of change events before test changed = 0 // count the number of change event...
cypress/packages/driver/cypress/e2e/e2e/text_mask.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/e2e/text_mask.cy.js", "repo_id": "cypress", "token_count": 1438 }
112
it('rewrites frameElement on the AUT to be null', () => { cy.visit('http://localhost:3500/fixtures/generic.html') cy.window().its('frameElement').should('be.null') }) it('does not rewrite frameElement if modifyObstructiveCode is false', () => { Cypress.config('modifyObstructiveCode', false) cy.visit('http://...
cypress/packages/driver/cypress/e2e/issues/2582.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/issues/2582.cy.js", "repo_id": "cypress", "token_count": 178 }
113
describe('issue #599', () => { it('does not error when attempting to redefine onreadystatechange', () => { cy.visit('/fixtures/issue-599.html') cy.contains('xhr test').click() cy.contains('xhr test').click() }) })
cypress/packages/driver/cypress/e2e/issues/599.cy.js/0
{ "file_path": "cypress/packages/driver/cypress/e2e/issues/599.cy.js", "repo_id": "cypress", "token_count": 85 }
114
describe('WebKit-specific behavior', { browser: 'webkit' }, () => { it('cy.origin() is disabled', (done) => { cy.on('fail', (err) => { expect(err.message).to.equal('`cy.origin()` is not currently supported in experimental WebKit.') expect(err.docsUrl).to.equal('https://on.cypress.io/webkit-experiment'...
cypress/packages/driver/cypress/e2e/webkit.cy.ts/0
{ "file_path": "cypress/packages/driver/cypress/e2e/webkit.cy.ts", "repo_id": "cypress", "token_count": 281 }
115
export const authCreds = { username: 'cypress', password: 'password123', }
cypress/packages/driver/cypress/fixtures/auth_creds.ts/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/auth_creds.ts", "repo_id": "cypress", "token_count": 27 }
116
<!DOCTYPE html> <html> <head> </head> <body> <h3>Download CSV</h3> <a data-cy="download-csv" href="downloads_records.csv" download>downloads_records.csv</a> <h3>Download CSV</h3> <a data-cy="download-without-download-attr" href="downloads_records.csv">download csv from anchor tag without download attr</a> <...
cypress/packages/driver/cypress/fixtures/downloads.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/downloads.html", "repo_id": "cypress", "token_count": 230 }
117
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>Page Title</title> <meta name='viewport' content='width=device-width, initial-scale=1'> </head> <body> <script> setTimeout(()=>{ one() }, 0) function one() { two() } ...
cypress/packages/driver/cypress/fixtures/global-error.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/global-error.html", "repo_id": "cypress", "token_count": 205 }
118
<html> <body> <h1 id="content"></h1> <script> var text = document.createTextNode(`navigator.webdriver is ${!!navigator.webdriver}`); document.getElementById("content").append(text); </script> </body> </html>
cypress/packages/driver/cypress/fixtures/issue-27939.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/issue-27939.html", "repo_id": "cypress", "token_count": 84 }
119
<!DOCTYPE html> <html> <body> <form tabindex="0"> <div style="height: 2000px"></div> <div id="clickme">click me</div> </form> <script> const button = document.getElementById('clickme') let yPos button.addEventListener('mousedown', e => { yPos = e.currentTarget.getBoundingClientRect().y ...
cypress/packages/driver/cypress/fixtures/issue-8279.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/issue-8279.html", "repo_id": "cypress", "token_count": 236 }
120
null
cypress/packages/driver/cypress/fixtures/null.json/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/null.json", "repo_id": "cypress", "token_count": 2 }
121
<!DOCTYPE html> <html> <head> <title>DOM Fixture</title> <script type="text/javascript" src="/node_modules/jquery/dist/jquery.js"></script> </head> <body> <div id="dom"> <style> #nonscroll-becomes-scrollable { height: 100px; width: 100px; overflow: hidden; ...
cypress/packages/driver/cypress/fixtures/scrolling.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/scrolling.html", "repo_id": "cypress", "token_count": 1137 }
122
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>Sync Errors</title> <link rel="icon" href="data:;base64,="> <script type='text/javascript'> window.onerror = function(){ parent.onerror.apply(parent, arguments); } </script...
cypress/packages/driver/cypress/fixtures/sync_error.html/0
{ "file_path": "cypress/packages/driver/cypress/fixtures/sync_error.html", "repo_id": "cypress", "token_count": 308 }
123
// only required to read in webpack config, since it is .ts require('@packages/ts/register') require('./server') const _ = require('lodash') const path = require('path') const fs = require('fs-extra') const Promise = require('bluebird') const wp = require('@cypress/webpack-preprocessor') const Jimp = require('jimp') co...
cypress/packages/driver/cypress/plugins/index.js/0
{ "file_path": "cypress/packages/driver/cypress/plugins/index.js", "repo_id": "cypress", "token_count": 1167 }
124
import Promise from 'bluebird' Promise.config({ cancellation: true, })
cypress/packages/driver/src/config/bluebird.ts/0
{ "file_path": "cypress/packages/driver/src/config/bluebird.ts", "repo_id": "cypress", "token_count": 23 }
125
import type { $Cy } from '../cypress/cy' import $errUtils from '../cypress/error_utils' export const handleUnsupportedAPIs = (Cypress: Cypress.Cypress, cy: $Cy) => { // Nested `origin` is not currently supported, but will be in the future // @ts-ignore cy.origin = () => $errUtils.throwErrByPath('origin.unsupport...
cypress/packages/driver/src/cross-origin/unsupported_apis.ts/0
{ "file_path": "cypress/packages/driver/src/cross-origin/unsupported_apis.ts", "repo_id": "cypress", "token_count": 334 }
126
import _ from 'lodash' import Promise from 'bluebird' import $dom from '../../../dom' import $errUtils from '../../../cypress/error_utils' import $actionability from '../../actionability' export const dispatch = (target, appWindow, eventName, options) => { const eventConstructor = options.eventConstructor ?? 'Event...
cypress/packages/driver/src/cy/commands/actions/trigger.ts/0
{ "file_path": "cypress/packages/driver/src/cy/commands/actions/trigger.ts", "repo_id": "cypress", "token_count": 1956 }
127
import _ from 'lodash' import UrlParse from 'url-parse' import Promise from 'bluebird' import $utils from '../../cypress/utils' import $errUtils from '../../cypress/error_utils' import { LogUtils, Log } from '../../cypress/log' import { bothUrlsMatchAndOneHasHash } from '../navigation' import { $Location, LocationObje...
cypress/packages/driver/src/cy/commands/navigation.ts/0
{ "file_path": "cypress/packages/driver/src/cy/commands/navigation.ts", "repo_id": "cypress", "token_count": 14599 }
128
import _ from 'lodash' import { $Location } from '../../../cypress/location' import { getAllHtmlOrigins, mapOrigins } from './origins' import { getCurrentOriginStorage, getPostMessageLocalStorage, setPostMessageLocalStorage } from './utils' export type StorageType = 'localStorage' | 'sessionStorage' interface GetSto...
cypress/packages/driver/src/cy/commands/sessions/storage.ts/0
{ "file_path": "cypress/packages/driver/src/cy/commands/sessions/storage.ts", "repo_id": "cypress", "token_count": 1561 }
129
import _ from 'lodash' import { PLAIN_FIELDS, STRING_MATCHER_FIELDS, DICT_STRING_MATCHER_FIELDS, RouteHandler, RouteMatcherOptions, RouteMatcher, StaticResponse, HttpRequestInterceptor, AnnotatedRouteMatcherOptions, AnnotatedStringMatcher, NetEvent, StringMatcher, NumberMatcher, BackendStat...
cypress/packages/driver/src/cy/net-stubbing/add-command.ts/0
{ "file_path": "cypress/packages/driver/src/cy/net-stubbing/add-command.ts", "repo_id": "cypress", "token_count": 3706 }
130
import _ from 'lodash' import md5 from 'md5' import path from 'path' import url from 'url' import $utils from '../cypress/utils' import LimitedMap from '../util/limited_map' const anyUrlInCssRe = /url\((['"])([^'"]*)\1\)/gm const screenStylesheetRe = /(screen|all)/ const reduceText = (arr, fn) => { return _.reduce(...
cypress/packages/driver/src/cy/snapshots_css.ts/0
{ "file_path": "cypress/packages/driver/src/cy/snapshots_css.ts", "repo_id": "cypress", "token_count": 2211 }
131
import _ from 'lodash' import $ from 'jquery' import Bluebird from 'bluebird' import Debug from 'debug' import { Queue } from '../util/queue' import $dom from '../dom' import $utils from './utils' import $errUtils from './error_utils' import type $Command from './command' import type { StateFunc } from './state' impor...
cypress/packages/driver/src/cypress/command_queue.ts/0
{ "file_path": "cypress/packages/driver/src/cypress/command_queue.ts", "repo_id": "cypress", "token_count": 6817 }
132
import _ from 'lodash' /** * Fix property reads and writes that could potentially help the AUT to break out of its iframe. * * @param currentWindow the value of `globalThis` from the scope of the window reference in question * @param accessedObject a reference to the object being accessed * @param accessedProp th...
cypress/packages/driver/src/cypress/resolvers.ts/0
{ "file_path": "cypress/packages/driver/src/cypress/resolvers.ts", "repo_id": "cypress", "token_count": 1489 }
133
// NOTE: Non-JQuery version of getElementDimensions is at app/runner/dimensions. // This duplication of code has been created when migrating legacy runner to app. // When migrating `driver`, we might need to remove this function and use the `app` version instead. import _ from 'lodash' const getElementDimensions = ($...
cypress/packages/driver/src/dom/dimensions.js/0
{ "file_path": "cypress/packages/driver/src/dom/dimensions.js", "repo_id": "cypress", "token_count": 972 }
134
import _ from 'lodash' import $elements from './elements' import $document from './document' const { isDocument } = $document export const detectVisibility = ($el: any) => { const list = extractTransformInfoFromElements($el) if (existsInvisibleBackface(list)) { return elIsBackface(list) ? 'backface' : 'visib...
cypress/packages/driver/src/dom/transform.ts/0
{ "file_path": "cypress/packages/driver/src/dom/transform.ts", "repo_id": "cypress", "token_count": 3233 }
135
// The type declarations for Cypress Log Group & the corresponding configuration permutations declare namespace Cypress { declare namespace LogGroup { type ApiCallback = (log: Cypress.Log) => Chainable<S> | null type LogGroup = (cypress: Cypress.Cypress, options: Partial<LogGroupConfig>, callback: LogGroupCal...
cypress/packages/driver/types/cy/logGroup.d.ts/0
{ "file_path": "cypress/packages/driver/types/cy/logGroup.d.ts", "repo_id": "cypress", "token_count": 415 }
136
const os = require('os') const path = require('path') const distPath = 'dist/Cypress' const execPath = { darwin: 'Cypress.app/Contents/MacOS/Cypress', freebsd: 'Cypress', linux: 'Cypress', win32: 'Cypress.exe', } const resourcesPath = { darwin: 'Cypress.app/Contents/Resources', freebsd: 'resources', li...
cypress/packages/electron/lib/paths.js/0
{ "file_path": "cypress/packages/electron/lib/paths.js", "repo_id": "cypress", "token_count": 450 }
137
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/CHROME_WEB_SECURITY_NOT_SUPPORTED.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/CHROME_WEB_SECURITY_NOT_SUPPORTED.html", "repo_id": "cypress", "token_count": 593 }
138
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/CLOUD_PARALLEL_GROUP_PARAMS_MISMATCH.html", "repo_id": "cypress", "token_count": 1962 }
139
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidArray.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/CONFIG_VALIDATION_ERROR - invalidArray.html", "repo_id": "cypress", "token_count": 997 }
140
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/EXPERIMENTAL_NETWORK_STUBBING_REMOVED.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/EXPERIMENTAL_NETWORK_STUBBING_REMOVED.html", "repo_id": "cypress", "token_count": 644 }
141
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/FIXTURE_NOT_FOUND.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/FIXTURE_NOT_FOUND.html", "repo_id": "cypress", "token_count": 952 }
142
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap" rel="stylesheet"> ...
cypress/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.html/0
{ "file_path": "cypress/packages/errors/__snapshot-html__/SETUP_NODE_EVENTS_IS_NOT_FUNCTION - array.html", "repo_id": "cypress", "token_count": 1506 }
143
import { expect } from 'chai' import { stripIndent } from '../../src/stripIndent' describe('src/stripIndent', () => { it('does not trip right end', () => { const str = stripIndent`\ There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser. [Stack Trace] ` ...
cypress/packages/errors/test/unit/stripIndent_spec.ts/0
{ "file_path": "cypress/packages/errors/test/unit/stripIndent_spec.ts", "repo_id": "cypress", "token_count": 284 }
144
theme/Cached Theme.pak theme/Cached Theme Material Design.pak
cypress/packages/extension/.npmignore/0
{ "file_path": "cypress/packages/extension/.npmignore", "repo_id": "cypress", "token_count": 17 }
145
const path = require('path') const Promise = require('bluebird') const { getCookieUrl } = require('./util') const fs = Promise.promisifyAll(require('fs')) module.exports = { getPathToExtension (...args) { args = [__dirname, '..', 'dist', 'v2'].concat(args) return path.join.apply(path, args) }, getPathT...
cypress/packages/extension/lib/extension.js/0
{ "file_path": "cypress/packages/extension/lib/extension.js", "repo_id": "cypress", "token_count": 337 }
146
{ "globals": { "defineProps": "readonly", "defineEmits": "readonly", "defineExpose": "readonly", "withDefaults": "readonly" }, "plugins": [ "cypress", "@cypress/dev" ], "extends": [ "plugin:@cypress/dev/general", "plugin:@cypress/dev/tests", "plugin:vue/vue3-recommended" ...
cypress/packages/frontend-shared/.eslintrc.json/0
{ "file_path": "cypress/packages/frontend-shared/.eslintrc.json", "repo_id": "cypress", "token_count": 661 }
147
import { buildClientSchema } from 'graphql' import schemaForTests from '../../../src/generated/schema-for-tests.gen.json' // @ts-expect-error - for some reason the JSON type isn't strict enough export const clientTestSchema = buildClientSchema(schemaForTests, { assumeValid: true })
cypress/packages/frontend-shared/cypress/support/mock-graphql/clientTestSchema.ts/0
{ "file_path": "cypress/packages/frontend-shared/cypress/support/mock-graphql/clientTestSchema.ts", "repo_id": "cypress", "token_count": 85 }
148
import { logInternal } from './utils' declare global { namespace Cypress { interface Chainable { /** * Tabs until the result of fn is true */ tabUntil(fn: ($el: JQuery) => boolean, limit?: number): Chainable<any> } } } export function tabUntil (fn: (el: JQuery<HTMLElement>) => bo...
cypress/packages/frontend-shared/cypress/support/tab-until.ts/0
{ "file_path": "cypress/packages/frontend-shared/cypress/support/tab-until.ts", "repo_id": "cypress", "token_count": 322 }
149
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M11.9999 6.99994L7.99994 2.99994M7.99994 2.99994L3.99994 6.99994M7.99994 2.99994L7.99994 12.9999" stroke="#1B1E2E" class="icon-dark" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg>
cypress/packages/frontend-shared/src/assets/icons/arrow-up_x16.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/arrow-up_x16.svg", "repo_id": "cypress", "token_count": 139 }
150
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1 2.5L4 5.5L7 2.5" stroke="#1B1E2E" class="icon-dark" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg>
cypress/packages/frontend-shared/src/assets/icons/chevron-down-small_x8.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/chevron-down-small_x8.svg", "repo_id": "cypress", "token_count": 102 }
151
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z" fill="#C2F1DE"/> <path d="M15.999 9L11 15L8.00098 12" stroke="#00814D" stroke-width="2" strok...
cypress/packages/frontend-shared/src/assets/icons/file-changes-added_x24.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/file-changes-added_x24.svg", "repo_id": "cypress", "token_count": 168 }
152
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M2 2H6V6H2V2Z" fill="currentColor" style="opacity: 0.35"/> <path d="M2 10H6V14H2V10Z" fill="currentColor" style="opacity: 0.35"/> <path d="M10 2H14V6H10V2Z" fill="currentColor" style="opacity: 0.35"/> <path d="M10 1...
cypress/packages/frontend-shared/src/assets/icons/grid-2x2_x16.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/grid-2x2_x16.svg", "repo_id": "cypress", "token_count": 318 }
153
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path class="icon-dark" d="M7 2L4 14M9 14L12 2M14 6H3M13 10H2" stroke="#1B1E2E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg>
cypress/packages/frontend-shared/src/assets/icons/octothorpe_x16.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/octothorpe_x16.svg", "repo_id": "cypress", "token_count": 109 }
154
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle id="InnerCircle" class="icon-light" cx="8" cy="8" r="6" fill="none" /> <circle id="OuterCircle" class="icon-dark" cx="8" cy="8" r="7" stroke="#BFC2D4" stroke-width="2" stroke-linecap="round" stroke-linejoin="roun...
cypress/packages/frontend-shared/src/assets/icons/queued-solid_x16.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/queued-solid_x16.svg", "repo_id": "cypress", "token_count": 138 }
155
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 0C4.55228 0 5 0.447715 5 1V4C5 4.55228 4.55228 5 4 5C3.44772 5 3 4.55228 3 4V1C3 0.447715 3.44772 0 4 0Z" fill="#DB7903"/> <path d="M5 7C5 7.55228 4.55228 8 4 8C3.44772 8 3 7.5...
cypress/packages/frontend-shared/src/assets/icons/status-errored_x8.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/status-errored_x8.svg", "repo_id": "cypress", "token_count": 202 }
156
<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M101.719 101.719C78.6784 124.76 41.3216 124.76 18.2807 101.719C-4.76023 78.6784 -4.76023 41.3216 18.2807 18.2807C41.3216 -4.76023 78.6784 -4.76023 101.719 18.2807C124.76 41.3216 124.76 78.6784 101.719 101.719Z" ...
cypress/packages/frontend-shared/src/assets/icons/testing-type-e2e_x120.svg/0
{ "file_path": "cypress/packages/frontend-shared/src/assets/icons/testing-type-e2e_x120.svg", "repo_id": "cypress", "token_count": 191 }
157
import BaseLink from './BaseLink.vue' describe('<BaseLink />', () => { it('renders with default styles', { viewportWidth: 100, viewportHeight: 60 }, () => { cy.mount(() => ( <BaseLink href="http://test.test" >Test Link</BaseLink> )) cy.get('a').should('have.class', 'text-indigo-500')...
cypress/packages/frontend-shared/src/components/BaseLink.cy.tsx/0
{ "file_path": "cypress/packages/frontend-shared/src/components/BaseLink.cy.tsx", "repo_id": "cypress", "token_count": 343 }
158
<template> <span v-if="icon" class="flex align-center justify-center" > <component :is="icon" :class="iconClass" /> </span> </template> <script lang="ts"> export default { inheritAttrs: true, } </script> <script lang="ts" setup> import type { FunctionalComponent, SVGAttributes } fr...
cypress/packages/frontend-shared/src/components/Icon.vue/0
{ "file_path": "cypress/packages/frontend-shared/src/components/Icon.vue", "repo_id": "cypress", "token_count": 163 }
159
<template> <Listbox :value="props.modelValue" as="div" @update:modelValue="handleUpdate" > <template #default="{ open }"> <ListboxLabel class="font-medium text-sm text-gray-800 block"> <template v-if="label"> {{ label }} </template> <slot v-else ...
cypress/packages/frontend-shared/src/components/Select.vue/0
{ "file_path": "cypress/packages/frontend-shared/src/components/Select.vue", "repo_id": "cypress", "token_count": 3402 }
160
import Tooltip from './Tooltip.vue' import Button from './Button.vue' const slotContents = (x: number) => ({ popper: () => <span>Tooltip {x}</span>, default: () => <span class={`default-slot${x}`}>hello</span>, }) describe('<Tooltip />', () => { it('playground', () => { cy.mount(() => { return ( ...
cypress/packages/frontend-shared/src/components/Tooltip.cy.tsx/0
{ "file_path": "cypress/packages/frontend-shared/src/components/Tooltip.cy.tsx", "repo_id": "cypress", "token_count": 1428 }
161
<!-- This component exists to avoid repeating this logic between the root components of packages/app and packages/launchpad. It doesn't render anything and can probably be a composable. It hasn't been made into a composable yet as we have a convention where we put GQL queries into Vue components, so for simplic...
cypress/packages/frontend-shared/src/gql-components/CloudViewerAndProject.vue/0
{ "file_path": "cypress/packages/frontend-shared/src/gql-components/CloudViewerAndProject.vue", "repo_id": "cypress", "token_count": 1816 }
162
import RecordRunModalVue from './RecordRunModal.vue' import { defaultMessages } from '@cy/i18n' import { UsePromptManager_SetProjectPreferencesDocument } from '../generated/graphql-test' describe('RecordRunModal', () => { it('renders and records that it has been shown', () => { const now = Date.now() cy.clo...
cypress/packages/frontend-shared/src/gql-components/RecordRunModal.cy.tsx/0
{ "file_path": "cypress/packages/frontend-shared/src/gql-components/RecordRunModal.cy.tsx", "repo_id": "cypress", "token_count": 703 }
163
<template> <Dialog open class="inset-0 z-50 fixed overflow-y-auto" @close="cancelLogin" > <div class="flex min-h-screen items-center justify-center"> <DialogOverlay class="bg-gray-800 opacity-90 inset-0 fixed" /> <div class="bg-white rounded mx-auto min-w-[480px] max-w-[600px] relative"...
cypress/packages/frontend-shared/src/gql-components/modals/LoginModal.vue/0
{ "file_path": "cypress/packages/frontend-shared/src/gql-components/modals/LoginModal.vue", "repo_id": "cypress", "token_count": 2301 }
164
/** * Using the clipboard API from electron instead of the browser's navigator API, * we avoid the safety measures from the browser. * This way, regardless of the browser, we can use and test the clipboard. */ import { Clipboard_CopyToClipboardDocument } from '../generated/graphql' import { gql, useMutation } from ...
cypress/packages/frontend-shared/src/gql-components/useClipboard.ts/0
{ "file_path": "cypress/packages/frontend-shared/src/gql-components/useClipboard.ts", "repo_id": "cypress", "token_count": 364 }
165
{ "information_for_contributors": [ "This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage", "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to recei...
cypress/packages/frontend-shared/src/public/shiki/languages/json.tmLanguage.json/0
{ "file_path": "cypress/packages/frontend-shared/src/public/shiki/languages/json.tmLanguage.json", "repo_id": "cypress", "token_count": 3278 }
166
/** * Correctly decodes Unicode string in encoded in base64 * Copied from driver/src/cypress/utils.ts * * @see https://github.com/cypress-io/cypress/issues/5435 * @see https://github.com/cypress-io/cypress/issues/7507 * @see https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-does...
cypress/packages/frontend-shared/src/utils/base64.ts/0
{ "file_path": "cypress/packages/frontend-shared/src/utils/base64.ts", "repo_id": "cypress", "token_count": 545 }
167
// @ts-check import path from 'path' import { fileURLToPath } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import vueI18n from '@intlify/unplugin-vue-i18n/vite' import VueSvgLoader from 'vite-svg-loader' import Components from 'unplugin-...
cypress/packages/frontend-shared/vite.config.mjs/0
{ "file_path": "cypress/packages/frontend-shared/vite.config.mjs", "repo_id": "cypress", "token_count": 2122 }
168
import { plugin } from 'nexus' import debugLib from 'debug' import { pathToArray } from 'graphql/jsutils/Path' const debugField = debugLib(`cypress-verbose:graphql:fields`) const SLOW_FIELD_THRESHOLD = 100 // Log any field taking longer than 100ms const delta = (d: Date) => { return new Date().valueOf() - d.valueO...
cypress/packages/graphql/src/plugins/nexusDebugFieldPlugin.ts/0
{ "file_path": "cypress/packages/graphql/src/plugins/nexusDebugFieldPlugin.ts", "repo_id": "cypress", "token_count": 503 }
169
import { CODE_LANGUAGES } from '@packages/types' import { WIZARD_BUNDLERS, SUPPORT_STATUSES } from '@packages/scaffold-config' import { enumType } from 'nexus' export const SupportedBundlerEnum = enumType({ name: 'SupportedBundlers', description: 'The bundlers that we can use with Cypress', members: WIZARD_BUNDL...
cypress/packages/graphql/src/schemaTypes/enumTypes/gql-WizardEnums.ts/0
{ "file_path": "cypress/packages/graphql/src/schemaTypes/enumTypes/gql-WizardEnums.ts", "repo_id": "cypress", "token_count": 282 }
170
import { inputObjectType, objectType } from 'nexus' export const Cohort = objectType({ name: 'Cohort', description: 'used to distinguish one group of users from another', definition (t) { t.nonNull.string('name', { description: 'name used to identify the cohort topic (e.g. "LoginBanner" ) ' }) t.nonNull....
cypress/packages/graphql/src/schemaTypes/objectTypes/gql-Cohorts.ts/0
{ "file_path": "cypress/packages/graphql/src/schemaTypes/objectTypes/gql-Cohorts.ts", "repo_id": "cypress", "token_count": 271 }
171
import { objectType } from 'nexus' import { ReactComponentDescriptor } from './gql-ReactComponentDescriptor' export const ReactComponentResponse = objectType({ name: 'ReactComponentResponse', description: 'Response from getReactComponentsFromFile', definition (t) { t.nonNull.list.nonNull.field('components', ...
cypress/packages/graphql/src/schemaTypes/objectTypes/gql-ReactComponentResponse.ts/0
{ "file_path": "cypress/packages/graphql/src/schemaTypes/objectTypes/gql-ReactComponentResponse.ts", "repo_id": "cypress", "token_count": 178 }
172
import { DateTimeResolver, JSONResolver } from 'graphql-scalars' import { asNexusMethod } from 'nexus' // Apollo VSCode is having trouble with this directive JSONResolver.specifiedByUrl = null export const customScalars = [ asNexusMethod(JSONResolver, 'json'), asNexusMethod(DateTimeResolver, 'dateTime'), ]
cypress/packages/graphql/src/schemaTypes/scalarTypes/gql-customScalars.ts/0
{ "file_path": "cypress/packages/graphql/src/schemaTypes/scalarTypes/gql-customScalars.ts", "repo_id": "cypress", "token_count": 101 }
173
require('@packages/ts/register') module.exports = require('./lib/proxy') module.exports.CA = require('./lib/ca')
cypress/packages/https-proxy/index.js/0
{ "file_path": "cypress/packages/https-proxy/index.js", "repo_id": "cypress", "token_count": 42 }
174
/* eslint-disable no-console, */ const http = require('http') const Promise = require('bluebird') const srv = http.createServer((req, res) => { console.log('HTTP SERVER REQUEST URL:', req.url) console.log('HTTP SERVER REQUEST HEADERS:', req.headers) res.setHeader('Content-Type', 'text/html') res.writeHead...
cypress/packages/https-proxy/test/helpers/http_server.js/0
{ "file_path": "cypress/packages/https-proxy/test/helpers/http_server.js", "repo_id": "cypress", "token_count": 273 }
175
module.exports = require('./dist/icons')
cypress/packages/icons/index.js/0
{ "file_path": "cypress/packages/icons/index.js", "repo_id": "cypress", "token_count": 14 }
176
import { findApp, FindAppParams } from './util' import type { Browser, DetectedBrowser } from '@packages/types' import * as linuxHelper from '../linux' import Debug from 'debug' import { get } from 'lodash' const debugVerbose = Debug('cypress-verbose:launcher:darwin') type Detectors = { [name: string]: { [chann...
cypress/packages/launcher/lib/darwin/index.ts/0
{ "file_path": "cypress/packages/launcher/lib/darwin/index.ts", "repo_id": "cypress", "token_count": 1283 }
177
import _ from 'lodash' import os from 'os' import cp from 'child_process' import * as darwinHelper from '../../lib/darwin' import * as linuxHelper from '../../lib/linux' import * as darwinUtil from '../../lib/darwin/util' import { utils } from '../../lib/utils' import { expect } from 'chai' import sinon, { SinonStub } ...
cypress/packages/launcher/test/unit/darwin_spec.ts/0
{ "file_path": "cypress/packages/launcher/test/unit/darwin_spec.ts", "repo_id": "cypress", "token_count": 2328 }
178
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json' import pkg from '../../../../package.json' import { getPathForPlatform } from './support/getPathForPlatform' const expectStackToBe = (mode: 'open' | 'closed') => { cy.get(`[data-cy="stack-open-${mode === 'open' ? 'true' : 'false'}"]`) } ...
cypress/packages/launchpad/cypress/e2e/config-files-error-handling.cy.ts/0
{ "file_path": "cypress/packages/launchpad/cypress/e2e/config-files-error-handling.cy.ts", "repo_id": "cypress", "token_count": 5392 }
179
describe('config-spec', () => { it('can filter browsers from config', () => { cy.scaffoldProject('plugin-filter-browsers') cy.findBrowsers() cy.openProject('plugin-filter-browsers', ['--e2e']) cy.withCtx(async (ctx) => { expect(await ctx.browser.machineBrowsers()).to.have.length(12) // stubbed l...
cypress/packages/launchpad/cypress/e2e/system-tests/config-spec.cy.ts/0
{ "file_path": "cypress/packages/launchpad/cypress/e2e/system-tests/config-spec.cy.ts", "repo_id": "cypress", "token_count": 206 }
180
<template> <div class="text-center"> <h1 class="mb-2 text-2rem"> {{ t('globalPage.empty.title') }} </h1> <p class="mb-6 text-lg font-light text-body-gray"> {{ t('globalPage.empty.helper') }} </p> <FileDropzone @addProject="emit('addProject', $event)" /> </div> </template> <script la...
cypress/packages/launchpad/src/global/GlobalEmpty.vue/0
{ "file_path": "cypress/packages/launchpad/src/global/GlobalEmpty.vue", "repo_id": "cypress", "token_count": 224 }
181
<template> <StandardModal :model-value="true" :title="t('migration.renameAuto.modal.title')" :no-help="true" @update:modelValue="emit('cancel')" > <Alert status="warning" :title="t('migration.renameAuto.modal.warning')" :icon="WarningIcon" icon-classes="icon-dark-orange-4...
cypress/packages/launchpad/src/migration/OptOutModal.vue/0
{ "file_path": "cypress/packages/launchpad/src/migration/OptOutModal.vue", "repo_id": "cypress", "token_count": 2046 }
182
<template> <li class="mb-[4px]"> <span class="text-gray-600"> <slot /> </span> </li> </template>
cypress/packages/launchpad/src/migration/fragments/MigrationListItem.vue/0
{ "file_path": "cypress/packages/launchpad/src/migration/fragments/MigrationListItem.vue", "repo_id": "cypress", "token_count": 55 }
183
<template> <h1 class="pt-[14px] font-medium text-center text-[32px] leading-snug text-body-gray-900" :data-cy="`launchpad-${title}`" > {{ title }} </h1> <p class="text-center text-body-gray-600 text-lg" > {{ description }} </p> </template> <script setup lang="ts"> defineProps<{ title:...
cypress/packages/launchpad/src/setup/LaunchpadHeader.vue/0
{ "file_path": "cypress/packages/launchpad/src/setup/LaunchpadHeader.vue", "repo_id": "cypress", "token_count": 154 }
184
import type { SupportedBundlers, } from '../generated/graphql' interface RootOption { name: string id: string isDetected?: boolean } export interface FrameworkOption extends RootOption { type: string supportStatus: Cypress.ResolvedComponentFrameworkDefinition['supportStatus'] icon?: string } interface ...
cypress/packages/launchpad/src/setup/types.ts/0
{ "file_path": "cypress/packages/launchpad/src/setup/types.ts", "repo_id": "cypress", "token_count": 123 }
185
import Debug from 'debug' import type { ErrorMiddleware } from '@packages/proxy' import type { CyHttpMessages } from '../../types' import _ from 'lodash' import * as errors from '@packages/server/lib/errors' const debug = Debug('cypress:net-stubbing:server:intercept-error') export const InterceptError: ErrorMiddlewa...
cypress/packages/net-stubbing/lib/server/middleware/error.ts/0
{ "file_path": "cypress/packages/net-stubbing/lib/server/middleware/error.ts", "repo_id": "cypress", "token_count": 272 }
186
{ "extends": "../ts/tsconfig.json", "include": [ "*.ts", "lib/*.ts", "lib/**/*.ts" ], "files": [ "./../ts/index.d.ts" ] }
cypress/packages/net-stubbing/tsconfig.json/0
{ "file_path": "cypress/packages/net-stubbing/tsconfig.json", "repo_id": "cypress", "token_count": 81 }
187
{ "name": "@packages/network", "version": "0.0.0-development", "private": true, "main": "index.js", "scripts": { "build-prod": "tsc --project .", "check-ts": "tsc --noEmit", "clean": "rimraf 'lib/**/*.js'", "clean-deps": "rimraf node_modules", "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,...
cypress/packages/network/package.json/0
{ "file_path": "cypress/packages/network/package.json", "repo_id": "cypress", "token_count": 669 }
188
import debug from 'debug' import { DefaultTranspileCache } from './default-transpile-cache' import { GetModuleKeyOpts, ModuleLoaderOpts, PackherdModuleLoader, } from './loader' import type { ModuleNeedsReload, PackherdTranspileOpts, } from './types' import path from 'path' const logInfo = debug('cypress-verb...
cypress/packages/packherd-require/src/require.ts/0
{ "file_path": "cypress/packages/packherd-require/src/require.ts", "repo_id": "cypress", "token_count": 2384 }
189
const { sum } = require('./foo') module.exports = { result: sum + sum, origin: 'file' }
cypress/packages/packherd-require/test/fixtures/normal-deps/lib/entry.js/0
{ "file_path": "cypress/packages/packherd-require/test/fixtures/normal-deps/lib/entry.js", "repo_id": "cypress", "token_count": 31 }
190
import type { OutgoingHttpHeaders } from 'http' const cspRegExp = /[; ]*([^\n\r; ]+) ?([^\n\r;]+)*/g export const cspHeaderNames = ['content-security-policy', 'content-security-policy-report-only'] as const export const nonceDirectives = ['script-src-elem', 'script-src', 'default-src'] export const problematicCspDi...
cypress/packages/proxy/lib/http/util/csp-header.ts/0
{ "file_path": "cypress/packages/proxy/lib/http/util/csp-header.ts", "repo_id": "cypress", "token_count": 1645 }
191
import _ from 'lodash' import ErrorMiddleware, { AbortRequest, UnpipeResponse, DestroyResponse, } from '../../../lib/http/error-middleware' import { expect } from 'chai' import sinon from 'sinon' import { testMiddleware, } from './helpers' describe('http/error-middleware', function () { it('exports the membe...
cypress/packages/proxy/test/unit/http/error-middleware.spec.ts/0
{ "file_path": "cypress/packages/proxy/test/unit/http/error-middleware.spec.ts", "repo_id": "cypress", "token_count": 1054 }
192
{ "plugins": [ "cypress", "@cypress/dev" ], "env": { "cypress/globals": true } }
cypress/packages/reporter/.eslintrc.json/0
{ "file_path": "cypress/packages/reporter/.eslintrc.json", "repo_id": "cypress", "token_count": 53 }
193
import { MobxRunnerStore } from '@packages/app/src/store' import { EventEmitter } from 'events' import { RootRunnable } from '../../src/runnables/runnables-store' const runnerStore = new MobxRunnerStore('e2e') runnerStore.setSpec({ name: 'foo.js', relative: 'relative/path/to/foo.js', absolute: '/absolute/path/t...
cypress/packages/reporter/cypress/e2e/suites.cy.ts/0
{ "file_path": "cypress/packages/reporter/cypress/e2e/suites.cy.ts", "repo_id": "cypress", "token_count": 2102 }
194
{ "id": "r1", "title": "", "root": true, "hooks": [], "tests": [], "suites": [ { "id": "r2", "title": "suite 1", "root": false, "hooks": [], "tests": [ { "id": "r3", "title": "test 1", "state": "passed" }, { "i...
cypress/packages/reporter/cypress/fixtures/runnables.json/0
{ "file_path": "cypress/packages/reporter/cypress/fixtures/runnables.json", "repo_id": "cypress", "token_count": 2827 }
195
import cs from 'classnames' import _ from 'lodash' import { observer } from 'mobx-react' import React from 'react' import Collapsible from '../collapsible/collapsible' import AgentModel from './agent-model' import { Alias } from '../instruments/instrument-model' export interface AgentProps { model: AgentModel } co...
cypress/packages/reporter/src/agents/agents.tsx/0
{ "file_path": "cypress/packages/reporter/src/agents/agents.tsx", "repo_id": "cypress", "token_count": 897 }
196
import _ from 'lodash' import React, { MouseEvent } from 'react' import cs from 'classnames' import { observer } from 'mobx-react' import Markdown from 'markdown-it' import Collapsible from '../collapsible/collapsible' import ErrorCodeFrame from '../errors/error-code-frame' import ErrorStack from '../errors/error-stac...
cypress/packages/reporter/src/errors/test-error.tsx/0
{ "file_path": "cypress/packages/reporter/src/errors/test-error.tsx", "repo_id": "cypress", "token_count": 1517 }
197
import _ from 'lodash' import { observable } from 'mobx' interface DefaultAppState { isPaused: boolean isRunning: boolean isPreferencesMenuOpen: boolean nextCommandName: string | null | undefined pinnedSnapshotId: number | string | null studioActive: boolean } // these are used for the `reset` method // s...
cypress/packages/reporter/src/lib/app-state.ts/0
{ "file_path": "cypress/packages/reporter/src/lib/app-state.ts", "repo_id": "cypress", "token_count": 1077 }
198
$cy-tooltip-class: 'cy-tooltip'; @import '../../node_modules/@cypress/react-tooltip/dist/tooltip.scss'; .cy-tooltip { background-color: $gray-50; border-color: $gray-50; color: $gray-1000; font-family: $font-sans; word-wrap: break-word; .cy-tooltip-arrow { overflow: visible; svg { fill: $gra...
cypress/packages/reporter/src/lib/tooltip.scss/0
{ "file_path": "cypress/packages/reporter/src/lib/tooltip.scss", "repo_id": "cypress", "token_count": 331 }
199