Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cypress-io/cypress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.7.0
Choose a base ref
...
head repository: cypress-io/cypress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.0
Choose a head ref

Commits on Jun 7, 2021

  1. Copy the full SHA
    e13479f View commit details
  2. Copy the full SHA
    ac4f790 View commit details

Commits on Jun 29, 2021

  1. Copy the full SHA
    c592f00 View commit details

Commits on Jul 7, 2021

  1. Merge branch 'develop'

    chrisbreiding committed Jul 7, 2021
    4
    Copy the full SHA
    fdc296e View commit details
  2. 3
    Copy the full SHA
    940f7bf View commit details

Commits on Jul 8, 2021

  1. fix: update subject when traversing object (for cy.invoke) (#17189)

    * update subject when traversing object for cy.invoke
    
    * add driver integration test for issue 3871
    
    * fix driver connectors_spec test broken by cy.invoke changes
    dario-piotrowicz authored Jul 8, 2021
    4
    Copy the full SHA
    9b467b4 View commit details

Commits on Jul 9, 2021

  1. chore: Update Chrome (beta) to 92.0.4515.93 (#17260)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    github-actions[bot] and cypress-bot[bot] authored Jul 9, 2021
    4
    Copy the full SHA
    1cfabbe View commit details
  2. feat: Support running cypress as node process (#16505) (#16537)

    Co-authored-by: Ben Alman <cowboy@rj3.net>
    mrmeku and cowboy authored Jul 9, 2021
    4
    Copy the full SHA
    cf689dd View commit details

Commits on Jul 12, 2021

  1. fix(vite): autorefresh new spec files (#17270)

    Barthélémy Ledoux authored Jul 12, 2021
    Copy the full SHA
    99f9352 View commit details
  2. Merge branch 'master' into develop

    Barthélémy Ledoux committed Jul 12, 2021
    4
    Copy the full SHA
    8fca932 View commit details
  3. fix: improve React mountHook type (#17241)

    * feat(react) : improve mountHook types
    
    * chore: Remove wrapping which causes test failing
    
    Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
    edimitchel and lmiller1990 authored Jul 12, 2021
    4
    Copy the full SHA
    e40969a View commit details
  4. 4
    Copy the full SHA
    f76f281 View commit details
  5. Copy the full SHA
    effae98 View commit details
  6. fix: res.send of cy.intercept doesn't override json-related conte…

    …nt types. (#17199)
    
    Co-authored-by: Zach Bloomquist <git@chary.us>
    sainthkh and flotwig authored Jul 12, 2021
    4
    Copy the full SHA
    c2a2206 View commit details
  7. fix: allow "localhost" in cy.intercept's RouteMatcher (#17068)

    * fix
    
    * Allow other valid hostnames.
    sainthkh authored Jul 12, 2021
    4
    Copy the full SHA
    cf4ccb2 View commit details
  8. Copy the full SHA
    60e1201 View commit details
  9. feat: Changes for PKI support - #2694 (#15179)

    Co-authored-by: GCHQDeveloper911 <GCHQDeveloper911@users.noreply.github.com>
    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    Co-authored-by: Zach Bloomquist <github@chary.us>
    Co-authored-by: Zach Bloomquist <git@chary.us>
    5 people authored Jul 12, 2021
    4
    Copy the full SHA
    2975990 View commit details
  10. 4
    Copy the full SHA
    bf58762 View commit details
  11. fix(deps): update dependency electron to v13 🌟 (#17037)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Zach Bloomquist <git@chary.us>
    3 people authored Jul 12, 2021
    4
    Copy the full SHA
    bda59dd View commit details
  12. fix: make Cypress.ConfigOptions follow json Schema (#17251)

    Barthélémy Ledoux authored Jul 12, 2021
    Copy the full SHA
    16a4d91 View commit details

Commits on Jul 13, 2021

  1. chore(server): reduce coupling between methods to instantiate a proje…

    …ct (#17200)
    
    * wip
    
    * wip: use async/await
    
    * slowly refactor
    
    * slowly refactor
    
    * use typescript
    
    * use async/await
    
    * update spec
    
    * do not use tap because bluebird sucks
    
    * refactor
    
    * update
    
    * remove bluebird
    
    * update
    
    * remove then
    
    * change to async/await to make it easier to reason about
    
    * remove more bluebird
    
    * no more bluebird
    
    * remov ts ignore
    
    * do not tap
    
    * refactor
    
    * simplify cfg
    
    * move static methods to separate file
    
    * update snapshot
    
    * comment out test
    
    * simplifying options merging
    
    * update tests
    
    * change order of options
    
    * move code out of project-base
    
    * update tests
    
    * update tests
    
    * type reporter
    
    * simplify onWatchSettings function
    
    * sep starting websockets and watching settings. reduce need to pass large cfg object
    
    * move util functions out of project class
    
    * move tests to new file
    
    * update test
    
    * move code around
    
    * update tests
    
    * remove need to pass options to getConfig
    
    * fix tests
    
    * separate get and init config
    
    * set browser warnings in initializeConfig
    
    * move Ct specific concerns to same function
    
    * do not pass config to initializeSpecStore
    
    * remove onOpen function
    
    * improve types
    
    * update typing errors
    
    * update types
    
    * types
    
    * fix types
    
    * update tests
    
    * update tests
    
    * fix tests
    
    * update tests
    
    * comment back in test
    
    * update methods
    
    * update types
    
    * add defensive code against config.clientRoute
    
    * do not use async
    
    * update tests
    
    * use same baseUrl for proxy regardless
    
    * remove comment
    
    * revert change to baseUrl
    lmiller1990 authored Jul 13, 2021
    4
    Copy the full SHA
    b945b81 View commit details
  2. 4
    Copy the full SHA
    56a30e0 View commit details
  3. 4
    Copy the full SHA
    0fc3944 View commit details

Commits on Jul 14, 2021

  1. docs: Add README for some newly added packages (#17283)

    Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
    jennifer-shehane and Barthélémy Ledoux authored Jul 14, 2021
    4
    Copy the full SHA
    5ced6ab View commit details
  2. 4
    Copy the full SHA
    b691a4d View commit details

Commits on Jul 15, 2021

  1. Copy the full SHA
    263c7fc View commit details
  2. chore: Update Chrome (beta) to 92.0.4515.101 (#17343)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    github-actions[bot] and cypress-bot[bot] authored Jul 15, 2021
    4
    Copy the full SHA
    ee44f9e View commit details

Commits on Jul 16, 2021

  1. build: unhoist vue for react compilation (#17351)

    Barthélémy Ledoux authored Jul 16, 2021
    4
    Copy the full SHA
    f1ddc32 View commit details
  2. 4
    Copy the full SHA
    789c405 View commit details
  3. fix(ui): use mouseenter instead of mouseover for ui hover events (#17258

    )
    
    * use mouseenter instead of mouseover for ui hover events
    kuceb authored Jul 16, 2021
    4
    Copy the full SHA
    6b61550 View commit details

Commits on Jul 19, 2021

  1. Copy the full SHA
    deee831 View commit details
  2. docs: Fix link to blog post (#17381)

    Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
    365kim and semantic-release-bot authored Jul 19, 2021
    4
    Copy the full SHA
    8717e74 View commit details
  3. Copy the full SHA
    97c03c1 View commit details
  4. Copy the full SHA
    8cef948 View commit details
  5. 4
    Copy the full SHA
    113d05e View commit details
  6. chore: Update Chrome (stable) to 91.0.4472.164 (#17360)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    github-actions[bot] and cypress-bot[bot] authored Jul 19, 2021
    4
    Copy the full SHA
    ae0c520 View commit details
  7. fix(breaking_change): default to headless and 1280x720 for cypress ru…

    …n in all browsers (#17309)
    
    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    kuceb and jennifer-shehane authored Jul 19, 2021
    Copy the full SHA
    8a48488 View commit details
  8. Merge branch 'develop' into 8.0-release

    # Conflicts:
    #	yarn.lock
    jennifer-shehane committed Jul 19, 2021
    Copy the full SHA
    23edbc0 View commit details
  9. Copy the full SHA
    62f492b View commit details
  10. Merge pull request #16831 from cypress-io/8.0-release

    BREAKING CHANGE: 8.0 release
    flotwig authored Jul 19, 2021
    4
    Copy the full SHA
    c2f91f6 View commit details
  11. fix: revert "fix: res.send of cy.intercept doesn't override json-…

    …related content types. " (#17400)
    
    This reverts commit c2a2206.
    flotwig authored Jul 19, 2021
    4
    Copy the full SHA
    190294c View commit details

Commits on Jul 20, 2021

  1. release 8.0.0 [skip ci]

    flotwig committed Jul 20, 2021
    Copy the full SHA
    d1340cd View commit details
Showing with 6,009 additions and 2,753 deletions.
  1. +4 −1 .github/CODEOWNERS
  2. +0 −29 .github/ISSUE_TEMPLATE/1-bug-report.md
  3. +42 −0 .github/ISSUE_TEMPLATE/1-bug-report.yml
  4. +0 −42 .github/ISSUE_TEMPLATE/2-install-issue.md
  5. +60 −0 .github/ISSUE_TEMPLATE/2-install-issue.yml
  6. +0 −19 .github/ISSUE_TEMPLATE/3-feature.md
  7. +26 −0 .github/ISSUE_TEMPLATE/3-feature.yml
  8. +3 −3 .github/ISSUE_TEMPLATE/config.yml
  9. +3 −1 CONTRIBUTING.md
  10. +2 −2 browser-versions.json
  11. +2 −2 cli/__snapshots__/cli_spec.js
  12. +2 −2 cli/lib/cli.js
  13. +29 −19 cli/lib/exec/spawn.js
  14. +6 −0 cli/lib/exec/xvfb.js
  15. +71 −1 cli/schema/cypress.schema.json
  16. +1 −1 cli/types/cypress-npm-api.d.ts
  17. +57 −44 cli/types/cypress.d.ts
  18. +9 −0 cli/types/tests/cypress-tests.ts
  19. +7 −0 npm/cypress-schematic/CHANGELOG.md
  20. +2 −2 npm/react/README.md
  21. +25 −19 npm/react/src/mountHook.ts
  22. +7 −0 npm/vite-dev-server/CHANGELOG.md
  23. +15 −2 npm/vite-dev-server/src/makeCypressPlugin.ts
  24. +0 −1 npm/webpack-dev-server/src/startServer.ts
  25. +5 −3 package.json
  26. +2 −1 packages/desktop-gui/cypress/fixtures/config.json
  27. +31 −1 packages/desktop-gui/cypress/integration/project_nav_spec.js
  28. +7 −0 packages/desktop-gui/src/app/nav.scss
  29. +2 −0 packages/desktop-gui/src/lib/browser-model.js
  30. +5 −2 packages/desktop-gui/src/project-nav/browsers.jsx
  31. +7 −3 packages/desktop-gui/src/project/project-model.js
  32. +24 −0 packages/driver/cypress/fixtures/request.html
  33. +45 −27 packages/driver/cypress/integration/commands/actions/click_spec.js
  34. +1 −1 packages/driver/cypress/integration/commands/connectors_spec.js
  35. +56 −0 packages/driver/cypress/integration/commands/net_stubbing_spec.ts
  36. +2 −2 packages/driver/cypress/integration/dom/visibility_spec.ts
  37. +14 −11 packages/driver/cypress/integration/issues/1939_1940_2190_spec.js
  38. +58 −0 packages/driver/cypress/integration/issues/3871_spec.js
  39. +0 −240 packages/driver/cypress/integration/util/firefox_forced_gc_spec.ts
  40. +8 −5 packages/driver/cypress/support/defaults.js
  41. +2 −1 packages/driver/package.json
  42. +9 −7 packages/driver/src/cy/commands/connectors.js
  43. +2 −1 packages/driver/src/cy/net-stubbing/add-command.ts
  44. +13 −4 packages/driver/src/cypress.js
  45. +0 −64 packages/driver/src/util/firefox_forced_gc.ts
  46. +22 −11 packages/launcher/__snapshots__/browsers_spec.ts.js
  47. +11 −0 packages/launcher/__snapshots__/darwin_spec.ts.js
  48. +14 −0 packages/launcher/__snapshots__/windows_spec.ts.js
  49. +18 −0 packages/launcher/lib/browsers.ts
  50. +25 −32 packages/launcher/lib/detect.ts
  51. +3 −0 packages/launcher/lib/types.ts
  52. +21 −10 packages/launcher/test/unit/detect_spec.ts
  53. +5 −17 packages/launcher/test/unit/linux_spec.ts
  54. +1 −1 packages/net-stubbing/lib/server/driver-events.ts
  55. +6 −2 packages/net-stubbing/lib/server/intercepted-request.ts
  56. +1 −1 packages/net-stubbing/lib/server/middleware/response.ts
  57. +12 −4 packages/net-stubbing/lib/server/util.ts
  58. +7 −2 packages/network/lib/agent.ts
  59. +397 −0 packages/network/lib/client-certificates.ts
  60. +2 −0 packages/network/lib/index.ts
  61. +2 −0 packages/network/package.json
  62. +146 −0 packages/network/test/unit/agent_spec.ts
  63. +861 −0 packages/network/test/unit/client_certificates_spec.ts
  64. +8 −1 packages/reporter/cypress/integration/commands_spec.ts
  65. +0 −119 packages/reporter/cypress/integration/forced_gc_spec.ts
  66. +0 −22 packages/reporter/cypress/integration/unit/app_state_spec.ts
  67. +0 −21 packages/reporter/cypress/integration/unit/events_spec.ts
  68. +2 −2 packages/reporter/src/commands/command.tsx
  69. +0 −14 packages/reporter/src/lib/app-state.ts
  70. +0 −2 packages/reporter/src/lib/base.scss
  71. +0 −12 packages/reporter/src/lib/events.ts
  72. +0 −79 packages/reporter/src/lib/forced-gc-warning.scss
  73. +0 −159 packages/reporter/src/lib/forced-gc-warning.tsx
  74. +0 −7 packages/reporter/src/main.tsx
  75. +45 −0 packages/runner-ct/README.md
  76. +0 −1 packages/runner-ct/src/app/ReporterContainer.tsx
  77. +20 −0 packages/runner-shared/README.md
  78. +5 −52 packages/runner-shared/src/event-manager.js
  79. +72 −0 packages/runner-shared/src/studio/studio-recorder.js
  80. +181 −1 packages/runner-shared/src/studio/studio-recorder.spec.js
  81. +1 −1 packages/runner/README.md
  82. +1 −1 packages/runner/cypress/integration/retries.mochaEvents.spec.js
  83. +36 −12 packages/runner/cypress/integration/studio.mochaEvents.spec.js
  84. +3 −1 packages/runner/cypress/integration/studio.record.spec.js
  85. +24 −8 packages/runner/cypress/integration/studio.ui.spec.js
  86. +0 −1 packages/runner/src/app/app.jsx
  87. +0 −9 packages/runner/src/app/app.spec.jsx
  88. +11 −5 packages/server-ct/src/routes-ct.ts
  89. +2 −1 packages/server-ct/src/server-ct.ts
  90. +1 −0 packages/server/__snapshots__/0_reporters_spec.js
  91. +1 −1 packages/server/__snapshots__/3_config_spec.js
  92. +331 −122 packages/server/__snapshots__/3_studio_spec.ts.js
  93. +1 −0 packages/server/__snapshots__/7_record_spec.js
  94. +661 −85 packages/server/__snapshots__/spec_writer_spec.ts.js
  95. +1 −1 packages/server/lib/automation/automation.ts
  96. +1 −1 packages/server/lib/automation/screenshot.ts
  97. +1 −1 packages/server/lib/browsers/cdp_automation.ts
  98. +6 −2 packages/server/lib/browsers/chrome.ts
  99. +22 −5 packages/server/lib/browsers/firefox-util.ts
  100. +3 −3 packages/server/lib/browsers/firefox.ts
  101. +8 −7 packages/server/lib/config_options.ts
  102. +9 −0 packages/server/lib/errors.js
  103. +11 −10 packages/server/lib/gui/events.js
  104. +12 −8 packages/server/lib/ipc/ipc.js
  105. +31 −34 packages/server/lib/modes/run.js
  106. +124 −99 packages/server/lib/open_project.js
  107. +11 −1 packages/server/lib/plugins/index.js
  108. +419 −635 packages/server/lib/project-base.ts
  109. +200 −0 packages/server/lib/project_static.ts
  110. +132 −0 packages/server/lib/project_utils.ts
  111. +1 −1 packages/server/lib/routes.ts
  112. +8 −7 packages/server/lib/server-base.ts
  113. +2 −1 packages/server/lib/server-e2e.ts
  114. +2 −0 packages/server/lib/socket-base.ts
  115. +8 −16 packages/server/lib/studio.ts
  116. +13 −1 packages/server/lib/util/electron-app.js
  117. +3 −1 packages/server/lib/util/file.js
  118. +149 −44 packages/server/lib/util/spec_writer.ts
  119. +93 −21 packages/server/lib/util/validation.js
  120. +1 −1 packages/server/package.json
  121. +2 −2 packages/server/patches/{tsconfig-paths+3.9.0.patch → tsconfig-paths+3.10.1.patch}
  122. +30 −12 packages/server/test/e2e/3_studio_spec.ts
  123. +44 −0 packages/server/test/e2e/5_headless_spec.ts
  124. +18 −1 packages/server/test/e2e/5_stdout_spec.js
  125. +7 −0 packages/server/test/e2e/7_record_spec.js
  126. +13 −12 packages/server/test/integration/cypress_spec.js
  127. +5 −0 packages/server/test/support/fixtures/projects/e2e/cypress/integration/record_pass_spec.js
  128. +4 −5 packages/server/test/support/fixtures/projects/e2e/cypress/integration/stdout_passing_spec.js
  129. +12 −0 packages/server/test/support/fixtures/projects/e2e/cypress/plugins/index.js
  130. +0 −5 packages/server/test/support/fixtures/projects/firefox-memory/cypress/integration/spec.js
  131. +7 −7 packages/server/test/support/fixtures/projects/screen-size/cypress/integration/default_size.spec.js
  132. +6 −0 .../server/test/support/fixtures/projects/screen-size/cypress/integration/device_pixel_ratio.spec.js
  133. +1 −0 packages/server/test/support/fixtures/projects/screen-size/cypress/plugins/index.js
  134. +3 −0 packages/server/test/support/fixtures/projects/studio-no-source-maps/cypress.json
  135. +24 −0 ...es/server/test/support/fixtures/projects/studio-no-source-maps/cypress/integration/extend.spec.js
  136. +35 −0 packages/server/test/support/fixtures/projects/studio-no-source-maps/cypress/integration/new.spec.js
  137. +11 −0 packages/server/test/support/fixtures/projects/studio-no-source-maps/cypress/plugins/index.js
  138. +5 −0 packages/server/test/support/fixtures/projects/studio-no-source-maps/index.html
  139. +16 −2 packages/server/test/support/fixtures/projects/studio/cypress/integration/unwritten.spec.js
  140. +3 −2 packages/server/test/unit/browsers/chrome_spec.js
  141. +126 −17 packages/server/test/unit/config_spec.js
  142. +53 −43 packages/server/test/unit/gui/events_spec.js
  143. +27 −16 packages/server/test/unit/modes/run_spec.js
  144. +15 −2 packages/server/test/unit/open_project_spec.js
  145. +2 −2 packages/server/test/unit/plugins/index_spec.js
  146. +188 −245 packages/server/test/unit/project_spec.js
  147. +120 −0 packages/server/test/unit/project_utils_spec.ts
  148. +43 −17 packages/server/test/unit/scaffold_spec.js
  149. +265 −55 packages/server/test/unit/util/spec_writer_spec.ts
  150. +4 −2 packages/ui-components/src/dropdown.tsx
  151. +2 −2 scripts/ensure-dependencies.sh
  152. +21 −22 yarn.lock
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Each line is a file pattern followed by one or more owners.

# Test Runner team are owners of code within root packages and cli
# Test Runner team are owners of code within root packages concerning e2e, cli, and other utils
/.github/ @cypress-io/test-runner
/browser-versions.json @cypress-io/test-runner
/cli/ @cypress-io/test-runner
/packages/coffee/ @cypress-io/test-runner
@@ -19,9 +20,11 @@
/packages/rewriter/ @cypress-io/test-runner
/packages/root/ @cypress-io/test-runner
/packages/runner/ @cypress-io/test-runner
/packages/runner-shared/ @cypress-io/test-runner
/packages/server/ @cypress-io/test-runner
/packages/socket/ @cypress-io/test-runner
/packages/static/ @cypress-io/test-runner
/packages/ts/ @cypress-io/test-runner
/packages/ui-components/ @cypress-io/test-runner
/packages/web-config/ @cypress-io/test-runner
/scripts/ @cypress-io/test-runner
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/1-bug-report.md

This file was deleted.

42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "🐛 Bug report"
description: Report a bug found while using Cypress.
body:
- type: markdown
attributes:
value: |
Have a question? 👉 [Start a new discussion](https://github.com/cypress-io/cypress/discussions) or [ask in chat](https://on.cypress.io/discord).
- type: textarea
id: current-behavior
attributes:
label: Current behavior
description: A description including screenshots, stack traces, DEBUG logs, etc. [Troubleshooting tips](https://on.cypress.io/troubleshooting).
placeholder: Currently...
validations:
required: true
- type: textarea
id: desired-behavior
attributes:
label: Desired behavior
description: Remember, we're not familiar with the app you're testing, so please provide a clear description of what should happen.
placeholder: In this situation, Cypress should...
- type: textarea
id: reproduction
attributes:
label: Test code to reproduce
description: Provide a failing test or repo we can run. You can fork [this repo](https://github.com/cypress-io/cypress-test-tiny), set up a failing test, then link to your fork.
placeholder: Here is my failing test code and the app code to run the tests on...
validations:
required: true
- type: input
id: version
attributes:
label: Cypress Version
description: Run `cypress version` to see your current version. If possible, please update Cypress to the latest version first.
placeholder: ex. 7.6.0
validations:
required: true
- type: textarea
id: other
attributes:
label: Other
placeholder: Any other details?
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/2-install-issue.md

This file was deleted.

60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/2-install-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "⬇️ Issue during install"
description: Report an issue while downloading Cypress.
labels: ['topic: installation']
body:
- type: markdown
attributes:
value: |
Have a question? 👉 [Start a new discussion](https://github.com/cypress-io/cypress/discussions) or [ask in chat](https://on.cypress.io/discord).
If you're behind a corporate proxy, make sure to [configure it properly](https://on.cypress.io/proxy-configuration) before install.
- type: textarea
id: current-behavior
attributes:
label: Current behavior
description: A description including screenshots, stack traces, DEBUG logs, etc. [Troubleshooting tips](https://on.cypress.io/troubleshooting).
placeholder: When I try to download Cypress...
validations:
required: true
- type: textarea
id: debug-logs
attributes:
label: Debug logs
description: Include DEBUG logs setting [`DEBUG=cypress:*`](https://on.cypress.io/troubleshooting#Print-DEBUG-logs/). Include npm/yarn logs if applicable.
placeholder: Debug logs
- type: input
id: version
attributes:
label: Cypress Version
description: The version you're trying to install
placeholder: ex. 7.6.0
validations:
required: true
- type: dropdown
id: package-manager
attributes:
label: Package Manager
options:
- npm
- yarn
- Direct download
- pnpm
- other
validations:
required: true
- type: dropdown
id: operating-system
attributes:
label: Operating system
options:
- Linux
- Mac
- Windows
- other
validations:
required: true
- type: textarea
id: other
attributes:
label: Other
placeholder: Any other details?
19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/3-feature.md

This file was deleted.

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/3-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "✨ Feature"
description: Suggest a feature or enhancement to improve Cypress.
body:
- type: markdown
attributes:
value: |
Have a question? 👉 [Start a new discussion](https://github.com/cypress-io/cypress/discussions) or [ask in chat](https://on.cypress.io/discord).
- type: textarea
id: feature
attributes:
label: What would you like?
description: A clear description of the feature or enhancement wanted in Cypress.
placeholder: I'd like to be able to...
validations:
required: true
- type: textarea
id: reason
attributes:
label: Why is this needed?
description: Remember, we're not familiar with the app you're testing, so please provide a clear description of why this would be useful to your project.
placeholder: I want this because...
- type: textarea
id: other
attributes:
label: Other
placeholder: Any other details?
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@ contact_links:
- name: 🤔 Questions and Help
url: https://github.com/cypress-io/cypress/discussions
about: This issue tracker is not for support questions. Please refer to our Discussions.
- name: 📊 Cypress Dashboard Feature
url: https://portal.productboard.com/cypress-io/1-cypress-dashboard
about: This issue tracker is not for requesting Cypress Dashboard features. Please express interest here.
- name: 💬 Chat
url: https://on.cypress.io/discord
about: Want to discuss Cypress with others? Check out our chat.
- name: 📃 Documentation Issue
url: https://github.com/cypress-io/cypress-documentation/issues/new
about: This issue tracker is not for documentation issues. Please open documentation issues here.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -282,11 +282,13 @@ Here is a list of the core packages in this repository with a short description,
| [reporter](./packages/reporter) | `@packages/reporter` | The reporter shows the running results of the tests (The Command Log UI). |
| [root](./packages/root) | `@packages/root` | Dummy package pointing at the root of the repository. |
| [runner](./packages/runner) | `@packages/runner` | The runner is the minimal "chrome" around the user's application under test. |
| [runner-ct](./packages/runner-ct) | `@packages/runner-ct` | The runner for component testing |
| [runner-shared](./packages/runner-shared) | `@packages/runner-shared` | The shared components between the `runner` and the `runner-ct` packages |
| [server](./packages/server) | `@packages/server` | The <3 of Cypress. This orchestrates everything. The backend node process. |
| [socket](./packages/socket) | `@packages/socket` | A wrapper around socket.io to provide common libraries. |
| [static](./packages/static) | `@packages/static` | Serves static assets used in the Cypress GUI. |
| [ts](./packages/ts) | `@packages/ts` | A centralized version of typescript. |

Public packages live within the [`npm`](./npm) folder and are standalone modules that get independently published to npm under the `@cypress/` namespace. These packages generally contain extensions, plugins, or other packages that are complementary to, yet independent of, the main Cypress app.

Here is a list of the npm packages in this repository:
4 changes: 2 additions & 2 deletions browser-versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"chrome:beta": "92.0.4515.80",
"chrome:stable": "91.0.4472.114"
"chrome:beta": "92.0.4515.101",
"chrome:stable": "91.0.4472.164"
}
4 changes: 2 additions & 2 deletions cli/__snapshots__/cli_spec.js
Original file line number Diff line number Diff line change
@@ -69,8 +69,8 @@ exports['shows help for run --foo 1'] = `
-e, --env <env> sets environment variables. separate multiple values with a comma. overrides any value in cypress.json or cypress.env.json
--group <name> a named group for recorded runs in the Cypress Dashboard
-k, --key <record-key> your secret Record Key. you can omit this if you set a CYPRESS_RECORD_KEY environment variable.
--headed displays the browser instead of running headlessly (defaults to true for Firefox and Chromium-family browsers)
--headless hide the browser instead of running headed (defaults to true for Electron)
--headed displays the browser instead of running headlessly
--headless hide the browser instead of running headed (default for cypress run)
--no-exit keep the browser open after tests finish
--parallel enables concurrent runs and automatic load balancing of specs across multiple machines or processes
-p, --port <port> runs Cypress on a specific port. overrides any value in cypress.json.
4 changes: 2 additions & 2 deletions cli/lib/cli.js
Original file line number Diff line number Diff line change
@@ -115,8 +115,8 @@ const descriptions = {
forceInstall: 'force install the Cypress binary',
global: 'force Cypress into global mode as if its globally installed',
group: 'a named group for recorded runs in the Cypress Dashboard',
headed: 'displays the browser instead of running headlessly (defaults to true for Firefox and Chromium-family browsers)',
headless: 'hide the browser instead of running headed (defaults to true for Electron)',
headed: 'displays the browser instead of running headlessly',
headless: 'hide the browser instead of running headed (default for cypress run)',
key: 'your secret Record Key. you can omit this if you set a CYPRESS_RECORD_KEY environment variable.',
parallel: 'enables concurrent runs and automatic load balancing of specs across multiple machines or processes',
port: 'runs Cypress on a specific port. overrides any value in cypress.json.',
48 changes: 29 additions & 19 deletions cli/lib/exec/spawn.js
Original file line number Diff line number Diff line change
@@ -73,15 +73,15 @@ module.exports = {

debug('needs to start own Xvfb?', needsXvfb)

// 1. Start arguments with "--" so Electron knows these are OUR
// arguments and does not try to sanitize them. Otherwise on Windows
// an url in one of the arguments crashes it :(
// https://github.com/cypress-io/cypress/issues/5466

// 2. Always push cwd into the args
// Always push cwd into the args
// which additionally acts as a signal to the
// binary that it was invoked through the NPM module
args = ['--'].concat(args, '--cwd', process.cwd())
args = args || []
if (typeof args === 'string') {
args = [args]
}

args = [...args, '--cwd', process.cwd()]

_.defaults(options, {
dev: false,
@@ -97,26 +97,24 @@ module.exports = {
electronLogging: false,
})

const { onStderrData, electronLogging } = overrides
const envOverrides = util.getEnvOverrides(options)
const electronArgs = []
const node11WindowsFix = isPlatform('win32')

if (options.dev) {
// if we're in dev then reset
// the launch cmd to be 'npm run dev'
executable = 'node'
args.unshift(
electronArgs.unshift(
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'),
)

debug('in dev mode the args became %o', args)
}

const { onStderrData, electronLogging } = overrides
const envOverrides = util.getEnvOverrides(options)
const electronArgs = _.clone(args)
const node11WindowsFix = isPlatform('win32')

if (!options.dev && verify.needsSandbox()) {
// this is one of the Electron's command line switches
// thus it needs to be before "--" separator
electronArgs.unshift('--no-sandbox')
electronArgs.push('--no-sandbox')
}

// strip dev out of child process options
@@ -141,10 +139,22 @@ module.exports = {
stdioOptions.env.DISPLAY = process.env.DISPLAY
}

debug('spawning Cypress with executable: %s', executable)
debug('spawn args %o %o', electronArgs, _.omit(stdioOptions, 'env'))
if (stdioOptions.env.ELECTRON_RUN_AS_NODE) {
// Since we are running electron as node, we need to add an entry point file.
const serverEntryPoint = path.join(state.getBinaryPkgPath(path.dirname(executable)), '..', 'index.js')

args = [serverEntryPoint, ...args]
} else {
// Start arguments with "--" so Electron knows these are OUR
// arguments and does not try to sanitize them. Otherwise on Windows
// an url in one of the arguments crashes it :(
// https://github.com/cypress-io/cypress/issues/5466
args = [...electronArgs, '--', ...args]
}

const child = cp.spawn(executable, electronArgs, stdioOptions)
debug('spawning Cypress with executable: %s', executable)
debug('spawn args %o %o', args, _.omit(stdioOptions, 'env'))
const child = cp.spawn(executable, args, stdioOptions)

function resolveOn (event) {
return function (code, signal) {
Loading