mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-22 07:00:22 -05:00
74a174bc82ccbda436123a2f73b786f2bfa74253
8 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a877474df1 |
Connect to Chrome Remote Interface when launching Chrome and re… (#4628)
* try connecting to chrome remote interface * linting * print CRI targets for better debugging * linting * load empty tab first when connecting to CRI * first load blank page, then navigate * Page.navigate is working * linting * remove title * add mocha banner * more banners * update some server unit tests * update integration test * document how to run single driver spec file * set the focus back on the page before navigating from blank chrome tab * update server unit test * do not store Chrome remote interface reference for now * record video of the Chrome tab using screencast API * use dynamic port to connect to Chrome remote interface * update unit tests * refactoring * wrap chrome remote interface in our interface, limit access to send * resolved merge * fix reference * passing run unit spec * stub canary search for CI to pass * add build step to packages/server * update chrome spec * do not build js on install for server * updated spec snapshots * update 6_visit_spec snapshot * update snapshot for 6_web_security_spec * update snapshot for 3_plugins_spec * update snapshot for 3_user_agent_spec * update snapshot for 5_stdout_spec * update snapshot for 2_browser_path_spec * do not git ignore js files, add note why * update several snapshots with video on Chrome * update visit performance snapshot * add chrome-remote-interface dependency * cleanup coffeescript conversion to JS, fix some type errors, make parallel override clearer * fix failing tests * Fix snapshot - now we do record in Chrome, so warning message is no longer there. * remove chrome warnings about not recording from snapshot * Remove performance tests from 6_visit_spec snapshot * Remove error from snapshot * Add newline back to cy_visit_performance_spec snapshot * Navigate to about:blank * look for blank page url * add note about avoiding Prettier * disable prettier a little more * call chrome remote interface close after each spec * return promise when starting screencast * update failing unit tests, add cri client close test * update integration test * Add verbose debug statements to cri-client * Use connect.createRetryingSocket for CDP connection * record video from chrome browsers * add method for validating browser family * update e2e spec snapshot * update 4_request_spec snapshot * update snapshot for spec 1_commands_outside_of_test_spec * update snapshot for 3_plugins_spec * update snapshot for spec 3_user_agent_spec * try: Always log video capturing errors * update snapshot for 2_browser_path_spec * update snapshot for 2_cookies_spec * better browser family test * update snapshot for 5_stdout_spec * update snapshot for 5_subdomain_spec * Add protocol_spec tests * do not capture video during performance test * Add test for VIDEO_POST_PROCESSING_FAILED warning * use client.on to register screencast callback * cleanup prettier, extract some functions, switch to browser.family * moar cleanup and fixes * add logging to the cri-client so we can see every message sent + received to the cdp protocol * bump bluebird to 3.7.0 for .tapCatch addition * Fix unit tests * WIP: update e2e test to ensure that duration of the video matches what we expect * Test duration of recorded video * Run 6_video_compression in chrome + electron * Cleanup * finish ffmpeg duration verification * Update 8_reporters_spec snapshot * Update CRI close logic to monkey-patch browser.kill * add isBrowserFamily back * make it possible for remote-debugging-port to get overridden * Make CDP timeout 5s; add unit, e2e tests for CDP failure; add user-friendly CDP failure error * Update tests * Use CYPRESS_REMOTE_DEBUGGING_PORT to set CDP port; update CDP error message Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Zach Bloomquist <github@chary.us> |
||
|
|
6ba8d7cc93 |
Electron v5.0.10 (#4720)
* fix specs * use debugger protocol for cookie handling in electron * use latest gulp * use rimraf instead of gulp-clean * use electron 3.1.8 and node 10.2.1 * use gulp 4 in packages/static * fix sendCommandAsync, log Schema.getDomains on CDP connect * autofill e2e test name [skip ci] * electron@5.0.7, see what new failures exist * --no-sandbox for launching Electron * update cookies logic for electron * node 12 * update snapshot for new node * update error message for new node * stub sendCommandAsync * only connect to socket if path has been replaced, fixes #4776 * update node-sass to support node 12 * skip wacky socket tests for now * snapshot * fix run_plugins_spec snapshot, don't include stack trace * use --no-sandbox on linux to run as root * allow sendCommandAsync to resolve * use euid for root check * log domains even if undefined * don't worry about ending 1xx responses immediately anymore * use --max-http-header-size, change max size from 8kb to 1mb, fix #76 * do not send 502 on failed websocket, just send back ECONNRESET * update websocket spec port to not collide with other test * update outdated expect * Revert "only connect to socket if path has been replaced, fixes #4776" This reverts commit |
||
|
|
ca0b74930c |
Move fast_visit_spec to performance-test stage, track perf (#4989)
* Move fast_visit_spec to performance-test stage
* upload results from fast_visit_spec and proxy_performance_spec
* test
* Track URL in proxy_perf_spec
* also send commit timestamp
* use more params, use ciProviders where possible
* test
* add platform + arch
* use commit-info for timestamp, commit message
* Revert "use commit-info for timestamp, commit message"
This reverts commit
|
||
|
|
989f516556 |
Use percentiles to make proxy performance test not flaky (#4507)
* 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 |
||
|
|
36627fa68d | Store artifacts from perf tests (#3876) | ||
|
|
3ec7ccee28 |
debug perf tests, write har results to circle artifacts (#3869)
* debug perf tests, write har results to circle artifacts * increase timeout * sanitize the har filename * move the catch block below the then - so it's not run twice. only catch ECONNREFUSED - fix merge conflicts |
||
|
|
44da3eb65a |
Move proxy deps to @cypress namespace, use cypress.io urls for tests (#3860)
* debugging-proxy -> @cypress/debugging-proxy * server: move perf urls to cypress.io, also test http perf * update low water mark for CI * server: run perf tests on vanilla chrome proxy first to establish baseline for real tests * fix tests |
||
|
|
c1a345dce2 |
Improved proxy support (#3531)
* https-proxy: unused file * server: wrap all https requests that use a proxy * server: use request lib in ensureUrl if proxy is in use. this makes runs tab work behind a proxy * electron: pass --proxy-server to app itself, so the embedded github login page works * cli: first attempt at env vars from windows registry * cli: api cleanup * cli: lint * cli: fix crash on no proxy, add tests * add desktop-gui watch to terminals.json * cli: pass along --proxy-source * electron: pass --proxy-bypass-list too * server: whitelist proxy* args * cli: better wording * desktop-gui: display proxy settings * extension: force proxy [wip] * extension: finally, i am victorious over coffeescript * extension: add -loopback to bypasslist * extension: revert changes Revert "extension: force proxy [wip]" This reverts commit 3ab6ba42a763f25ee65f12eb8b79eb597efc9b11. * desktop-gui: skip proxysettings if there aren't any * https-proxy, server: proxy directConnections using https-proxy-agent * https-agent: pool httpsAgents * https-proxy: work when they're not on a proxy * https-proxy: ci - use agent 1.0 * https-proxy: tests * desktop-gui: hide proxy settings when not using proxy * https-proxy: pass req through to https-proxy-agent callback * cli: use get-windows-proxy * desktop-gui: always show proxy settings * server: use get-windows-proxy * electron, server: supply electron proxy config when window launched * server: fix * https-proxy: cleanup * server: clean up ensureUrl * https-proxy: cleanup * cli: fix * cli: fix destructuring * server: enable ForeverAgent to pool HTTPS/HTTP connections #3192 * server: updating snapshot * https-proxy: don't crash, do error if proxy unreachable * https-proxy: * get-windows-proxy@1.0.0 * https-proxy: use proxy-from-env to decide on a proxy for a url * server: fallback to HTTP_PROXY globally if HTTPS_PROXY not set * server: proxy args test * cli: add proxy tests * cli: add test that loadSystemProxySettings is called during download * cli, server: account for the fact that CI has some proxy vars set * https-proxy: "" * cli, https-proxy, server: "" * desktop-gui: update settings gui * desktop-gui: cypress tests for proxy settings * server: strict undefined check * cli, server: move get-windows-proxy to scope, optionalDeps * server, cli: use new and improved get-windows-proxy * cli, server: 1.5.0 * server: re-check for proxy since cli may have failed to load the lib * server, cli: 1.5.1 * server: NO_PROXY=localhost by default, clean up * https-proxy: disable Nagle's on proxy sockets \#3192 * https-proxy: use setNoDelay on upstream, cache https agent * https-proxy: test basic auth * https-proxy: add todo: remove this * server: add custom HTTP(s) Agent implementation w keepalive, tunneling * server: typescript for agent * add ts to zunder * server: more ts * ts: add missing Agent type declaration * server: create CombinedAgent * server: use agent in more places * ts: more declarations * server: make script work even if debug port not supplied * server: begin some testing * server, ts: agent, tests * server: test * server: agent works with websockets now * server: update snapshot * server: work out some more bugs with websockets * server: more websockets * server: add net_profiler * https-proxy: fix dangling socket on direct connection * server: fix potential 'headers have already been sent' * https-proxy: nab another dangler * server: update test to expect agent * https-proxy: fix failing test * desktop-gui: change on-link * server: add tests for empty response case * server: tests * server: send keep-alive with requests * server: make net profiler hook on socket.connect * server: only hook profiler once * server: update tests, add keep-alive test * server: only regen headers if needed * server: move http_overrides into CombinedAgent, make it proxy-proof for #112 * server: update snapshot * server: undo * server: avoid circular dependency * https-proxy, server: use our Agent instead of https-proxy-agent * server: add dependency back * cli: actually use proxy for download * server, launcher, ts: typescript * Revert "server, launcher, ts: typescript" This reverts commit |