Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress v4.0 #4226

Merged
merged 65 commits into from
Feb 6, 2020
Merged

Cypress v4.0 #4226

merged 65 commits into from
Feb 6, 2020

Commits on May 17, 2019

  1. remove Node 4 support, bump packages that were previously approved bu…

    …t did not support Node 4 (#4208)
    
    * remove Node 4 support, bump packages that were previously approved but had removed Node 4 support
    
    * Update snapshots to reflect whitespace changes made in commander dep
    
    * bump supports-color dep (was previously not updated due to lack of Node 4 support)
    jennifer-shehane authored May 17, 2019
    Configuration menu
    Copy the full SHA
    875e07f View commit details
    Browse the repository at this point in the history

Commits on May 21, 2019

  1. Configuration menu
    Copy the full SHA
    fcdb616 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    523e3da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59ab85b View commit details
    Browse the repository at this point in the history
  4. Yield null from cy.writeFile (#2731)

    - Fixes #2466 
    - [Docs PR](cypress-io/cypress-documentation#1117)
    
    Should be part of 4.0.0
    lilaconlee authored and chrisbreiding committed May 21, 2019
    Configuration menu
    Copy the full SHA
    ce8f0ee View commit details
    Browse the repository at this point in the history
  5. Upgrade Sinon to 7.1.1 (#2881)

    - Fixes #2866
    lilaconlee authored and chrisbreiding committed May 21, 2019
    Configuration menu
    Copy the full SHA
    3de8a84 View commit details
    Browse the repository at this point in the history
  6. Upgrade to Chai 4 (#2862)

    * Initial upgrade changes
    
    * Some quick fixes
    
    * More fixes
    
    * Clean up exp logic and fix spread array failures
    
    * Remove caret from package.json
    
    * Add handling for proxies in isJquery
    
    * iterate on flaky test, increase default command timeout
    lilaconlee authored and chrisbreiding committed May 21, 2019
    Configuration menu
    Copy the full SHA
    25f2a6d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3cc1460 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    34dcaba View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6f87aeb View commit details
    Browse the repository at this point in the history
  10. eslint auto-fixes

    chrisbreiding committed May 21, 2019
    Configuration menu
    Copy the full SHA
    a99aa66 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bda92da View commit details
    Browse the repository at this point in the history
  12. fix failing driver test

    chrisbreiding committed May 21, 2019
    Configuration menu
    Copy the full SHA
    29fcda2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    791c8b6 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2019

  1. Configuration menu
    Copy the full SHA
    7b5cfb1 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2019

  1. Upgrade @cypress/browserify-preprocessor to 2.1.0 (#4308)

    * upgrade @cypress/browserify-preprocessor to 2.1.0
    
    * fix failing tests
    
    * update snapshot
    chrisbreiding authored May 28, 2019
    Configuration menu
    Copy the full SHA
    cae9fa7 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2019

  1. Configuration menu
    Copy the full SHA
    aaa39d1 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2019

  1. Configuration menu
    Copy the full SHA
    3dd31e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2019

  1. Merge branch 'develop' into v4.0-release

    # Conflicts:
    #	cli/__snapshots__/cli_spec.js
    #	packages/driver/test/cypress/integration/cypress/cypress_spec.coffee
    #	packages/server/package.json
    jennifer-shehane committed Jun 26, 2019
    Configuration menu
    Copy the full SHA
    11ff857 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afde638 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2019

  1. Configuration menu
    Copy the full SHA
    3088447 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2019

  1. Configuration menu
    Copy the full SHA
    006bf51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fefb42c View commit details
    Browse the repository at this point in the history
  3. update cli snapshots

    chrisbreiding committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    34f31fe View commit details
    Browse the repository at this point in the history
  4. move deps to right place

    these are only used in integration tests
    chrisbreiding committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    cbd871f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dabf4a1 View commit details
    Browse the repository at this point in the history
  6. fix snapshot

    chrisbreiding committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    3bb6f72 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ce3c761 View commit details
    Browse the repository at this point in the history
  8. require driver dom directly in reporter

    import the entire driver caused all of its dependencies to be loaded, which caused conflicts due to different versions of mocha
    chrisbreiding committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    9dd32f3 View commit details
    Browse the repository at this point in the history
  9. fix reporter unit tests

    chrisbreiding committed Oct 29, 2019
    Configuration menu
    Copy the full SHA
    a757cee View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    35d45d4 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2019

  1. fix runner tests

    mocking the driver require wasn’t working, so this accomplishes it in another way
    chrisbreiding committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    89c0ed1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d6f79af View commit details
    Browse the repository at this point in the history
  3. upgrade mocha to 6.2.2

    chrisbreiding committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    0ff6c04 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bbb9a8d View commit details
    Browse the repository at this point in the history
  5. upgrade sinon to 7.5.0

    chrisbreiding committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    82c76d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2019

  1. Configuration menu
    Copy the full SHA
    dd49d23 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ecbacc View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2019

  1. Remove support for Node 6 (#5632)

    * Bump required node version of cli to 8.0.0+
    
    * Bump chalk to 3.0.0
    
    - previously required Node 8 support
    
    * bump debug to 4.1.1
    
    - Drops Node 4 support, adds Node 10 support
    - They  mentioned no breaking changes, so we’ll see.
    
    * bump is-ci to 2.0.0
    
    - removes Node end of lives
    - supports more CIs for detection
    
    * bump is-installed-globally
    
    - drops support for Node 6 + improvements on detection
    
    * bump log-symbols dep
    
    - requires Node 8
    
    * bump supports-color
    
    - Requires Node 8
    
    * bump untildify - require Node 8
    
    * bump commander to 4.0.1
    
    - require Node 8
    - may break some snapshots - they changed some quotes like 'this'
    instead of `this'
    
    * bump execa to 3.3.0
    
    - removes Node 6 support
    - some breaking changes, but I didn’t find us using any of them on
    first pass.
    
    * bump cachedir
    
    * bump fs-extra
    
    Drops various node version support including 6
    
    * bump bluebird
    
    * bump ramda
    jennifer-shehane authored Nov 26, 2019
    Configuration menu
    Copy the full SHA
    299f0df View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Configuration menu
    Copy the full SHA
    f2600b5 View commit details
    Browse the repository at this point in the history
  2. update snapshots

    chrisbreiding committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    d84fdbd View commit details
    Browse the repository at this point in the history
  3. reset -> resetHistory

    chrisbreiding committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    be25eef View commit details
    Browse the repository at this point in the history
  4. fix shortcuts.ts

    chrisbreiding committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    d5bc9a0 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2019

  1. Configuration menu
    Copy the full SHA
    62fde51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0eddc2 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2020

  1. Configuration menu
    Copy the full SHA
    c491a3e View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2020

  1. cy.contains() improvements: normalizing whitespaces, case-sensi… (#5653)

    * migrate vscode eslint settings
    
    * Handles whitespaces with newlines.
    
    * Feature: contains() matches case insensitivity
    
    * Fixed merge conflicts.
    
    * Fixed conflicts.
    
    * Added option type, CaseMatchable.
    
    * Fixed lint error.
    
    * Added test for leading/trailing spaces.
    
    * Add an error message for regex and matchCase conflict.
    
    * Fix the valid case that throws an error.
    
    * Fix how error message is thrown.
    
    * update some cli deps that have fallen out of date since last commit
    
    * update cli snapshot
    
    Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
    Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    4 people authored Jan 30, 2020
    Configuration menu
    Copy the full SHA
    7ff91ed View commit details
    Browse the repository at this point in the history
  2. v4.0 latest deps (#6274)

    * upgrade mocha to 7.0.1
    
    * enableTimeouts: false -> timeout: false
    
    * upgrade sinon to 8.1.1
    
    * sinon.sandbox.create -> sinon.createSandbox
    chrisbreiding authored Jan 30, 2020
    Configuration menu
    Copy the full SHA
    1086e78 View commit details
    Browse the repository at this point in the history
  3. fix flaky e2e test

    something is wrong with coffeescript compiling, where a syntax error in the test file also gets thrown as an error in the support file, but inconsistently, causing this e2e test snapshot to be flaky. solution for now is to avoid coffeescript for that test file.
    chrisbreiding committed Jan 30, 2020
    Configuration menu
    Copy the full SHA
    0257b0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab78117 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2020

  1. Update browser types (#6254)

    * update browser types and list
    
    * add todo
    
    * first pass of changes
    
    * remove 'server' mode, since it is unused
    
    * use foundbrowser type for eletron definition
    
    * fix server unit tests
    
    * update --browser arg to allow name:channel
    
    * improve backwards compatibility impl
    
    * update 3_config_spec snapshot
    
    * fix 2_headless_spec
    
    * fix 5_stdout_spec
    
    * update browser icon stuff
    
    * update 5_spec_isolation_spec snapshot
    
    * Chrome Canary => Canary
    
    * update user-facing types
    
    * fix displayName type
    
    * add debug logs
    
    * fix cypress_spec
    
    * taps
    
    * update config.json
    flotwig authored Jan 31, 2020
    Configuration menu
    Copy the full SHA
    0e82cde View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0784af7 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. detect Microsoft Edge and Edge Canary browsers and allow runnin… (#6181)

    * feat: add microsoft edge support
    
    * feat: support edge dev
    
    * feat: support windows edge canary and edge dev
    
    * test: update snapshots
    
    * fix lint errors
    
    * edge dev -> edge
    
    * trigger windows build
    
    * run kitchensink tests on Chrome and Edge on AppVeyor
    
    * update browser types
    
    * add Edge Beta + Edge Dev
    
    * move edge stable to top of list
    
    Co-authored-by: Yousaf Nabi <yousafn@gmail.com>
    Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    Co-authored-by: Zach Bloomquist <github@chary.us>
    5 people authored Feb 3, 2020
    Configuration menu
    Copy the full SHA
    4a01cda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45efc7c View commit details
    Browse the repository at this point in the history
  3. Add test for cy.spy, cy.stub.callThroughWithNew on constructors (#6310)

    * add test for stub.callThroughWithNew on constructor
    
    * add test for spy on constructor
    
    * use patch-package for now
    flotwig authored Feb 3, 2020
    Configuration menu
    Copy the full SHA
    5177fa3 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2020

  1. Prep 4.0 launcher improvements (#6311)

    * async/await-ify chrome.ts, update e2e.js
    
    * remove psInclude
    
    * bump snap-shot-it, remove patch-package
    
    * fix failing tests, tighten up code
    
    * remove unused Promise.all
    
    * more code cleanup from coffeescript conversion
    
    * fix expectedExitcode
    
    * update snapshot with cross origin error message
    
    * more code cleanup from coffeescript conversion
    
    * remove global state, cleanup normalizing stdout in snapshots
    
    * fix asserting on the expected exit code
    
    * remove firefox a default browser in e2e tests
    
    * remove dupe const
    
    * make onStdout return first arg by default
    
    * make expectedExitCode: 0 the default, remove duplicate option from all e2e tests
    
    * reuse _getArgs() properly, tighten up dupe code, move perf e2e tests to use new e2e.it helpers
    
    * make e2e test pass properly, and capture snapshot
    
    - this was being overlooked because expectedExitCode wasn’t being set
    (until now its the default)
    
    * revert firefox specific changes to reduce PR diff
    
    * remove newline
    
    Co-authored-by: Brian Mann <brian.mann86@gmail.com>
    kuceb and brian-mann authored Feb 4, 2020
    Configuration menu
    Copy the full SHA
    dca481a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24d0e26 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2020

  1. Configuration menu
    Copy the full SHA
    259a65e View commit details
    Browse the repository at this point in the history
  2. deprecated before:browser:launch event (#6293)

    * deprecate old API for before:browser:launch
    
    * trigger ci
    
    * allow chrome preferences to be overwritten in before:browser:launch
    
    * add e2e test for chrome preferences
    
    * add launchOptions.windowSize, refactor plugin handling into browser/utils
    
    * async/await-ify chrome.ts, update e2e.js
    
    * add padding to warning, allow more than 1 warning in run mode
    
    * remove psInclude
    
    * bump snap-shot-it, remove patch-package
    
    * fix failing tests, tighten up code
    
    * remove unused Promise.all
    
    * more code cleanup from coffeescript conversion
    
    * fix expectedExitcode
    
    * update snapshot with cross origin error message
    
    * more code cleanup from coffeescript conversion
    
    * remove global state, cleanup normalizing stdout in snapshots
    
    * fix asserting on the expected exit code
    
    * remove firefox a default browser in e2e tests
    
    * remove dupe const
    
    * make onStdout return first arg by default
    
    * remove only
    
    * make expectedExitCode: 0 the default, remove duplicate option from all e2e tests
    
    * fix test for electron
    
    * reuse _getArgs() properly, tighten up dupe code, move perf e2e tests to use new e2e.it helpers
    
    * make e2e test pass properly, and capture snapshot
    
    - this was being overlooked because expectedExitCode wasn’t being set
    (until now its the default)
    
    * revert firefox specific changes to reduce PR diff
    
    * remove newline
    
    * temp 02/04/20 [skip ci]
    
    * add more scenarios / return values
    
    * rename plugin deprecation project fixture
    
    * prevent warnings in run mode from being called multiple times in the same browser launch
    
    - add plugin integration tests
    - cleanup some promise code in browsers/chrome
    - refactor the e2e deprecation tests
    
    * update e2e deprecation specs, test that deprecation warning is displayed once per spec on a run
    
    * cleanup let -> const, coffescript conversion
    
    * bump snap-shot-it, remove patch-package
    
    (cherry picked from commit ba23be5)
    
    * bump cli snap-shot-it
    
    * cleanup: let -> const, parseFloat, formatting
    
    * revert cross origin normalization
    
    * fix spacing
    
    * add types for plugin events
    
    * dont pad warning message in run mode
    
    * add e2e test for adding extensions before:browser:launch
    
    * fix failing electron unit test, consolidate creating default launch options
    
    * add extensions for electron + warning if install fails
    
    * fix failing tests, yield the right before:browser:launch args signature
    
    * e2e test electron via devtools extension
    
    * remove .only
    
    * add stdout assertions to e2e/1_deprecated_spec
    
    * remove snapshot whitespace
    
    * rename deprecation event
    
    * update deprecated browser launch args warning message
    
    * throw error on unexpected bbl property
    
    * add tests for warning + error on bbl
    
    * update snapshot
    
    * revive 2 useful tests to validate how launchOption args are merged
    
    * try fix e2e fullscreen spec, update snapshots
    
    * tighten up code for throwing errors on unknown launch options properties
    
    - list out the unknown and expected properties using existing
    conventions
    - tighten up the error message a bit
    
    * rename options -> launchOptions, add e2e test for adding unknown properties to launchOptions, removed dupe snapshots
    
    * fix fullscreen e2e test
    
    * only push user gesture arg if chromium
    
    * add e2e tests for throwing + rejecting errors, run e2e tests on all browsers, avoid ps logic only in electron
    
    * remove conditional args in fullscreen test
    
    * dont automatically install the latest version of chrome in circle
    
    * add stubs for new electron properties
    
    * switch from using port 5555 to 5544 to avoid common conflicts
    
    * temporarily commenting out windowSize launchOption so release is unblocked and all tests pass
    
    - can add it back in later once the e2e tests pass in CI
    
    * make the path to chrome profile correctly dynamic to account for all operating systems
    
    * remove magic length(8) and slice out the first 4 custom args set from the plugin launch options
    
    * add back --start-maximized in chrome
    
    * deleting windowSize-related code... for now!
    
    Co-authored-by: Zach Bloomquist <github@chary.us>
    Co-authored-by: Brian Mann <brian.mann86@gmail.com>
    Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
    4 people authored Feb 5, 2020
    Configuration menu
    Copy the full SHA
    9417614 View commit details
    Browse the repository at this point in the history
  3. Remove --browser canary backwards-compatibility (#6333)

    * remove --browser canary compatibility
    
    * update warning when canary is passed
    
    * add tests for --browser canary warning
    
    * Update packages/server/test/unit/browsers/browsers_spec.coffee
    flotwig authored Feb 5, 2020
    Configuration menu
    Copy the full SHA
    291a354 View commit details
    Browse the repository at this point in the history
  4. Define types for plugin events (#6322)

    * define types for plugin events
    
    * add plugins file TS test
    
    * fix plugins return type
    
    * add void returns where allowed
    
    * config can be partial
    
    * add async test
    
    * cannot return unknown keys in config
    
    * add more tests
    
    * add Task types and tests
    
    * fix style issues
    
    * update task type with compromise, remove redundant tests
    
    * fix type
    
    * bump kitchensink dep
    
    * add typescript reference and jsdoc to plugins scaffold file
    
    * update scaffold snapshot
    
    * add more tests for before:browser:launch
    
    * fix return type
    
    Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
    Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
    3 people authored Feb 5, 2020
    Configuration menu
    Copy the full SHA
    4b4842e View commit details
    Browse the repository at this point in the history
  5. updates to electon extensions

    - Windows.resetExtensions => removeAllExtensions
    - remove all extensions before installing too
    flotwig committed Feb 5, 2020
    Configuration menu
    Copy the full SHA
    7019a0b View commit details
    Browse the repository at this point in the history
  6. remove redundant comment

    flotwig committed Feb 5, 2020
    Configuration menu
    Copy the full SHA
    5abec9d View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2020

  1. Configuration menu
    Copy the full SHA
    aa1cc0d View commit details
    Browse the repository at this point in the history
  2. Add Firefox support (#1359)

    Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
    Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com>
    Co-authored-by: Brian Mann <brian.mann86@gmail.com>
    Co-authored-by: Zach Bloomquist <github@chary.us>
    Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
    6 people authored Feb 6, 2020
    Configuration menu
    Copy the full SHA
    d76123b View commit details
    Browse the repository at this point in the history