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/system-tests/test-binary/ci_environments_spec.ts | system-tests/test-binary/ci_environments_spec.ts | import systemTests, { ItOptions } from '../lib/system-tests'
function smokeTestDockerImage (title: string, dockerImage: string, expectedExitCode: number, onRun?: ItOptions['onRun']) {
systemTests.it(title, {
withBinary: true,
browser: 'electron',
dockerImage,
spec: 'test1.js',
specDir: 'tests',
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test-binary/module_api_spec.ts | system-tests/test-binary/module_api_spec.ts | import systemTests from '../lib/system-tests'
describe('module API', () => {
systemTests.it('can run module API Mocha spec', {
timeout: 240000,
dockerImage: 'cypress/base-internal:22.19.0-trixie',
withBinary: true,
project: 'module-api',
browser: 'electron',
command: 'yarn',
args: ['test'... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/justInTimeCompile_spec.ts | system-tests/test/justInTimeCompile_spec.ts | import systemTests from '../lib/system-tests'
// original source code https://github.com/lodash/lodash/issues/2459#issuecomment-230255219
const getAllMatches = (source, regex) => {
const matches = []
source.replace(regex, function () {
matches.push({
match: arguments[0],
offset: arguments[argument... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/plugin_run_events_spec.ts | system-tests/test/plugin_run_events_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e plugin run events', () => {
systemTests.setup()
systemTests.it('sends events', {
browser: 'electron',
project: 'plugin-run-events',
snapshot: true,
})
systemTests.it('handles async before:spec', {
browser: 'electron',
project: 'p... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/headless_spec.ts | system-tests/test/headless_spec.ts | import systemTests, { BrowserName } from '../lib/system-tests'
describe('e2e headless', function () {
systemTests.setup()
describe('ELECTRON_RUN_AS_NODE', () => {
const baseSpec = {
spec: 'headless.cy.js',
config: {
env: {
'CI': process.env.CI,
'EXPECT_HEADLESS': '1',
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/experimental_skip_domain_injection_spec.ts | system-tests/test/experimental_skip_domain_injection_spec.ts | import path from 'path'
import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const e2ePath = Fixtures.projectPath('e2e')
const PORT = 3500
const onServer = function (app) {
app.get('/primary_origin.html', (_, res) => {
res.sendFile(path.join(e2ePath, `primary_origin.html`))
})
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/subdomain_spec.ts | system-tests/test/subdomain_spec.ts | import cors from 'cors'
import parser from 'cookie-parser'
import session from 'express-session'
import systemTests from '../lib/system-tests'
const onServer = function (app) {
app.use(parser())
app.use((req, res, next) => {
console.log('** REQUEST HEADERS ARE', req.url, req.headers)
return next()
})
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/webpack_dev_server_spec.ts | system-tests/test/webpack_dev_server_spec.ts | import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
import path from 'path'
import globby from 'globby'
import { escapeRegExp } from 'lodash'
describe('@cypress/webpack-dev-server', function () {
systemTests.setup()
const wdsPath = Fixtures.projectPath('webpack-dev-server')
sys... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_7217_spec.ts | system-tests/test/issue_7217_spec.ts | import path from 'path'
import systemTests from '../lib/system-tests'
describe('e2e issue 7217', () => {
systemTests.setup()
// this test ensures that the right error is reported if the
// browser can't connect
// https://github.com/cypress-io/cypress/issues/7217
systemTests.it('shows correct error if brows... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/test_isolation_spec.ts | system-tests/test/test_isolation_spec.ts | import systemTests from '../lib/system-tests'
import childProcess from 'child_process'
describe('Test Isolation', () => {
systemTests.setup()
systemTests.it('fires events in the right order with the right arguments - run mode', {
project: 'cypress-in-cypress',
spec: 'test-isolation.spec.js',
expectedE... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/electron_animation_bug_spec.ts | system-tests/test/electron_animation_bug_spec.ts | import { default as systemTests } from '../lib/system-tests'
describe('e2e electron animation bug', () => {
systemTests.it('executes a test that demonstrates the electron animation bug and ensures that we have worked around it', {
browser: 'electron',
project: 'e2e',
spec: 'electron_animation_bug.cy.ts',... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/fails_prior_to_top_change_retry_succeeds_spec.ts | system-tests/test/fails_prior_to_top_change_retry_succeeds_spec.ts | import systemTests from '../lib/system-tests'
const onServer = function (app) {
app.get('/index.html', (req, res) => {
return res.send('<html><body><h1>index</h1></body></html>')
})
}
describe('fails prior to top change retry succeeds', () => {
systemTests.setup({
servers: {
port: 5353,
onSe... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/before_browser_launch_spec.ts | system-tests/test/before_browser_launch_spec.ts | import Fixtures from '../lib/fixtures'
import systemTests from '../lib/system-tests'
import browserUtils from '@packages/server/lib/browsers/utils'
const browser = {
name: 'chrome',
channel: 'stable',
}
const isTextTerminal = true // we're always in run mode
const PATH_TO_CHROME_PROFILE = browserUtils.getProfileDi... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/headed_spec.ts | system-tests/test/headed_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e headed', function () {
systemTests.setup()
systemTests.it(`runs multiple specs in headed mode`, {
project: 'e2e',
headed: true,
spec: 'a_record.cy.js,b_record.cy.js,simple_passing.cy.js',
expectedExitCode: 0,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/sourcemaps_spec.ts | system-tests/test/sourcemaps_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e sourcemaps', () => {
systemTests.setup()
systemTests.it('detects sourcemaps as enabled', {
browser: '!webkit',
project: 'sourcemaps',
spec: 'validate-sourcemaps.cy.js',
configFile: 'cypress-enabled.config.mjs',
})
systemTests.it('det... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/typescript_plugins_spec.ts | system-tests/test/typescript_plugins_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e typescript in plugins file', function () {
systemTests.setup()
it('handles tsconfig with module other than commonjs', function () {
return systemTests.exec(this, {
project: 'ts-proj-with-module-esnext',
})
})
// https://github.com/cypr... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/session_spec.ts | system-tests/test/session_spec.ts | import systemTests from '../lib/system-tests'
import parser from 'cookie-parser'
import BodyParser from 'body-parser'
const it = systemTests.it
const onServer = function (app) {
app.use(parser())
app.get('*', (req, res, next) => {
res.cookie(req.path, 'value', {
sameSite: 'None',
secure: true,
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/config_modules_spec.ts | system-tests/test/config_modules_spec.ts | import systemTests from '../lib/system-tests'
// All projects live inside of projects/config-cjs-and-esm
describe('cypress config with esm and cjs', function () {
systemTests.setup()
;[
'config-cjs-and-esm/config-with-mjs',
'config-cjs-and-esm/config-with-cjs',
'config-cjs-and-esm/config-with-js-modul... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/non_proxied_spec.ts | system-tests/test/non_proxied_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e non-proxied spec', () => {
systemTests.setup()
systemTests.it('passes', {
spec: 'spec.cy.js',
browser: 'chrome',
project: 'non-proxied',
snapshot: true,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/webpack_preprocessor_spec.ts | system-tests/test/webpack_preprocessor_spec.ts | import systemTests from '../lib/system-tests'
describe('@cypress/webpack-preprocessor', function () {
systemTests.setup()
systemTests.it('with Webpack 5', {
project: 'webpack-preprocessor-webpack-5',
testingType: 'e2e',
spec: '**/*.cy.js',
browser: 'chrome',
expectedExitCode: 0,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/studio_spec.ts | system-tests/test/studio_spec.ts | import path from 'path'
import systemTests from '../lib/system-tests'
import Fixtures, { projectPath } from '../lib/fixtures'
import { promises as fs } from 'fs'
const snapshotFile = (project, file, folder = 'e2e') => {
const filePath = path.join(projectPath(project), 'cypress', folder, file)
return fs.readFile(f... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/experimental_csp_allow_list_spec.ts | system-tests/test/experimental_csp_allow_list_spec.ts | import path from 'path'
import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const e2ePath = Fixtures.projectPath('e2e')
const PORT = 3500
const onServer = function (app) {
app.get(`/csp_empty_style.css`, (req, res) => {
// instead of logging, check the color of the h1 inside csp... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/ci_failure_spec.ts | system-tests/test/ci_failure_spec.ts | import systemTests from '../lib/system-tests'
describe('CI failure', () => {
systemTests.setup()
it('fails and displays the message that points users to the cloud', function () {
return systemTests.exec(this, {
browser: 'electron',
spec: 'simple_failing.cy.js',
processEnv: {
CI: '1',... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/posix_exit_codes_spec.ts | system-tests/test/posix_exit_codes_spec.ts | import systemTests from '../lib/system-tests'
describe('posix exit codes', () => {
systemTests.setup()
describe('when posix exit codes are enabled', () => {
const posixExitCodes = true
systemTests.it('returns 1 when there are multiple failing tests', {
spec: 'simple_failing.cy.js',
posixExitC... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_31466_spec.ts | system-tests/test/issue_31466_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e issue 31466: cy.press only works in the first spec in firefox', () => {
systemTests.setup()
systemTests.it('does not error when dispatching cy.press', {
spec: 'first_spec.cy.js,second_spec.cy.js',
project: 'cy-press-second-spec-error',
expect... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/cypress-stop.spec.ts | system-tests/test/cypress-stop.spec.ts | import systemTests from '../lib/system-tests'
describe('Cypress.stop()', () => {
const getRunnableEventCounts = (stderr: string) => {
const beforeRunCount = (stderr.match(/test:before:run(?!:async)/g) || []).length
const beforeRunAsyncCount = (stderr.match(/test:before:run:async/g) || []).length
const be... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/testConfigOverrides_spec.ts | system-tests/test/testConfigOverrides_spec.ts | import fs from 'fs-extra'
import path from 'path'
import systemTests, { expect, BrowserName } from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const e2ePath = Fixtures.projectPath('e2e')
const outputPath = path.join(e2ePath, 'output.json')
describe('testConfigOverrides', () => {
systemTests.setup(... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/deprecated_spec.ts | system-tests/test/deprecated_spec.ts | import systemTests from '../lib/system-tests'
const beforeBrowserLaunchProject = 'plugin-before-browser-launch-deprecation'
describe('deprecated before:browser:launch args', () => {
systemTests.setup()
systemTests.it('fails when adding unknown properties to launchOptions', {
browser: '!webkit', // TODO(webki... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/cdp_spec.ts | system-tests/test/cdp_spec.ts | import mockedEnv from 'mocked-env'
import systemTests from '../lib/system-tests'
describe('e2e cdp', function () {
systemTests.setup()
let restoreEnv: Function
beforeEach(() => {
restoreEnv = mockedEnv({
CYPRESS_REMOTE_DEBUGGING_PORT: '7777',
})
})
afterEach(() => {
restoreEnv()
})
/... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_32493_spec.ts | system-tests/test/issue_32493_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e issue 32493: ESM config loading should not fail', () => {
systemTests.setup()
systemTests.it('loads the config file', {
spec: 'app.cy.js',
browser: 'chrome',
project: 'config-cjs-and-esm/config-with-mjs',
expectedExitCode: 0,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/request_spec.ts | system-tests/test/request_spec.ts | import bodyParser from 'body-parser'
import cookieParser from 'cookie-parser'
import systemTests from '../lib/system-tests'
let counts: Record<string, number> | null = null
const urlencodedParser = bodyParser.urlencoded({ extended: false })
const jsonParser = bodyParser.json()
const sendBackBody = (req, res) => {
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/firefox_spec.ts | system-tests/test/firefox_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e firefox', function () {
systemTests.setup()
systemTests.it('launches maximized by default', {
browser: 'firefox',
project: 'screen-size',
spec: 'maximized.cy.js',
})
// NOTE: only an issue on windows
// https://github.com/cypress-io/cy... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/pause_headed_exit_spec.ts | system-tests/test/pause_headed_exit_spec.ts | import systemTests from '../lib/system-tests'
import childProcess from 'child_process'
// these system tests are skipped in webkit due to flake.
// TODO: https://github.com/cypress-io/cypress/issues/31503
describe('cy.pause() in run mode', () => {
systemTests.setup()
systemTests.it('pauses with --headed and --no... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/retries_spec.ts | system-tests/test/retries_spec.ts | import systemTests from '../lib/system-tests'
const it = systemTests.it
describe('retries', () => {
systemTests.setup()
it('supports retries', {
browser: '!chrome',
project: 'retries-2',
spec: 'fail-twice.cy.js',
snapshot: true,
})
// TODO: merge in above once --window-size is respected in h... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/webpack_dev_server_fresh_spec.ts | system-tests/test/webpack_dev_server_fresh_spec.ts | import systemTests from '../lib/system-tests'
import type { fixtureDirs } from '@tooling/system-tests'
type ProjectDirs = typeof fixtureDirs
const WEBPACK_REACT: ProjectDirs[number][] = ['webpack5_wds5-react']
describe('@cypress/webpack-dev-server', function () {
systemTests.setup()
describe('react', () => {
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/plugins_not_supported.ts | system-tests/test/plugins_not_supported.ts | import systemTests from '../lib/system-tests'
describe('plugins not supported in v10', () => {
systemTests.setup()
systemTests.it('@cypress/code-coverage', {
browser: 'electron',
project: 'plugin-code-coverage',
spec: '*',
snapshot: true,
expectedExitCode: 1,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/subdomain_injectDocumentDomain_spec.ts | system-tests/test/subdomain_injectDocumentDomain_spec.ts | import cors from 'cors'
import parser from 'cookie-parser'
import session from 'express-session'
import systemTests from '../lib/system-tests'
const onServer = function (app) {
app.use(parser())
app.use((req, res, next) => {
console.log('** REQUEST HEADERS ARE', req.url, req.headers)
return next()
})
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/no_tsconfig_ts_js_mix.ts | system-tests/test/no_tsconfig_ts_js_mix.ts | import systemTests from '../lib/system-tests'
describe('e2e no tsconfig ts js mix', () => {
systemTests.setup()
systemTests.it('passes', {
spec: 'spec.cy.js',
browser: 'chrome',
project: 'no-tsconfig-ts-js-mix',
snapshot: true,
})
systemTests.it('fails with no tsconfig.json error', {
spec... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_6619.ts | system-tests/test/issue_6619.ts | import systemTests from '../lib/system-tests'
describe('e2e issue 6619', () => {
systemTests.setup()
// this tests open mode behavior
// when the user hits the 'reload' button in open mode
// https://github.com/cypress-io/cypress/issues/6619
systemTests.it('can reload during spec run', {
spec: 'reload-s... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/cy_origin_retries_spec.ts | system-tests/test/cy_origin_retries_spec.ts | import path from 'path'
import systemTests, { expect } from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const e2ePath = Fixtures.projectPath('e2e')
const PORT = 3500
const onServer = function (app) {
app.get('/secondary_origin.html', (_, res) => {
res.sendFile(path.join(e2ePath, `secondary_orig... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/max_listeners_spec.ts | system-tests/test/max_listeners_spec.ts | import _ from 'lodash'
import path from 'path'
import fs from 'fs-extra'
import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const projectPath = Fixtures.projectPath('max-listeners')
describe('max listeners warning spec', () => {
systemTests.setup()
// @see https://github.com/cy... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/component_testing_index_html_spec.ts | system-tests/test/component_testing_index_html_spec.ts | import systemTests from '../lib/system-tests'
describe('component testing projects', function () {
systemTests.setup()
systemTests.it('vue3-vite-ts-custom-index-html', {
project: 'vue3-vite-ts-custom-index-html',
testingType: 'component',
spec: 'src/components/HelloWorld.cy.ts',
browser: 'chrome',... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/non_root_read_only_fs_spec.ts | system-tests/test/non_root_read_only_fs_spec.ts | import * as fs from 'fs'
import * as path from 'path'
import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
import { scaffoldCommonNodeModules } from '@tooling/system-tests/lib/dep-installer'
describe('e2e readonly fs', function () {
systemTests.setup()
const projectPath = Fixtures.... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/results_spec.ts | system-tests/test/results_spec.ts | import path from 'path'
import { fs } from '@packages/server/lib/util/fs'
import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
// source: https://www.myintervals.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
const isoDateRegex = /"([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_7481.ts | system-tests/test/issue_7481.ts | import systemTests from '../lib/system-tests'
const PORT = 3333
describe('e2e issue 7481', () => {
systemTests.setup({
servers: {
port: PORT,
},
})
systemTests.it('does not error loading authenticated url', {
spec: 'simple_passing.cy.js',
config: {
baseUrl: `http://username:password... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/prompt_spec.ts | system-tests/test/prompt_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e prompt', () => {
systemTests.setup()
systemTests.it('fails when experimentalPromptCommand is not set', {
browser: 'electron',
project: 'experimentalPromptCommand',
spec: 'prompt.cy.js',
configFile: 'cypress-disabled-prompt-experiment.conf... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/vite_example_spec.ts | system-tests/test/vite_example_spec.ts | import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
describe('example vite test', function () {
systemTests.setup()
beforeEach(async () => {
await Fixtures.scaffoldProject('e2e')
})
systemTests.it(`should load the support file`, {
project: 'vite-ct-function-api',
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue-25568_spec.ts | system-tests/test/issue-25568_spec.ts | import systemTests from '../lib/system-tests'
// We had an issue that only occurred when:
// - CT testing
// - browser=electron
// - more than 1 spec file
// - experimentalSingleTabMode=false
//
// The electron browser would not exit after all the tests finished.
describe('component testing issue 25568', function () {... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/downloads_spec.ts | system-tests/test/downloads_spec.ts | import path from 'path'
import systemTests, { expect } from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
import { fs } from '@packages/server/lib/util/fs'
const downloadsProject = Fixtures.projectPath('downloads')
describe('e2e downloads', () => {
systemTests.setup()
systemTests.it('handles vari... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/error_ui_spec.ts | system-tests/test/error_ui_spec.ts | import systemTests, { expect } from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const verifyPassedAndFailedAreSame = (expectedFailures) => {
return ({ stdout }) => {
const passes = stdout.match(/✓ ✓ VERIFY/g)
expect(passes?.length || 0).to.equal(expectedFailures, 'number of passes should eq... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/experimental_retries.spec.ts | system-tests/test/experimental_retries.spec.ts | import systemTests from '../lib/system-tests'
describe('e2e retries.experimentalStrategy', () => {
systemTests.setup()
describe('"detect-flake-and-pass-on-threshold"', () => {
describe('passes', () => {
systemTests.it('only runs the first attempt of the test if the test passes', {
project: 'expe... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/e2e_with_mount_import_spec.ts | system-tests/test/e2e_with_mount_import_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e tests with mount import', () => {
systemTests.setup()
// see: https://github.com/cypress-io/cypress/issues/22589
systemTests.it('should not run CT side effects in e2e with mount registration', {
project: 'component-tests',
spec: 'passing-with-m... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/component_testing_spec.ts | system-tests/test/component_testing_spec.ts | import systemTests from '../lib/system-tests'
describe('component testing projects', function () {
systemTests.setup()
systemTests.it('react-vite-ts-configured', {
project: 'react-vite-ts-configured',
testingType: 'component',
spec: 'src/App.cy.tsx',
browser: 'chrome',
expectedExitCode: 0,
}... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/testing_type_not_configured_error_spec.ts | system-tests/test/testing_type_not_configured_error_spec.ts | const systemTests = require('../lib/system-tests').default
describe('testing type not configured error on run mode', () => {
systemTests.setup()
systemTests.it('reports correct exit code when failing attempting to run e2e', {
project: 'simple-ct',
testingType: 'e2e',
snapshot: true,
expectedExitCo... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/typescript_spec_support_spec.ts | system-tests/test/typescript_spec_support_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e typescript in spec and support file', function () {
systemTests.setup()
it('spec passes', function () {
return systemTests.exec(this, {
project: 'coffee-react-interop',
spec: 'typescript_passing.cy.ts',
snapshot: true,
})
})
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/cookies_spec.ts | system-tests/test/cookies_spec.ts | /* eslint-disable no-restricted-properties */
import dayjs from 'dayjs'
import parser from 'cookie-parser'
import systemTests from '../lib/system-tests'
import humanInterval from 'human-interval'
import cors from 'cors'
const it = systemTests.it
const onServer = function (app) {
app.use(parser())
app.get('/', (r... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/vite_dev_server_fresh_spec.ts | system-tests/test/vite_dev_server_fresh_spec.ts | import systemTests from '../lib/system-tests'
import type { fixtureDirs } from '@tooling/system-tests'
type ProjectDirs = typeof fixtureDirs
// These versions should reflect the latest versions of each major version of Vite - update as needed
const VITE_REACT: ProjectDirs[number][] = ['vite5.4.18-react', 'vite6.2.5-... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/alsa_warnings_stdout_spec.ts | system-tests/test/alsa_warnings_stdout_spec.ts | import systemTests from '../lib/system-tests'
describe('Electron sysctrlbyname warning', function () {
it('does not render warnings in the stdout', function () {
return systemTests.exec(this, {
project: 'e2e',
spec: 'embedded_video_with_audio.cy.js',
browser: 'electron',
}).then(({ stderr }... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/runnable_execution_spec.ts | system-tests/test/runnable_execution_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e runnable execution', () => {
systemTests.setup({
servers: [{
port: 3434,
static: true,
},
{
port: 4545,
static: true,
},
{
port: 5656,
static: true,
}],
})
systemTests.it('can navigate in befo... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/cy_origin_error_spec.ts | system-tests/test/cy_origin_error_spec.ts | import path from 'path'
import systemTests, { expect } from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
const e2ePath = Fixtures.projectPath('e2e')
const PORT = 3500
const onServer = function (app) {
app.get('/secondary_origin.html', (_, res) => {
res.sendFile(path.join(e2ePath, 'secondary_orig... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/proxying_spec.ts | system-tests/test/proxying_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e proxying spec', () => {
systemTests.setup({
servers: {
port: 7878,
static: true,
cors: true,
https: true,
},
})
systemTests.it('integrity check', {
spec: 'proxying.cy.js',
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/yarn_v3.1.1_pnp_spec.ts | system-tests/test/yarn_v3.1.1_pnp_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e yarn v3.1.1', () => {
systemTests.it('can compile plugin and test specs', {
snapshot: false,
browser: 'electron',
project: 'yarn-v3.1.1-pnp',
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/test/issue_173_spec.ts | system-tests/test/issue_173_spec.ts | import systemTests from '../lib/system-tests'
describe('e2e issue 173', () => {
systemTests.setup()
// https://github.com/cypress-io/cypress/issues/173
systemTests.it('failing', {
spec: 'issue_173.cy.js',
snapshot: true,
expectedExitCode: 1,
})
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/cypress.config.ts | system-tests/project-fixtures/angular/cypress.config.ts | import { defineConfig } from 'cypress'
export default defineConfig({
component: {
experimentalSingleTabRunMode: true,
devServer: {
framework: 'angular',
bundler: 'webpack',
webpackConfig: {
resolve: {
alias: {
'@angular/common/http': require.resolve('@angular/c... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/polyfills.ts | system-tests/project-fixtures/angular/src/polyfills.ts | /**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/main.ts | system-tests/project-fixtures/angular/src/main.ts | import { enableProdMode } from '@angular/core'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
import { AppModule } from './app/app.module'
import { environment } from './environments/environment'
if (environment.production) {
enableProdMode()
}
platformBrowserDynamic().bootstrapModule(A... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/app.component.ts | system-tests/project-fixtures/angular/src/app/app.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'app-root',
standalone: false,
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'angular'
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/app.module.ts | system-tests/project-fixtures/angular/src/app/app.module.ts | import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { AppComponent } from './app.component'
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule { }
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/mount.cy.ts | system-tests/project-fixtures/angular/src/app/mount.cy.ts | import { ParentChildModule } from './components/parent-child.module'
import { ParentComponent } from './components/parent.component'
import { CounterComponent } from './components/counter.component'
import { ChildComponent } from './components/child.component'
import { WithDirectivesComponent } from './components/with-... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/errors.cy.ts | system-tests/project-fixtures/angular/src/app/errors.cy.ts | import { ErrorsComponent } from './components/errors'
describe('Errors', () => {
it('error on mount', () => {
cy.mount(ErrorsComponent, { componentProperties: { throwError: true } })
})
it('sync error', () => {
cy.mount(ErrorsComponent)
cy.get('#sync-error').click()
})
it('async error', () => {... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/zonejs-mocha-only.cy.ts | system-tests/project-fixtures/angular/src/app/zonejs-mocha-only.cy.ts | /* eslint-disable mocha/no-exclusive-tests */
const ExcludedTestTitle = 'should not exist'
// Validating Mocha syntax and behavior of *.only is still valid after being patched by `zone.js/testing`
// Github Issue: https://github.com/cypress-io/cypress/issues/23409
describe('only', () => {
context.only('01 - executio... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/app.component.cy.ts | system-tests/project-fixtures/angular/src/app/app.component.cy.ts | // Keep this test very simple as "@cypress/schematic" relies on it to run smoke tests
import { AppComponent } from './app.component'
it('should', () => {
cy.mount(AppComponent)
cy.get('h1').contains('Hello World', { timeout: 250 })
})
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/zonejs-mocha-skip.cy.ts | system-tests/project-fixtures/angular/src/app/zonejs-mocha-skip.cy.ts | /* eslint-disable @cypress/dev/skip-comment */
// Validating Mocha syntax and behavior of *.skip is still valid after being patched by `zone.js/testing`
// Github Issue: https://github.com/cypress-io/cypress/issues/23409
describe('skip', () => {
context('01 - executions', () => {
describe('suite', () => {
... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/signals.component.ts | system-tests/project-fixtures/angular/src/app/components/signals.component.ts | import { Component, signal } from '@angular/core'
@Component({
standalone: true,
selector: 'app-signals',
template: `<span>{{ count() }}</span> <button (click)="increment()">+</button>`,
})
export class SignalsComponent {
count = signal(0)
increment (): void {
this.count.update((_count: number) => _coun... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/child-providers.service.ts | system-tests/project-fixtures/angular/src/app/components/child-providers.service.ts | import { Injectable } from '@angular/core'
@Injectable()
export class ChildProvidersService {
async getMessage (): Promise<string> {
const response = await fetch('https://myfakeapiurl.com/api/message')
const data = await response.json()
return data.message
}
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/standalone.component.ts | system-tests/project-fixtures/angular/src/app/components/standalone.component.ts | import { Component, Input } from '@angular/core'
@Component({
standalone: true,
selector: 'app-standalone',
template: `<h1>Hello {{ name }}</h1>`,
})
export class StandaloneComponent {
@Input() name!: string
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/button-output.component.ts | system-tests/project-fixtures/angular/src/app/components/button-output.component.ts | import { Component, EventEmitter, Output } from '@angular/core'
@Component({
selector: 'app-button-output',
standalone: false,
template: `<button (click)="clicked.emit(true)">Click Me</button>`,
})
export class ButtonOutputComponent {
@Output() clicked: EventEmitter<boolean> = new EventEmitter()
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/lifecycle.component.ts | system-tests/project-fixtures/angular/src/app/components/lifecycle.component.ts | import { Component, Input, OnInit, OnChanges, SimpleChanges } from '@angular/core'
@Component({
selector: 'app-lifecycle',
standalone: false,
template: `<p>Hi {{ name }}. ngOnInit fired: {{ ngOnInitFired }} and ngOnChanges fired: {{ ngOnChangesFired }} and conditionalName: {{ conditionalName }}</p>`,
})
export c... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/errors.ts | system-tests/project-fixtures/angular/src/app/components/errors.ts | import { Component, Input } from '@angular/core'
@Component({
selector: 'errors-component',
template: `<div>
<button id="sync-error" (click)="syncError()">Sync Error</button>
<button id="async-error" (click)="asyncError()">Sync Error</button>
</div>`,
})
export class ErrorsComponent {
@Input() throwError!:... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/standalone.component.cy.ts | system-tests/project-fixtures/angular/src/app/components/standalone.component.cy.ts | import { StandaloneComponent } from './standalone.component'
describe('StandaloneComponent', () => {
it('can mount a standalone component', () => {
cy.mount(StandaloneComponent, {
componentProperties: {
name: 'Angular',
},
})
cy.get('h1').contains('Hello Angular')
})
it('can mou... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/url-image.component.ts | system-tests/project-fixtures/angular/src/app/components/url-image.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'app-url-image',
template: `<div class="test-img"></div>`,
styleUrls: ['./url-image.component.scss'],
})
export class UrlImageComponent {}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/another-child-providers.component.ts | system-tests/project-fixtures/angular/src/app/components/another-child-providers.component.ts | import { Component, signal } from '@angular/core'
import { ChildProvidersService } from './child-providers.service'
@Component({
selector: 'app-another-child',
standalone: false,
template: `<button (click)="handleClick()">{{ message() }}</button>`,
providers: [ChildProvidersService],
})
export class AnotherChi... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/parent-child.module.ts | system-tests/project-fixtures/angular/src/app/components/parent-child.module.ts | import { NgModule } from '@angular/core'
import { ParentComponent } from './parent.component'
import { ChildComponent } from './child.component'
@NgModule({
declarations: [ParentComponent, ChildComponent],
}) export class ParentChildModule {}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/transient-services.component.ts | system-tests/project-fixtures/angular/src/app/components/transient-services.component.ts | import { Component, Injectable } from '@angular/core'
@Injectable({ providedIn: 'root' })
export class TransientService {
get message () {
return 'Original Transient Service'
}
}
@Injectable({ providedIn: 'root' })
class DirectService {
constructor (private transientService: TransientService) {
}
get m... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/logo.component.ts | system-tests/project-fixtures/angular/src/app/components/logo.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'app-logo',
template: `<img src="assets/cypress-logo-light.png" />`,
})
export class LogoComponent {}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/child.component.ts | system-tests/project-fixtures/angular/src/app/components/child.component.ts | import { Component, Input } from '@angular/core'
@Component({
selector: 'child-component',
standalone: false,
template: '<h1>{{msg}}</h1>',
})
export class ChildComponent {
@Input() msg!: string
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/parent.component.ts | system-tests/project-fixtures/angular/src/app/components/parent.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'parent-component',
standalone: false,
template: '<child-component [msg]="msg"></child-component>',
})
export class ParentComponent {
msg = 'Hello World from ParentComponent'
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/signals.component.cy.ts | system-tests/project-fixtures/angular/src/app/components/signals.component.cy.ts | import { SignalsComponent } from './signals.component'
describe('SignalsComponent', () => {
it('can mount a signals component', () => {
cy.mount(SignalsComponent)
})
it('can increment the count using a signal', () => {
cy.mount(SignalsComponent)
cy.get('span').contains(0)
cy.get('button').click(... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/cart.component.ts | system-tests/project-fixtures/angular/src/app/components/cart.component.ts | import { Component, Injectable } from '@angular/core'
@Injectable({ providedIn: 'root' })
export class Cart {
#items: string[] = []
add (product: string) {
this.#items.push(product)
}
getItems () {
return this.#items
}
}
@Component({
template: `<div><h2>Great Product</h2><button (click)="buy()" ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/projection.component.ts | system-tests/project-fixtures/angular/src/app/components/projection.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'app-projection',
standalone: false,
template: `<h3><ng-content></ng-content></h3>`,
})
export class ProjectionComponent {}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/parent-providers.component.ts | system-tests/project-fixtures/angular/src/app/components/parent-providers.component.ts | import { Component } from '@angular/core'
@Component({
standalone: false,
template: `
<app-child-providers></app-child-providers>
<app-another-child></app-another-child>`,
})
export class ParentProvidersComponent {}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/component-provider.component.ts | system-tests/project-fixtures/angular/src/app/components/component-provider.component.ts | import { Component, Injectable } from '@angular/core'
@Injectable({ providedIn: 'root' })
export class MessageService {
get message () {
return 'globally provided service'
}
}
@Component({
template: `<p>{{messageService.message}}</p>`,
providers: [{
provide: MessageService,
useValue: { message: 'c... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/with-directives.component.ts | system-tests/project-fixtures/angular/src/app/components/with-directives.component.ts | import { Component } from '@angular/core'
@Component({
selector: 'with-directives-component',
standalone: false,
template: ` <button (click)="show = !show">Toggle Message</button>
<ul *ngIf="show">
<li *ngFor="let item of items">{{ item }}</li>
</ul>`,
})
export class WithDirectivesComponent {
sh... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/counter.component.ts | system-tests/project-fixtures/angular/src/app/components/counter.component.ts | import { Component, model } from '@angular/core'
@Component({
selector: 'counter-component',
standalone: false,
template: `<button (click)="increment()">
Increment: {{ count() }}
</button>`,
})
export class CounterComponent {
count = model<number>(0)
increment () {
this.count.set(this.count() + 1)... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/app/components/child-providers.component.ts | system-tests/project-fixtures/angular/src/app/components/child-providers.component.ts | import { Component, signal } from '@angular/core'
import { ChildProvidersService } from './child-providers.service'
@Component({
selector: 'app-child-providers',
standalone: false,
template: `<button (click)="handleClick()">{{ message() }}</button>`,
})
export class ChildProvidersComponent {
message = signal('... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/environments/environment.ts | system-tests/project-fixtures/angular/src/environments/environment.ts | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
}
/*
* For easier debugging in development mode, you ... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/src/environments/environment.prod.ts | system-tests/project-fixtures/angular/src/environments/environment.prod.ts | export const environment = {
production: true,
}
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/angular/cypress/support/component.ts | system-tests/project-fixtures/angular/cypress/support/component.ts | import { mount } from 'cypress/angular'
declare global {
namespace Cypress {
interface Chainable {
mount: typeof mount
}
}
}
Cypress.Commands.add('mount', mount)
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/vue/cypress/support/component.ts | system-tests/project-fixtures/vue/cypress/support/component.ts | import { mount } from 'cypress/vue'
Cypress.Commands.add('mount', mount)
| typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
cypress-io/cypress | https://github.com/cypress-io/cypress/blob/409444f8ea51d8f14dec8d10510f78c4a5f42271/system-tests/project-fixtures/runner-specs/cypress/e2e/errors/intercept.cy.ts | system-tests/project-fixtures/runner-specs/cypress/e2e/errors/intercept.cy.ts | describe('cy.intercept', () => {
const emitProxyLog = () => {
return Cypress.emit('request:event', 'incoming:request', {
requestId: 1,
method: 'GET',
url: '',
headers: {},
resourceType: 'other',
originalResourceType: 'other',
})
}
it('assertion failure in request callb... | typescript | MIT | 409444f8ea51d8f14dec8d10510f78c4a5f42271 | 2026-01-04T15:36:58.228650Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.