diff --git a/.circleci/cache-version.txt b/.circleci/cache-version.txt index bec07b1b7ff0..628a144cb373 100644 --- a/.circleci/cache-version.txt +++ b/.circleci/cache-version.txt @@ -1,3 +1,3 @@ # Bump this version to force CI to re-create the cache from scratch. -10-23-2024 +10-28-24 diff --git a/browser-versions.json b/browser-versions.json index d5c17f7fd0ed..bf402ebb6b05 100644 --- a/browser-versions.json +++ b/browser-versions.json @@ -1,5 +1,5 @@ { - "chrome:beta": "131.0.6778.3", + "chrome:beta": "131.0.6778.13", "chrome:stable": "130.0.6723.69", "chrome:minimum": "64.0.3282.0" } diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index c1be3eb571ce..5dd82c5faa23 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -11,6 +11,7 @@ _Released 12/3/2024 (PENDING)_ - Removed support for Node.js 16 and Node.js 21. Addresses [#29930](https://github.com/cypress-io/cypress/issues/29930). - Prebuilt binaries for Linux are no longer compatible with Linux distributions based on glibc <2.28, for example: Ubuntu 14-18, RHEL 7, CentOS 7, Amazon Linux 2. Addresses [#29601](https://github.com/cypress-io/cypress/issues/29601). +- The `cypress open-ct` and `cypress run-ct` CLI commands were removed. Please use `cypress open --component` or `cypress run --component` respectively instead. Addressed in [#30456](https://github.com/cypress-io/cypress/pull/30456) - The undocumented methods `Cypress.backend('firefox:force:gc')` and `Cypress.backend('log:memory:pressure')` were removed. Addresses [#30222](https://github.com/cypress-io/cypress/issues/30222). - Upgraded bundled Node.js version from `18.17.0` to `20.18.0`. Addresses [#29547](https://github.com/cypress-io/cypress/issues/29547). - It is no longer possible to do things like `cy.window().then((win) => win.fetch('')` without doing some form of initial navigation via `cy.visit()`. `cy.request` will still work in this scenario. Addressed in [#29547](https://github.com/cypress-io/cypress/pull/30394). @@ -22,7 +23,7 @@ _Released 12/3/2024 (PENDING)_ ## 13.15.1 -_Released 10/1/2024 (PENDING)_ +_Released 10/24/2024_ **Bugfixes:** diff --git a/cli/__snapshots__/cli_spec.js b/cli/__snapshots__/cli_spec.js index 6cca25fe06c9..930c0f1b14a4 100644 --- a/cli/__snapshots__/cli_spec.js +++ b/cli/__snapshots__/cli_spec.js @@ -223,10 +223,6 @@ exports['cli help command shows help 1'] = ` version [options] prints Cypress version open [options] Opens Cypress in the interactive GUI. run [options] Runs Cypress tests from the CLI without the GUI - open-ct [options] Opens Cypress component testing interactive mode. - Deprecated: use "open --component" - run-ct [options] Runs all Cypress component testing suites. Deprecated: - use "run --component" install [options] Installs the Cypress executable matching this package's version verify [options] Verifies that Cypress is installed correctly and @@ -263,10 +259,6 @@ exports['cli help command shows help for -h 1'] = ` version [options] prints Cypress version open [options] Opens Cypress in the interactive GUI. run [options] Runs Cypress tests from the CLI without the GUI - open-ct [options] Opens Cypress component testing interactive mode. - Deprecated: use "open --component" - run-ct [options] Runs all Cypress component testing suites. Deprecated: - use "run --component" install [options] Installs the Cypress executable matching this package's version verify [options] Verifies that Cypress is installed correctly and @@ -303,10 +295,6 @@ exports['cli help command shows help for --help 1'] = ` version [options] prints Cypress version open [options] Opens Cypress in the interactive GUI. run [options] Runs Cypress tests from the CLI without the GUI - open-ct [options] Opens Cypress component testing interactive mode. - Deprecated: use "open --component" - run-ct [options] Runs all Cypress component testing suites. Deprecated: - use "run --component" install [options] Installs the Cypress executable matching this package's version verify [options] Verifies that Cypress is installed correctly and @@ -344,10 +332,6 @@ exports['cli unknown command shows usage and exits 1'] = ` version [options] prints Cypress version open [options] Opens Cypress in the interactive GUI. run [options] Runs Cypress tests from the CLI without the GUI - open-ct [options] Opens Cypress component testing interactive mode. - Deprecated: use "open --component" - run-ct [options] Runs all Cypress component testing suites. Deprecated: - use "run --component" install [options] Installs the Cypress executable matching this package's version verify [options] Verifies that Cypress is installed correctly and @@ -457,10 +441,6 @@ exports['cli CYPRESS_INTERNAL_ENV allows and warns when staging environment 1'] version [options] prints Cypress version open [options] Opens Cypress in the interactive GUI. run [options] Runs Cypress tests from the CLI without the GUI - open-ct [options] Opens Cypress component testing interactive mode. - Deprecated: use "open --component" - run-ct [options] Runs all Cypress component testing suites. Deprecated: - use "run --component" install [options] Installs the Cypress executable matching this package's version verify [options] Verifies that Cypress is installed correctly and diff --git a/cli/lib/cli.js b/cli/lib/cli.js index 2be77ecd3943..432671fb38c4 100644 --- a/cli/lib/cli.js +++ b/cli/lib/cli.js @@ -137,8 +137,6 @@ const knownCommands = [ 'install', 'open', 'run', - 'open-ct', - 'run-ct', 'verify', '-v', '--version', @@ -482,80 +480,6 @@ module.exports = { .catch(util.logErrorExit1) }) - program - .command('open-ct') - .usage('[options]') - .description('Opens Cypress component testing interactive mode. Deprecated: use "open --component"') - .option('-b, --browser ', text('browser')) - .option('-c, --config ', text('config')) - .option('-C, --config-file ', text('configFile')) - .option('-d, --detached [bool]', text('detached'), coerceFalse) - .option('-e, --env ', text('env')) - .option('--global', text('global')) - .option('-p, --port ', text('port')) - .option('-P, --project ', text('project')) - .option('--dev', text('dev'), coerceFalse) - .action((opts) => { - debug('opening Cypress') - - const msg = ` - ${logSymbols.warning} Warning: open-ct is deprecated and will be removed in a future release. - - Use \`cypress open --component\` instead. - ` - - logger.warn() - logger.warn(stripIndent(msg)) - logger.warn() - - require('./exec/open') - .start({ ...util.parseOpts(opts), testingType: 'component' }) - .then(util.exit) - .catch(util.logErrorExit1) - }) - - program - .command('run-ct') - .usage('[options]') - .description('Runs all Cypress component testing suites. Deprecated: use "run --component"') - .option('-b, --browser ', text('browser')) - .option('--ci-build-id ', text('ciBuildId')) - .option('-c, --config ', text('config')) - .option('-C, --config-file ', text('configFile')) - .option('-e, --env ', text('env')) - .option('--group ', text('group')) - .option('-k, --key ', text('key')) - .option('--headed', text('headed')) - .option('--headless', text('headless')) - .option('--no-exit', text('exit')) - .option('--parallel', text('parallel')) - .option('-p, --port ', text('port')) - .option('-P, --project ', text('project')) - .option('-q, --quiet', text('quiet')) - .option('--record [bool]', text('record'), coerceFalse) - .option('-r, --reporter ', text('reporter')) - .option('-o, --reporter-options ', text('reporterOptions')) - .option('-s, --spec ', text('spec')) - .option('-t, --tag ', text('tag')) - .option('--dev', text('dev'), coerceFalse) - .action((opts) => { - debug('running Cypress run-ct') - - const msg = ` - ${logSymbols.warning} Warning: run-ct is deprecated and will be removed in a future release. - Use \`cypress run --component\` instead. - ` - - logger.warn() - logger.warn(stripIndent(msg)) - logger.warn() - - require('./exec/run') - .start({ ...util.parseOpts(opts), testingType: 'component' }) - .then(util.exit) - .catch(util.logErrorExit1) - }) - program .command('install') .usage('[options]') diff --git a/cli/test/lib/cli_spec.js b/cli/test/lib/cli_spec.js index 3e0de35ddfae..5d17558ffc41 100644 --- a/cli/test/lib/cli_spec.js +++ b/cli/test/lib/cli_spec.js @@ -635,34 +635,10 @@ describe('cli', () => { expect(spawn.start.firstCall.args[0]).to.include('component') }) - it('spawns server with correct args for deprecated component-testing command', () => { - this.exec('open-ct --dev') - expect(spawn.start.firstCall.args[0]).to.include('--testing-type') - expect(spawn.start.firstCall.args[0]).to.include('component') - }) - it('runs server with correct args for component-testing', () => { this.exec('run --component --dev') expect(spawn.start.firstCall.args[0]).to.include('--testing-type') expect(spawn.start.firstCall.args[0]).to.include('component') }) - - it('runs server with correct args for deprecated component-testing command', () => { - this.exec('run-ct --dev') - expect(spawn.start.firstCall.args[0]).to.include('--testing-type') - expect(spawn.start.firstCall.args[0]).to.include('component') - }) - - it('does display open-ct command in the help', () => { - return execa('bin/cypress', ['help']).then((result) => { - expect(result).to.include('open-ct') - }) - }) - - it('does display run-ct command in the help', () => { - return execa('bin/cypress', ['help']).then((result) => { - expect(result).to.include('run-ct') - }) - }) }) }) diff --git a/nx.json b/nx.json index ba27fca216a1..e698a49a0163 100644 --- a/nx.json +++ b/nx.json @@ -5,25 +5,26 @@ "default", "{workspaceRoot}/.eslintrc.js" ], - "cache": true + "cache": false }, "check-ts": { "inputs": [ "default", "sharedGlobals" ], - "cache": true + "cache": false }, "build": { "dependsOn": [ "^build" ], - "cache": true + "cache": false }, "build-prod": { "dependsOn": [ "^build-prod" - ] + ], + "cache": false } }, "namedInputs": { diff --git a/package.json b/package.json index 30d31582abcf..096ed8053487 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress", - "version": "13.15.0", + "version": "13.15.1", "description": "Cypress is a next generation front end testing tool built for the modern web", "private": true, "scripts": { @@ -31,7 +31,7 @@ "cypress:open:debug": "node ./scripts/debug.js cypress:open", "precypress:run": "yarn ensure-deps", "cypress:run": "cypress run --dev", - "cypress:run:ct": "cypress run-ct --dev", + "cypress:run:ct": "cypress run --component --dev", "precypress:run:debug": "yarn ensure-deps", "cypress:run:debug": "node ./scripts/debug.js cypress:run", "cypress:verify": "cypress verify --dev", diff --git a/packages/errors/__snapshot-html__/EXPERIMENTAL_COMPONENT_TESTING_REMOVED.html b/packages/errors/__snapshot-html__/EXPERIMENTAL_COMPONENT_TESTING_REMOVED.html index 3a9784cc3e03..349eec66a283 100644 --- a/packages/errors/__snapshot-html__/EXPERIMENTAL_COMPONENT_TESTING_REMOVED.html +++ b/packages/errors/__snapshot-html__/EXPERIMENTAL_COMPONENT_TESTING_REMOVED.html @@ -38,9 +38,9 @@ Please remove this flag from: /path/to/cypress.config.js -Component Testing is now a standalone command. You can now run your component tests with: +Component Testing is now a supported testing type. You can run your component tests with: - $ cypress open-ct + $ cypress open --component https://on.cypress.io/migration-guide \ No newline at end of file diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts index 589353504a4e..0a0725767946 100644 --- a/packages/errors/src/errors.ts +++ b/packages/errors/src/errors.ts @@ -1257,9 +1257,9 @@ export const AllCypressErrors = { Please remove this flag from: ${fmt.path(arg1.configFile)} - Component Testing is now a standalone command. You can now run your component tests with: + Component Testing is now a supported testing type. You can run your component tests with: - ${fmt.terminal(`cypress open-ct`)} + ${fmt.terminal(`cypress open --component`)} https://on.cypress.io/migration-guide` }, diff --git a/packages/extension/README.md b/packages/extension/README.md index f3bbb1bd3065..ad1409fa7b1c 100644 --- a/packages/extension/README.md +++ b/packages/extension/README.md @@ -29,13 +29,19 @@ yarn workspace @packages/extension test-debug ### In Chrome 1. Open Chrome -2. Go into Extensions -3. Check **Developer Mode** -4. Click **Load unpacked extension...** -5. Choose **packages/extension/dist** directory -6. Click **background page** to debug `background.js` +2. Go into Extensions (`chrome://extensions`) +3. Check **Developer Mode** (top right of screen) +4. Click **Load unpacked extension...** (top left of screen) +5. Choose **packages/extension/dist** directory (v2) +6. Click **background page** to debug `background.js` (inspect views `background page`) 7. Click **Reload (⌘R)** to pull in changes to `manifest.json` ### In Firefox -To be written... +1. Launch Firefox via `cypress open`. +2. Once Firefox is open, open an new tab and navigate to `about:debugging`. +3. Click the `This Firefox` navigation item on the left hand navigation pane and locate the `Cypress` extension under `Temporary Extensions`. +4. Click `inspect`. A console window should now appear in a separate window. +5. Close the `about:debugging` tab. +6. In the newly spawned console window, you should be able to see `background.js` in the `Debugger` tab. +7. Set breakpoints as needed to inspect what code you are trying to debug. Happy debugging! diff --git a/system-tests/test/run_ct_spec.js b/system-tests/test/run_ct_spec.js index 0064932326fc..784c2ce8e177 100644 --- a/system-tests/test/run_ct_spec.js +++ b/system-tests/test/run_ct_spec.js @@ -1,6 +1,6 @@ const systemTests = require('../lib/system-tests').default -describe('run-ct', () => { +describe('run ct', () => { systemTests.setup() systemTests.it('reports correct exit code when failing', { diff --git a/tooling/v8-snapshot/cache/darwin/snapshot-meta.json b/tooling/v8-snapshot/cache/darwin/snapshot-meta.json index c9550af9509e..a8266cd433a4 100644 --- a/tooling/v8-snapshot/cache/darwin/snapshot-meta.json +++ b/tooling/v8-snapshot/cache/darwin/snapshot-meta.json @@ -1056,8 +1056,6 @@ "./node_modules/@cypress/commit-info/src/index.js", "./node_modules/@cypress/commit-info/src/utils.js", "./node_modules/@cypress/get-windows-proxy/node_modules/debug/src/common.js", - "./node_modules/@cypress/get-windows-proxy/node_modules/registry-js/dist/lib/index.js", - "./node_modules/@cypress/get-windows-proxy/node_modules/registry-js/dist/lib/registry.js", "./node_modules/@cypress/get-windows-proxy/src/index.js", "./node_modules/@cypress/parse-domain/build/tries/icann.complete.json", "./node_modules/@cypress/parse-domain/build/tries/private.complete.json", @@ -1564,6 +1562,7 @@ "./node_modules/binary-extensions/index.js", "./node_modules/binaryextensions/edition-es5/index.js", "./node_modules/bindings/bindings.js", + "./node_modules/brace-expansion/index.js", "./node_modules/braces/index.js", "./node_modules/braces/lib/compile.js", "./node_modules/braces/lib/constants.js", @@ -2183,6 +2182,7 @@ "./node_modules/is-fullwidth-code-point/index.js", "./node_modules/is-glob/index.js", "./node_modules/is-html/index.js", + "./node_modules/is-obj/index.js", "./node_modules/is-plain-obj/index.js", "./node_modules/is-regexp/index.js", "./node_modules/is-stream/index.js", @@ -2442,7 +2442,6 @@ "./node_modules/mime-types/index.js", "./node_modules/mime/types.json", "./node_modules/min-indent/index.js", - "./node_modules/minimatch/node_modules/brace-expansion/index.js", "./node_modules/minimist/index.js", "./node_modules/mocha-7.0.1/lib/browser/progress.js", "./node_modules/mocha-7.0.1/lib/context.js", @@ -2464,7 +2463,6 @@ "./node_modules/mocha-7.0.1/lib/reporters/markdown.js", "./node_modules/mocha-7.0.1/lib/stats-collector.js", "./node_modules/mocha-7.0.1/lib/utils.js", - "./node_modules/mocha-7.0.1/node_modules/brace-expansion/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/node_modules/ms/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/src/common.js", "./node_modules/mocha-7.0.1/node_modules/glob/common.js", @@ -3154,8 +3152,6 @@ "./node_modules/recast/parsers/babel.js", "./node_modules/recast/parsers/esprima.js", "./node_modules/recast/parsers/typescript.js", - "./node_modules/registry-js/dist/lib/index.js", - "./node_modules/registry-js/dist/lib/registry.js", "./node_modules/request-promise-core/configure/request2.js", "./node_modules/request-promise-core/errors.js", "./node_modules/request-promise-core/lib/errors.js", @@ -3295,7 +3291,6 @@ "./node_modules/stream-shift/index.js", "./node_modules/string-width/index.js", "./node_modules/stringify-object/index.js", - "./node_modules/stringify-object/node_modules/is-obj/index.js", "./node_modules/strip-ansi/index.js", "./node_modules/strip-eof/index.js", "./node_modules/strip-final-newline/index.js", @@ -3601,7 +3596,6 @@ "./packages/data-context/node_modules/ast-types/lib/shared.js", "./packages/data-context/node_modules/ast-types/lib/types.js", "./packages/data-context/node_modules/ast-types/main.js", - "./packages/data-context/node_modules/brace-expansion/index.js", "./packages/data-context/node_modules/cross-spawn/index.js", "./packages/data-context/node_modules/cross-spawn/lib/enoent.js", "./packages/data-context/node_modules/cross-spawn/lib/parse.js", diff --git a/tooling/v8-snapshot/cache/linux/snapshot-meta.json b/tooling/v8-snapshot/cache/linux/snapshot-meta.json index 536f72488fb0..89b0481a52dd 100644 --- a/tooling/v8-snapshot/cache/linux/snapshot-meta.json +++ b/tooling/v8-snapshot/cache/linux/snapshot-meta.json @@ -1563,6 +1563,7 @@ "./node_modules/binary-extensions/index.js", "./node_modules/binaryextensions/edition-es5/index.js", "./node_modules/bindings/bindings.js", + "./node_modules/brace-expansion/index.js", "./node_modules/braces/index.js", "./node_modules/braces/lib/compile.js", "./node_modules/braces/lib/constants.js", @@ -2182,6 +2183,7 @@ "./node_modules/is-fullwidth-code-point/index.js", "./node_modules/is-glob/index.js", "./node_modules/is-html/index.js", + "./node_modules/is-obj/index.js", "./node_modules/is-plain-obj/index.js", "./node_modules/is-regexp/index.js", "./node_modules/is-stream/index.js", @@ -2441,7 +2443,6 @@ "./node_modules/mime-types/index.js", "./node_modules/mime/types.json", "./node_modules/min-indent/index.js", - "./node_modules/minimatch/node_modules/brace-expansion/index.js", "./node_modules/minimist/index.js", "./node_modules/mocha-7.0.1/lib/browser/progress.js", "./node_modules/mocha-7.0.1/lib/context.js", @@ -2463,7 +2464,6 @@ "./node_modules/mocha-7.0.1/lib/reporters/markdown.js", "./node_modules/mocha-7.0.1/lib/stats-collector.js", "./node_modules/mocha-7.0.1/lib/utils.js", - "./node_modules/mocha-7.0.1/node_modules/brace-expansion/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/node_modules/ms/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/src/common.js", "./node_modules/mocha-7.0.1/node_modules/glob/common.js", @@ -3294,7 +3294,6 @@ "./node_modules/stream-shift/index.js", "./node_modules/string-width/index.js", "./node_modules/stringify-object/index.js", - "./node_modules/stringify-object/node_modules/is-obj/index.js", "./node_modules/strip-ansi/index.js", "./node_modules/strip-eof/index.js", "./node_modules/strip-final-newline/index.js", @@ -3600,7 +3599,6 @@ "./packages/data-context/node_modules/ast-types/lib/shared.js", "./packages/data-context/node_modules/ast-types/lib/types.js", "./packages/data-context/node_modules/ast-types/main.js", - "./packages/data-context/node_modules/brace-expansion/index.js", "./packages/data-context/node_modules/cross-spawn/index.js", "./packages/data-context/node_modules/cross-spawn/lib/enoent.js", "./packages/data-context/node_modules/cross-spawn/lib/parse.js", diff --git a/tooling/v8-snapshot/cache/win32/snapshot-meta.json b/tooling/v8-snapshot/cache/win32/snapshot-meta.json index dbf769416ce9..69a0a5d602eb 100644 --- a/tooling/v8-snapshot/cache/win32/snapshot-meta.json +++ b/tooling/v8-snapshot/cache/win32/snapshot-meta.json @@ -1566,6 +1566,7 @@ "./node_modules/binary-extensions/index.js", "./node_modules/binaryextensions/edition-es5/index.js", "./node_modules/bindings/bindings.js", + "./node_modules/brace-expansion/index.js", "./node_modules/braces/index.js", "./node_modules/braces/lib/compile.js", "./node_modules/braces/lib/constants.js", @@ -2185,6 +2186,7 @@ "./node_modules/is-fullwidth-code-point/index.js", "./node_modules/is-glob/index.js", "./node_modules/is-html/index.js", + "./node_modules/is-obj/index.js", "./node_modules/is-plain-obj/index.js", "./node_modules/is-regexp/index.js", "./node_modules/is-stream/index.js", @@ -2444,7 +2446,6 @@ "./node_modules/mime-types/index.js", "./node_modules/mime/types.json", "./node_modules/min-indent/index.js", - "./node_modules/minimatch/node_modules/brace-expansion/index.js", "./node_modules/minimist/index.js", "./node_modules/mocha-7.0.1/lib/browser/progress.js", "./node_modules/mocha-7.0.1/lib/context.js", @@ -2466,7 +2467,6 @@ "./node_modules/mocha-7.0.1/lib/reporters/markdown.js", "./node_modules/mocha-7.0.1/lib/stats-collector.js", "./node_modules/mocha-7.0.1/lib/utils.js", - "./node_modules/mocha-7.0.1/node_modules/brace-expansion/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/node_modules/ms/index.js", "./node_modules/mocha-7.0.1/node_modules/debug/src/common.js", "./node_modules/mocha-7.0.1/node_modules/glob/common.js", @@ -3296,7 +3296,6 @@ "./node_modules/stream-shift/index.js", "./node_modules/string-width/index.js", "./node_modules/stringify-object/index.js", - "./node_modules/stringify-object/node_modules/is-obj/index.js", "./node_modules/strip-ansi/index.js", "./node_modules/strip-eof/index.js", "./node_modules/strip-final-newline/index.js", @@ -3600,7 +3599,6 @@ "./packages/data-context/node_modules/ast-types/lib/shared.js", "./packages/data-context/node_modules/ast-types/lib/types.js", "./packages/data-context/node_modules/ast-types/main.js", - "./packages/data-context/node_modules/brace-expansion/index.js", "./packages/data-context/node_modules/cross-spawn/index.js", "./packages/data-context/node_modules/cross-spawn/lib/enoent.js", "./packages/data-context/node_modules/cross-spawn/lib/parse.js",