* chore(deps): Update @cypress/bumpercar to 2.0.9 🌟
* remove react-tooltip upgrade from this PR
* Have tooltip have default empty string to avoid 'title requirement' warning in console
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Warn on createRun if warning code is unknown
* add response validation in 7_record_spec
* add unknown warning fallback test
* update existing tests to match schemas
* fix(deps): update fs-extra to 8.0.1 🌟
* but fs-extra in cli package back to 5.0.0 (Needs Node 4 support)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* fix(deps): update fs-extra to 6.0.1 🌟
* Downgrade cli fs-extra back down to 5.0.0 - 6.0.0 drops Node 4 support
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Do not log 'counts' for aliases that are non-routes
- Update styling of alias counts to be more centered
- Write tests for non-route aliases to display in runner
* Replace enzyme alias tests with Cypress tests
* Remove unnecessary instructions for desktop gui testing
* Add timezone env var to ensure desktop-gui testing passes
* Add parallelization disabled warning tooltip
- Update the few to match new logic written from Dashboard.
* fix failing specs
* add unit tests for stripSharedDirs method
* allow perf tests to fail CI
* use percentiles to make proxy-perf less flaky, reenable https tests, clean up table output
* newline
* retry performance test, lower timeout
* fix(deps): update winston to 1.1.2 🌟
* remove instances where winston is required but not used.
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* fix(deps): Update electron-positioner to 4.1.0 🌟
* remove electron-positioner dep - this is not used anywhere...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* Allow users to disable exception reporting with CYPRESS_EXCEPTION_REPORTING=0
* rename to CYPRESS_CRASH_REPORTS, do not merge into env
* rename createRaygunException -> createCrashReport
* add projectId to default config keys so it shows up resolved project settings
-
* only suppress CYPRESS_ENV from showing up as an env var, allow CYPRESS_CRASH_REPORTS to be displayed
* make config keys a clear constant, formatting, cleanup
* truncate special env vars and debug logs
* only set authToken if truthy
* removed unused require
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* only send auth headers to the original protection space
* cleanup
* test now fails w/o fix
* note about moving this into lib/util/uri.js
* refactor, cleanup, and provide more context
* add lots of tests around cors.urlMatchesOriginProtectionSpace
- fix some edge cases and yes… bugs due to behavior of url.format(…)
- if host is set, port value is ignored, so we must clear it out
- protocol contains a ‘:’ character, fixed the protocol + port constants
- synchronize method signatures to always return a safely cloned
url.parse(…) object
- add url notes
* have buffers use url utility
* fixes failing tests
* remove unused require
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* Add failing test case for visible element within overflow hidden then position absolute element.
Addresses #4395
* Write failing test case for when parent is flex and overflow hidden with el outside bounds
Addresses #4161
* Wrote failing test for visibility outside of clip-path
Addresses #1178
* Add failing tests for transform scale
Addresses https://github.com/cypress-io/cypress/issues/723
* Add failing test for backfact-visibility hidden example
* cs -> js fixes
* Add more specific error when el is not element
* Always return as visible when checking html or body
* Add comments + rename methods to be more exact
* Add case for isHidden when visibility is collapse
* Add failing test cases for visibility issues
* Add comment about how ensureVisibility works under the hood
* Add checks and tests for opacity: 0 to be hidden
* Simplify if/case statements to be more readable
* Expand check for offset parents to also check children of ancestor for positioning attributes
close#4395close#755
* Fix issue where els with parents with absolute position inside overflow hidden would be calculated as not visible
* comment out opacity checks for patch release
* Add more tests around new visibility assertions
- Add case to make sure display none is not on the option or optgroup
itself
* Fix failing assertion - where el was undefined when looking for visibiliyt
* remove commented out code involving opacity 😬
* use is-html as a fallback to check if response is HTML
* end response with passthru stream
* clean up network_failures
* add test that visit passes with undef content-type
* handle empty responses too
* try to fix dtslint: bump package version 2
02-00000876
* fix failing tests via develop merge
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* release 3.2.0 [skip ci]
* add failing test for 304
* always end response on 1xx, 204, or 304
* add http req spec
* add test that 1xx, 204, 304 always pass thru immediately
* cleanup
* skip stubborn test
* cleanup, tests
* fix stopping debugproxy where it hasn't been started
fix stopping debugproxy where it hasn't been started
* Never proxy websocket port
* e2e test now works
* unnecesary this
* e2e works in ci
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* add tests for getAddress on localhost
* add test for visit resolving quickly
* add debug logs to network
* network: override addRequest in HttpAgent, not createSocket
* don't need to add connection: keep-alive to all responses
https://github.com/cypress-io/cypress/pull/4385#issuecomment-499103484
* test that visit finishes quickly
* do not forward connection header
* add tests to help reproduce
* cleanup
* still send keep-alive
* update tests
* remove timers
* add snapshots to e2e test
* remove tests for debugging
* try making console writes async
* Revert "remove timers"
This reverts commit b9d65a4e5c.
* allow DEBUG_COLORS to be passed in an e2e test
* try: using system node for the timers, setting up our own IPC
* Revert "try: using system node for the timers, setting up our own IPC"
This reverts commit c51b3957e2.
* put the interesting test first
* use electron-mocha to run tests in electron
* Revert "use electron-mocha to run tests in electron"
This reverts commit 8b82f0eeb3.
* support legacy addRequest invocation
* Revert "Revert "remove timers""
This reverts commit 93f15fcb17.
* update snapshot
* Revert "try making console writes async"
This reverts commit 9c8337e433.
* complete in 150ms, not 1000ms
* Memoize getCssRulesString by href to improve perf and memory
address #2366
* Add tests
* Move tests around in preparation for more
* Memoize makePathsAbsoluteToStylesheet as well
* Serve large dynamic css file rather than massive static file
* Update readme to be explicit about directories to run npm scripts
- This confused me each time I needed to get tests running again with the watchers
* Fix bug that causes occasional test failure
* rename spec to match issue instead of PR
* update memoization of snapshot css to account for changes by javascript
* improve snapshot css memory usage and performance
* fix linting error
* try re-ordering the tests
* add existential check to html element
* add back html file
* limit memoized caches to 50 items
* simplify generated css code
* refactor listening to css modification and before window load
* add/revise css snapshot tests
remove tests that needed manual verificaiton in favor of integration tests
* use lodash instead of Array.from
* rename function for consistency
* fix limited map first key implementation
* fix log spec
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
* @cypress/what-is-circular@1.0.1
* bump socket.io-circular-parser to support circular refs in binary objs
* add repro for nested request
* use npx for patch-package since devDeps may not be available at build time
* build on appveyor
* keep patches in package
* Revert "build on appveyor"
This reverts commit e0d767250a.
* do not watch pluginsFile in run mode
* add integration test ensuring watchers aren't applied in run mode
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* use a parser that supports circular json
* update tests to work with new socketio version
* add error message when users supply circular body to visit/request
* show the path of the circular reference detected
* Revert "use a parser that supports circular json"
This reverts commit c052f44ec8.
* add failing driver and server tests for circular objs over websocket
* use a parser that supports circular json
* add has-binary2 patch that enables circular objects to be inspected
* update socket spec
* rejectUnauthorized: false
* use @packages/socket instead of copying client source
* prevent false positive
* use commit hash for socket.io-circular-parser
* cleanup bundling of socket.io for node + browser
- keep the interfaces identical
- browser simply has less properties than the node variant
* properly import client + circularParser from socket package
* @cypress/what-is-circular
* dont require the extension, it causes gulp to hang
* fix runner tests hanging
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* Ensure that test titles are strings before sanitizing them for screenshot names
* Fix linting errors
* stringify non-string title, return '' for null and undefined
* minor cleanup. extract to outer function. refactor to lodash.
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
* fix programmatic blur events, allow typing into currently focused, fix getHostContenteditable
* intercept .blur
* reference issues in tests
* make tests account for conditional number of new lines inserted
- newer browsers insert a double new line, whereas older browsers dont
- write a helper that exposes the multiplier of new lines
* cleanup, remove dead code
* make tests dynamic when browser is or isn't out of focus
* cleanup, remove old notes, add more notes
* add failing tests for when native focus / blur are called multiple times
- need to handle not firing the events conditionally based on whether
or not the element would / should receive them
* remove old code for priming focus/blur events when window is out of focus
* remove dead code
* update focus_blur spec + add chai-subset
* decaffeinate: Rename focus_blur_spec.coffee from .coffee to .js
* decaffeinate: Convert focus_blur_spec.coffee to JS
* decaffeinate: Run post-processing cleanups on focus_blur_spec.coffee
* add failing test
* fix double blur/focus events
* make document.hasFocus always return true, add test
* fix focus events when non-focusable element
* remove unneeded retrun
* fix focusing body/ bluring active element on click
* forgot to call .get() with index
* fix focus issue with body/window
* still allow firefocus on window, skip firing focus if firstfocusable is window during click
* left out return in intercept blur/focus
* cleanup test code for focus_blur spec
* add tests to type_spec, focus_blur_spec
00-00005bfe
* update focus logic for click, fix dtslint error
06-00003d9c
* add tests for selectionchange event in focus_blur spec
01-00000dae
* set dep to exact version
06-00002320
* minor formatting
* intercept focus/blur for SVGElement
* add comment to type-into-already-focused logic
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>