* Turn exception message into something human readable
* Pass ipc as parameter to invoke function
* Creating file to validate event name and handler
* Creating tests to validate_event
* Remove ipc from invoke parameter
* Removing ipc parameter being passed to validateEvent
* convert spec to js
* increase line-height for plugins error message
* refactor error messages and implementation
* fix race condition where async error in plugins file could hang run
a quick async error at the root of the plugins file had the potential to hang the run because the ‘exitEarlyWithErr’ listener was registered later than that error was emitted
this enables that error to be tracked so we can properly exit at the appropriate time
it also refactors run.js to not rely on an event emitted on the project and instead passes through an onError handler, which makes more sense since the event was only used in run.js (except for one case). it also makes for easier unit testing
* fix missing reference
* fix duplicate reference
* fix args being passed in incorrectly
* fix way args were handled in server.open
* fix exit early implementation
* fix duplicate logging
* fix unit test
* update snapshot
* fix missing reference
* add e2e test to cover plugin registration validation
* clean up after merge
* add back snapshot
* fix e2e tests
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
* Allow %, & in file name.
* Extract escapeFilenameInUrl
* Fix tests.
* Add test for ? (non-Windows).
* Remove platform condition. And handle when special chars are in the dir.
* Fix failure.
* Fix failure.
* add e2e test for specs with special characters
* minor refactor
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* fix race condition when there's an async error in root of plugins file
* return the promise
* fix routes creation
* fix tests
* fix error throwing and add tests
* update snapshots
* revert changes to server.open signatures in tests
* fix test
* properly wrap error so it doesn't log twice
* slow down test to ensure plugins error occurs before run is over
* wait to log early exit error until after run start
* update docker image to chrome 80 and firefox 72 image
* Use image with compatible 12.8.1 Node version
* update docker script
* improve debug logging of launched browser
* run tests with correct color depth
* force run with new cache version
* revert docker image
* Revert "revert docker image"
This reverts commit 93d03446cc.
* update gitignore
* generate 2048-bit keys
* add script to regenerate certs, if we need to do this again
* update certs (ran regenerate-certs.sh)
* copy, don't symlink - won't work on win anyways
* reregen
* cleanup
* don't use https-pem, it's too smol
see https://github.com/watson/https-pem/issues/3
* decaffeinate: Rename ca.coffee and 11 other files from .coffee to .js
* decaffeinate: Convert ca.coffee and 11 other files to JS
* decaffeinate: Run post-processing cleanups on ca.coffee and 11 other files
* https-proxy decaf cleanup
* wip: ca_version
* add versioning for CA store
* add regenerate:certs script
* add timings to ca_spec
* unneeded patch-package
* fix yarn.lock
Co-authored-by: Zach Bloomquist <github@chary.us>
* Use CDP to record video for Electron
* Enable video recording in Electron headed
* Test video in headed + headless for all browsers
* Update e2e tests
* add isDetached to type declaration
* add rest of dom function declarations
* remove any type union
* remove duplicate declaration
* add docstrings for documented types
* .js => .ts
* update types + tests
fix ts lint
* add Cypress.dom type tests
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
* fix patch-package
- don't hoist dependencies that are patched, this way we can be assured the path is always correct
- put all patches in root postinstall so postinstall-postinstall is guaranteed to work
* wip
* Revert "fix patch-package"
This reverts commit 5583f21478.
* use per package patches
* don't ignor engines or silence
* try: make sinon patch devonly
* fix socketspec
* run full ci on this branch
* bump xcode tools to bump mac node version
* also run appveyor
* Revert "run full ci on this branch"
This reverts commit c3e52d09ec.
* Revert "also run appveyor"
This reverts commit bfe7b0499a.
* desktop-gui: add toggle buttons to expand/collapse all sub folders. #6282
* lint code changes
* hide collapse/expand buttons when root spec has no folders
* fix indentation
* fix lint issue and refactor a bit
* Move collapse/expand links to right side of folder header
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
* cli: downgrade chalk
* add job to test NPM on minimum Node version
* forgot to attach workspace
* try updating npm
* try installing npm 5.0.4
* try npm 5.1.0
* skip npm init, just install Cypress
* try using Yarn
* run additional Cypress commands
* print Cypress version
* print Cypress version
* hmm, try different user
* yarn-lock
* back to npm
* print npm version
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
* Set window size to a better default size when running headless in chrome
* add test for spawning in 720p
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
* Adds retry button for project baseUrl warning
* Refactors project retry button
* Refactors to improve testability and adds tests
* Adds back reopenProject method
* Fixes warning message test errors
* Makes requested changes
* improve selectors
* fix dismissing warnings
* rename clear warning to dismiss warning
* refactor / improve
- only add retry button if it's the base url warning
- keep warning around while waiting for retry
- move tests to warning message spec
* disable retry button and show retrying message while retrying base url
Co-authored-by: ngunnarson <56410720+ngunnarson@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* #6231 use more CI information from GitLab
* issue-6231 fix spec provider tests
* issue-6231 use GitLab CI Repository URL instead of Project URL as remoteOrigin commit param
* clean up server test commands
this mostly restores the pre-yarn behavior:
- passing a file path to a test command runs that file, not all tests
- there is only one test-watch
- there is a "test" command which accepts a pathx
* allow run.js to specify multiple specfiles
* simplify e2e test setup by using globbing
* fix e2e test that has been broken for eternity
* still let users use `test-e2e --spec` syntax
* update server README
- add needed deps in `ui-components` package
- upgrade `@cypress/webpack-preprocessor`
- refactor some eslint code, remove unused eslint scripts
- rename `build-js` scripts to `build-prod` since they'll only need to run when building for prod / checking for tsc errors
* fix: disable log for clearLocalStorage #6342
* fix: default log value
* fix: remove unwanted isnt false and options._log
* test: add test for log: false
* feat: add options fallback to keys param
* feat: add options fallback to keys param
* test: add test for key to be options
* test: fix not string error test
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* split driver type spec into multiple files
* remove duplicate trimInnerText, remove unused before hook
* remove unused logic from test
* Revert "remove unused logic from test"
This reverts commit 9dd54caeb9.
* remove unused test support code
* ok fine, we leave the newlines code
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>