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: v8.4.1
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.5.0
Choose a head ref
  • 18 commits
  • 59 files changed
  • 15 contributors

Commits on Sep 20, 2021

  1. chore: Update Chrome (beta) to 94.0.4606.50 (#18117)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    3 people authored Sep 20, 2021
    4

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a87a373 View commit details
  2. fix(cli): Respect NO_PROXY on cypress download (#17702)

    Co-authored-by: Zach Bloomquist <git@chary.us>
    westarne and flotwig authored Sep 20, 2021
    4

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8249d2e View commit details

Commits on Sep 21, 2021

  1. 4

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9f9cf9e View commit details
  2. fix: add deprecation notice for win 32-bit (#18130)

    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    flotwig and jennifer-shehane authored Sep 21, 2021
    4

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d6e4e22 View commit details
  3. chore: Update Chrome (beta) to 94.0.4606.54 (#18174)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    3 people authored Sep 21, 2021
    4
    Copy the full SHA
    f826d3a View commit details
  4. 4
    Copy the full SHA
    0964ca2 View commit details

Commits on Sep 22, 2021

  1. 4
    Copy the full SHA
    f363eae View commit details
  2. chore: Update Chrome (stable) to 94.0.4606.54 (#18196)

    Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    3 people authored Sep 22, 2021
    4
    Copy the full SHA
    20c8c5f View commit details

Commits on Sep 23, 2021

  1. feat: allow use of javascript in config file (#18061)

    Barthélémy Ledoux authored Sep 23, 2021
    4
    Copy the full SHA
    dedb05a View commit details

Commits on Sep 24, 2021

  1. fix(vite-dev-server): replace UserConfig with InlineConfig to allow c…

    …orrect `configFile` types (#18167)
    
    Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
    Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
    3 people authored Sep 24, 2021
    4
    Copy the full SHA
    6e0c2c1 View commit details
  2. Copy the full SHA
    db6f909 View commit details
  3. 4
    Copy the full SHA
    1785016 View commit details
  4. feat(driver): add select by index (#18201)

    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    Co-authored-by: Zach Bloomquist <github@chary.us>
    3 people authored Sep 24, 2021
    4
    Copy the full SHA
    a5356b8 View commit details

Commits on Sep 25, 2021

  1. 4
    Copy the full SHA
    853a6f5 View commit details

Commits on Sep 27, 2021

  1. 4
    Copy the full SHA
    26f92e0 View commit details
  2. fix: set projectId in a custom config file (#18240)

    Barthélémy Ledoux authored Sep 27, 2021
    4
    Copy the full SHA
    c6758dc View commit details
  3. fix: Error message for cy.select() with no arguments (#18234)

    Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
    Co-authored-by: Zach Bloomquist <github@chary.us>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
    5 people authored Sep 27, 2021
    4
    Copy the full SHA
    c0846f5 View commit details
  4. release 8.5.0

    chrisbreiding committed Sep 27, 2021
    4
    Copy the full SHA
    2caa5de View commit details
Showing with 906 additions and 319 deletions.
  1. +2 −2 browser-versions.json
  2. +1 −0 circle.yml
  3. +5 −7 cli/lib/tasks/download.js
  4. +1 −0 cli/package.json
  5. +43 −11 cli/test/lib/tasks/download_spec.js
  6. +87 −93 cli/types/cypress.d.ts
  7. +3 −1 npm/create-cypress-tests/package.json
  8. +40 −0 npm/create-cypress-tests/scripts/copy-templates.js
  9. +1 −1 npm/design-system/package.json
  10. +1 −1 npm/react/package.json
  11. +3 −0 npm/react/plugins/next/findNextWebpackConfig.js
  12. +16 −0 npm/react/plugins/next/getRunWebpackSpan.ts
  13. +2 −2 npm/vite-dev-server/src/startServer.ts
  14. +1 −1 npm/vue/package.json
  15. +1 −1 package.json
  16. +1 −0 packages/desktop-gui/cypress/fixtures/config.json
  17. +4 −4 packages/desktop-gui/cypress/integration/settings_spec.js
  18. +6 −1 packages/desktop-gui/cypress/integration/setup_project_spec.js
  19. +2 −2 packages/desktop-gui/src/dashboard-projects/dashboard-projects-api.js
  20. +4 −1 packages/desktop-gui/src/runs/setup-project.jsx
  21. +127 −4 packages/driver/cypress/integration/commands/actions/select_spec.js
  22. +1 −1 packages/driver/cypress/integration/commands/actions/type_spec.js
  23. +5 −7 packages/driver/cypress/integration/commands/net_stubbing_spec.ts
  24. +35 −12 packages/driver/cypress/integration/commands/xhr_spec.js
  25. +7 −7 packages/driver/cypress/integration/cypress/proxy-logging-spec.ts
  26. +1 −1 packages/driver/cypress/integration/e2e/focus_blur_spec.js
  27. +31 −9 packages/driver/src/cy/commands/actions/select.ts
  28. +29 −17 packages/driver/src/cypress/error_messages.ts
  29. +1 −1 packages/runner-ct/static/index.html
  30. +6 −1 packages/runner-ct/webpack.config.ts
  31. +1 −0 packages/runner/package.json
  32. +1 −1 packages/runner/static/index.html
  33. +6 −1 packages/runner/webpack.config.ts
  34. +0 −12 packages/server/lib/controllers/static.ts
  35. +15 −1 packages/server/lib/errors.js
  36. +1 −1 packages/server/lib/gui/events.js
  37. +1 −1 packages/server/lib/html/non_proxied_error.html
  38. +32 −0 packages/server/lib/open_project.ts
  39. +11 −2 packages/server/lib/project-base.ts
  40. +16 −5 packages/server/lib/project_static.ts
  41. +0 −5 packages/server/lib/routes.ts
  42. +1 −1 packages/server/lib/server-base.ts
  43. +1 −1 packages/server/lib/util/ci_provider.js
  44. +93 −0 packages/server/lib/util/require_async.ts
  45. +71 −0 packages/server/lib/util/require_async_child.js
  46. +62 −19 packages/server/lib/util/settings.js
  47. +1 −1 packages/server/package.json
  48. +7 −0 packages/server/test/e2e/3_config_spec.js
  49. +18 −17 packages/server/test/integration/cypress_spec.js
  50. +7 −0 packages/server/test/support/fixtures/projects/config-with-custom-file-js/cypress.config.custom.js
  51. +8 −0 .../server/test/support/fixtures/projects/config-with-custom-file-js/cypress/integration/app_spec.js
  52. +2 −0 packages/server/test/unit/ci_provider_spec.js
  53. +6 −6 packages/server/test/unit/gui/events_spec.js
  54. +13 −0 packages/server/test/unit/open_project_spec.js
  55. +15 −10 packages/server/test/unit/project_spec.js
  56. +14 −0 packages/server/test/unit/settings_spec.js
  57. +1 −0 packages/web-config/package.json
  58. +4 −0 packages/web-config/webpack.config.base.ts
  59. +31 −47 yarn.lock
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": "94.0.4606.41",
"chrome:stable": "93.0.4577.82"
"chrome:beta": "94.0.4606.54",
"chrome:stable": "94.0.4606.54"
}
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1143,6 +1143,7 @@ jobs:

driver-integration-tests-chrome-beta:
<<: *defaults
resource_class: medium
parallelism: 5
steps:
- run-driver-integration-tests:
12 changes: 5 additions & 7 deletions cli/lib/tasks/download.js
Original file line number Diff line number Diff line change
@@ -9,19 +9,17 @@ const request = require('@cypress/request')
const Promise = require('bluebird')
const requestProgress = require('request-progress')
const { stripIndent } = require('common-tags')
const getProxyForUrl = require('proxy-from-env').getProxyForUrl

const { throwFormErrorText, errors } = require('../errors')
const fs = require('../fs')
const util = require('../util')

const defaultBaseUrl = 'https://download.cypress.io/'

const getProxyUrl = () => {
return process.env.HTTPS_PROXY ||
process.env.https_proxy ||
const getProxyForUrlWithNpmConfig = (url) => {
return getProxyForUrl(url) ||
process.env.npm_config_https_proxy ||
process.env.HTTP_PROXY ||
process.env.http_proxy ||
process.env.npm_config_proxy ||
null
}
@@ -205,7 +203,7 @@ const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => {
// {filename: ..., downloaded: true}
const downloadFromUrl = ({ url, downloadDestination, progress, ca }) => {
return new Promise((resolve, reject) => {
const proxy = getProxyUrl()
const proxy = getProxyForUrlWithNpmConfig(url)

debug('Downloading package', {
url,
@@ -357,6 +355,6 @@ const start = (opts) => {
module.exports = {
start,
getUrl,
getProxyUrl,
getProxyForUrlWithNpmConfig,
getCA,
}
1 change: 1 addition & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@
"minimist": "^1.2.5",
"ospath": "^1.2.2",
"pretty-bytes": "^5.6.0",
"proxy-from-env": "1.0.0",
"ramda": "~0.27.1",
"request-progress": "^3.0.0",
"supports-color": "^8.1.1",
54 changes: 43 additions & 11 deletions cli/test/lib/tasks/download_spec.js
Original file line number Diff line number Diff line change
@@ -313,28 +313,60 @@ describe('lib/tasks/download', function () {
})

context('with proxy env vars', () => {
const testUriHttp = 'http://anything.com'
const testUriHttps = 'https://anything.com'

beforeEach(function () {
this.env = _.clone(process.env)
// add a default no_proxy which does not match the testUri
process.env.NO_PROXY = 'localhost,.org'
})

afterEach(function () {
process.env = this.env
})

it('prefers https_proxy over http_proxy', () => {
process.env.HTTP_PROXY = 'foo'
expect(download.getProxyUrl()).to.eq('foo')
process.env.https_proxy = 'bar'
expect(download.getProxyUrl()).to.eq('bar')
it('uses http_proxy on http request', () => {
process.env.http_proxy = 'http://foo'
expect(download.getProxyForUrlWithNpmConfig(testUriHttp)).to.eq('http://foo')
})

it('ignores http_proxy on https request', () => {
process.env.http_proxy = 'http://foo'
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq(null)
process.env.https_proxy = 'https://bar'
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('https://bar')
})

it('falls back to npm_config_proxy', () => {
process.env.npm_config_proxy = 'foo'
expect(download.getProxyUrl()).to.eq('foo')
process.env.npm_config_https_proxy = 'bar'
expect(download.getProxyUrl()).to.eq('bar')
process.env.https_proxy = 'baz'
expect(download.getProxyUrl()).to.eq('baz')
process.env.npm_config_proxy = 'http://foo'
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('http://foo')
process.env.npm_config_https_proxy = 'https://bar'
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('https://bar')
process.env.https_proxy = 'https://baz'
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('https://baz')
})

it('respects no_proxy on http and https requests', () => {
process.env.NO_PROXY = 'localhost,.com'

process.env.http_proxy = 'http://foo'
process.env.https_proxy = 'https://bar'

expect(download.getProxyForUrlWithNpmConfig(testUriHttp)).to.eq(null)
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq(null)
})

it('ignores no_proxy for npm proxy configs, prefers https over http', () => {
process.env.NO_PROXY = 'localhost,.com'

process.env.npm_config_proxy = 'http://foo'
expect(download.getProxyForUrlWithNpmConfig(testUriHttp)).to.eq('http://foo')
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('http://foo')

process.env.npm_config_https_proxy = 'https://bar'
expect(download.getProxyForUrlWithNpmConfig(testUriHttp)).to.eq('https://bar')
expect(download.getProxyForUrlWithNpmConfig(testUriHttps)).to.eq('https://bar')
})
})

Loading