-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat: component testing #14479
Merged
+49,242
−9,603
Merged
feat: component testing #14479
Changes from 1 commit
Commits
Show all changes
511 commits
Select commit
Hold shift + click to select a range
4240232
convert packages socket -> ts, upgrade socket.io to 3.x.x
brian-mann 39cd18a
replace browserify with webpack in packages/extension
brian-mann 342b05c
finished consolidating and refactoring socket-base, socket-e2e, and s…
brian-mann 3ff21b9
use automation api's to reset server state and browser state before e…
brian-mann b73871d
remove custom parser
brian-mann 3ba598b
remove additional circularParser ref
brian-mann 116fdf2
types: fix types (#14401)
lmiller1990 f4f07df
fix: add xhrs
lmiller1990 a58228a
wip: work on linting
lmiller1990 50fce54
chore: linting
lmiller1990 93a8085
convert lib/automation into typescript
brian-mann ca0a7d1
convert automation/screenshot into typescript
brian-mann 97c3dbf
convert automation/cookies into typescript
brian-mann 70d7dd2
let -> const
brian-mann ef7dc68
create ensureProp class helper to validate that properties are available
brian-mann 2192d3f
move around specific e2e method
brian-mann 0be806f
fix a bunch of types, improve type completion
brian-mann 5e26100
consolidate createRoutes
brian-mann 7e6d19f
add ts-no-check again
brian-mann 57208ef
dont check this file either
brian-mann 16ed422
types: remove return type
lmiller1990 86b4503
fix failing tests, listen to 'error' not 'connect_error' event due to…
brian-mann 2113d9e
dont use it.only
brian-mann 277088a
fix: correctly use new for automation class
lmiller1990 b9951ae
properly bind the automation#response method so it has access to this…
brian-mann 7e03f2b
fix: add missing get function
lmiller1990 94d561c
fix: use this to get correct ctx
lmiller1990 23e61d1
fix: use new screenshot class correctly
lmiller1990 b9f432e
reset the maxHttpBufferSize in socket.io server to be the previous v2
brian-mann 54c9e14
tests: fix some tests
lmiller1990 9b103b9
set opts if undefined
brian-mann c8a287b
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
lmiller1990 81971a4
run the npm/vue tests in CI
brian-mann fae3624
werge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
lmiller1990 aa03dd1
properly hook up netStubbing state to socket-ct, consolidate dupe cla…
brian-mann 1fe4149
add cy.intercept() tests
brian-mann 65dce64
export alias
brian-mann 3f06c62
tests: do not use arrow function because it breaks things
lmiller1990 55b63e0
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
lmiller1990 ec0277b
fix function name typo
brian-mann f2de406
use the right working directory so {PWD} is correct
brian-mann e1972a3
type screenshotsFolder as string
brian-mann bc2adc8
fix: linting
lmiller1990 2a751b6
tests: stub correct value
lmiller1990 57dbd98
tests: fix gui unit tests
lmiller1990 8922969
tests: fix cookie test
lmiller1990 f974e69
wip: xdescribe tests for now
lmiller1990 31a6148
chore: fixing the socket unit tests w ts-mocha
JessicaSachs 7a21e50
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
JessicaSachs f7420d1
update circular json patch for socket.io v4
flotwig 364a59a
nohoist
flotwig 0ce67d3
tests: call listenWebsockets in tests
lmiller1990 5925215
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
lmiller1990 6158393
chore: fixing the server unit tests by stubbing out process.versions.…
JessicaSachs e30dd07
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
JessicaSachs 5a49c1f
tests: ignore false positive in cypress spec when closing project
lmiller1990 f4a9852
Merge branch 'spike/evergreen-automation-apis' of github.com:cypress-…
lmiller1990 4090c50
tests: use automation constructor
lmiller1990 d0d8935
update isBuf to is-binary
flotwig 866d25d
tests: spy correct prop
lmiller1990 58433a7
call the right isBinary method
brian-mann 43029e3
fix: revert screenshot to be a plain function, fixing kitchen sink
lmiller1990 63b9f59
fix: types of screenshot
lmiller1990 c76ce37
chore: remove build files unintionally committed
lmiller1990 dd3f870
Merge branch 'screenshot-refactor' into spike/evergreen-automation-apis
lmiller1990 16c1e0f
tests: add socket tsconfig.json
lmiller1990 3dba316
fix double-encoding certain socket.io messages
flotwig df4ad93
chore: fixing launcher unit tests for OSX
JessicaSachs 2c40ebc
chore: fixing extension unit tests
JessicaSachs 446a6d7
chore: fixing https-proxy tests
JessicaSachs 8dd988d
chore: fix hanging unit tests for runner
JessicaSachs 496fdd6
types: fix some types (#14460)
lmiller1990 f6271f4
Merge in latest develop and resolve conflicts
lmiller1990 b8a6de1
specify socket.io-parser resolution, and ensure its not being hoisted
brian-mann f29d2d9
hard fix socket.io version dep for typescript d.ts file
brian-mann 90bd098
add test-e2e terminals task
brian-mann 046f2b6
set all debug versions, fix xvfb debug tests
brian-mann 4274d3b
create terminal task for running yarn
brian-mann 384fc73
fix linting warnings regarding it.only
lmiller1990 4d6c985
fixes types of deps
brian-mann e221420
correctly import fs utils
brian-mann d5b191e
set cwd forcibly when terminal opens
brian-mann 0652d7e
properly nohoist babel-loader + ts-loader, and remove unnecessary /[r…
brian-mann 67f423b
improves regexp matching to extract complex package names, adds tests
lmiller1990 97c7eb4
add a bunch of missing deps
brian-mann 78f6276
generate the right packages/socket build files
brian-mann 1a9ef9e
build tsc
brian-mann 650bc34
make sure to build with tsc
brian-mann 13356c2
build the right files, and include them in the final build
brian-mann d953c06
build the .js files for prod
brian-mann a8b6c14
move the server-ct tests into the tests folder
brian-mann 3b57282
convert automation.js to ts
lmiller1990 82bca03
add default download folder directory
lmiller1990 ea18aee
correct fs import
lmiller1990 369d453
Fix socket hang up
dmtrKovalenko 5397cfc
Fix socket hangup on intiial build
dmtrKovalenko cf71c31
Merge in socket hangup fix
dmtrKovalenko 0f646ab
Apply codereview points
dmtrKovalenko eecf1f0
rebuild yarn.lock
lmiller1990 a8f5206
chore: enable component testing for local developers and CI
JessicaSachs e00f081
chore: Fixing react + vue component tests (#14514)
JessicaSachs c8ceaa1
fix: bring back support for support files
elevatebart 9cba5ca
fix: remove two annoying react warnings
elevatebart 1bfb613
add missing circular-json dep
brian-mann c3237f7
chore: tweak style to match mock up
lmiller1990 cf5fd53
chore: add max width
lmiller1990 ee8fbd2
modified socket.io parser patches, removed custom handling of circula…
brian-mann a2a001d
fix socket patch for when binary data has null prototype
brian-mann 3ea6d7c
Update npm-react tests to run via CLI and use Xvfb
flotwig 6467faf
Merge branch 'feat/component-testing' into ct-runner-style
lmiller1990 6df66a5
fix: when quitting chrome exit the process
elevatebart 8152b3c
Merge branch 'feat/component-testing' into fix/evergreen-support-files
elevatebart 5d385de
chore: removing an uncaught viewportWidth from react tests, xdescribe…
JessicaSachs 0a10cdf
fix: use a reducer instead of a filter+map
elevatebart 2d30ada
refactor: simplify the loader for support
elevatebart 8803e6a
fix: load the absolute path of the import file
elevatebart 692f218
chore: improve margin around iframe
lmiller1990 f3fa6ca
feat: display webpack compilation errors in browser
lmiller1990 00a5e8a
fix: clear error when webpack successfully compiles
lmiller1990 1d4cbcb
Merge pull request #14545 from cypress-io/chore/fix-ct-react
lmiller1990 4fceac8
fix: use different default viewport for component testing
lmiller1990 2d17b55
refactor: take feedback on multiple fronts
elevatebart 29ba8ba
fix: split out the promise chain fix
elevatebart ffe6391
fix: make loading specs wait for Cypress init
elevatebart cec8949
refactor: loadSupport -> loadSupportFile
elevatebart 4f7d09e
fix: add some logs to ct auto-exit
elevatebart 16e2a8e
chore: fix whitespace and spelling error
lmiller1990 3aac39a
Merge pull request #14546 from cypress-io/ct-174-overlay
lmiller1990 fb8e71c
Merge pull request #14547 from cypress-io/default-component-testing-v…
lmiller1990 15a591f
Merge pull request #14516 from cypress-io/fix/evergreens-warnings
lmiller1990 17b8f13
Merge pull request #14570 from cypress-io/fix/evergreen-exit
lmiller1990 053ff82
refactor: use Bluebird instead of reduce
elevatebart 4830084
feat: support passing a webpack config path
lmiller1990 f5acf6c
Merge branch 'develop' into feat/component-testing
lmiller1990 557e219
fix: update width when resizing
lmiller1990 b33bd27
fix: end process after ct run mode
lmiller1990 aa6c191
Merge pull request #14515 from cypress-io/fix/evergreen-support-files
a3c270c
Update packages/server/lib/modes/run.js
lmiller1990 739a9e1
fix: exit with number of failed specs
lmiller1990 8e5a5db
chore: resolve conflicts
lmiller1990 b5a2361
Merge branch 'feat/component-testing' into exit-mode-ct-run-mode
lmiller1990 4b56847
Merge branch 'feat/component-testing' into ct-runner-style
lmiller1990 844ed86
chore: stub out process.exit
lmiller1990 e18e9b5
wip: make diff between component testing run/interactive clear
lmiller1990 e3fcb5d
chore: use same entry point for run/runComponent interactive/interact…
lmiller1990 865a7ae
chore: make e2e and component test modes more clear via naming
lmiller1990 af0efce
Merge branch 'exit-mode-ct-run-mode' of https://github.com/cypress-io…
brian-mann ff6cb54
refactored code, created dedicated entrypoints for e2e/ct modes
brian-mann 1a9bd83
some cleanup to back out of unnecessary changes
brian-mann 9292b9e
feat(component-testing): Move hmr stuff to the server (#14634)
dmtrKovalenko 3cb2d05
Merge pull request #14517 from cypress-io/ct-runner-style
lmiller1990 3bb72f8
Merge pull request #14576 from cypress-io/ct/viewport-aut-resize-ct-192
lmiller1990 77cd12e
chore: import interactive correctly in tests
lmiller1990 869d727
chore: fix tests
lmiller1990 ec87901
chore: fix tests and update snapshot
lmiller1990 1b1d390
chore: simplify modes
lmiller1990 a60de7f
chore: merge in feat/component testing
lmiller1990 f5b613e
chore: fix cypress react hooks
lmiller1990 18f827a
chore: merge in develop and resolve conflicts
lmiller1990 bc467c0
Merge pull request #14579 from cypress-io/exit-mode-ct-run-mode
lmiller1990 7556e80
Merge branch 'feat/component-testing' into remove-webpack-magic-ct-198
lmiller1990 0e3d7fb
wip: fixing css
lmiller1990 86809cb
Merge branch 'feat/component-testing' into remove-webpack-magic-ct-198
lmiller1990 9526eaf
chore: use webpack object instead of path
lmiller1990 06cebd8
test: make cell test pass all the time
elevatebart 6c09d22
fix: make cy.viewport not fail(no effect on width)
elevatebart fd1af0c
fix: simplify fix
elevatebart 49a5725
test: re-enable viewport commands
elevatebart e4a9746
test: update react tests with viewport examples
elevatebart 6c02435
fix: integrate lachlans feedback
elevatebart e7e859a
Merge pull request #14575 from cypress-io/remove-webpack-magic-ct-198
lmiller1990 8ece880
fix: use correct component testing command to kick off tests
lmiller1990 90b7cf8
chore: remove xdescribes
lmiller1990 8fb3b6c
fix(npm-react): typo in viewPort test
elevatebart 91235b3
test(ct): move viewport in crossword example
elevatebart 0a9ea0c
fix: error in tests
elevatebart 53788be
Merge branch 'feat/component-testing' into fix/evergreen-viewport
elevatebart 1fe1cfe
fix: make the viewport resizeable with drag & drop
elevatebart c27778e
fix: make vue runner work again ...
elevatebart ab55e83
chore: update yarn lock
elevatebart 157fb5e
test: re-comment 2 tests that are supposed to fail
elevatebart be19591
fix: remove the container ref from app.tsx
elevatebart cad9ffe
test: use wrap instead of get for faster tests
elevatebart 843acde
test: make the viewport test cleaner (nowrap)
elevatebart bdcb781
chore: include or remove otherwise xdescribed specs
lmiller1990 d6e185a
fix: remove change of viewport on resize
elevatebart 79afc81
chore: run yarn and update yarn.lock
lmiller1990 589b18c
Merge pull request #14680 from cypress-io/ct/remove-x-describes
lmiller1990 e8c34b8
Merge pull request #14665 from cypress-io/fix/evergreen-viewport
8e9d68e
feat(component-testing): React devtools for component testing (#14675)
dmtrKovalenko 3cbe96a
fix: viewport styling and split pane widths
JessicaSachs 50be1b5
refactor: improve spec list
lmiller1990 24e8036
refactor: improve spec list
lmiller1990 9f4ce51
refactor: use new components in runner-ct
lmiller1990 b5509a7
chore: remove old files
lmiller1990 2e809a2
refactor: move files around
lmiller1990 da6c14d
refactor: update imports
lmiller1990 1da7661
chore: remove examples
lmiller1990 64d4150
chore: lint
lmiller1990 655470f
chore: lint
lmiller1990 454983c
test: improve coverage of search specs
lmiller1990 13ffdb0
fix: styling and unwanted deps
JessicaSachs 28ec7f9
test: add spec for selecting spec to run
lmiller1990 e598532
chore: do not use css vars
lmiller1990 def25e4
chore: remove only
lmiller1990 d2c78b1
yarn lock whoops
JessicaSachs 5eaeb33
chore: merge in develop
lmiller1990 e89da7a
chore: merge in develop and resolve conflicts
lmiller1990 be688e7
chore: remove old index.js
lmiller1990 6d3f975
merge commit
JessicaSachs d4a888d
fix viewport styling
JessicaSachs c99a703
fix align for specs list container grid when there aren't enough spec…
JessicaSachs 286b033
fix(component-testing): remove default export (#14812)
lmiller1990 c39d84b
chore: add correct icon for expanding directories
lmiller1990 13941fc
Merge pull request #14759 from cypress-io/feat/viewport-restyling
lmiller1990 cb9127e
fix: add back in download handling to automation
lmiller1990 3eb6f14
tests: add basic e2e tests for webpack-dev-server
lmiller1990 60158a2
chore: add webpack-dev-server to circle
lmiller1990 5595fed
chore: add comprehensive error message if dev-server is not registered
dmtrKovalenko 23b8a6b
chore: fix linting in cy studio
elevatebart b5f021d
fix: spec tsx types and lint
elevatebart af0a9fd
make it a cleaner mount fix
elevatebart e8e8562
various fixes
elevatebart 0842a42
Merge pull request #14820 from cypress-io/chore/error-if-plugins-not-…
lmiller1990 d51f897
chore: add webpack-dev-server to circle
lmiller1990 cdc76d3
make eslint plugin validate typescript & tsx
elevatebart c4b4e23
Merge pull request #14828 from cypress-io/chore/evergreen-lit-fix
lmiller1990 7cad4b0
Merge branch 'feat/component-testing' into add-tests-webpack-dev-server
lmiller1990 8d3c985
fix: destructure port from dev server resolved options
lmiller1990 81b9ad3
Merge pull request #14815 from cypress-io/add-tests-webpack-dev-server
lmiller1990 acb8b38
fix: fix server unit tests
lmiller1990 b0f324b
Merge branch 'feat/component-testing' of github.com:cypress-io/cypres…
lmiller1990 df2586d
Merge branch 'develop' into feat/component-testing
lmiller1990 4194523
fix start server event typings
elevatebart 096afaa
align typings
elevatebart f20ab91
remove extraneous column
elevatebart 79ec906
Use the types in vue/react examples
elevatebart 5b94d57
type http server
elevatebart c1644b0
update dependencies on node types
elevatebart 6dfaa23
Merge pull request #14855 from cypress-io/feat/evergreen-typings
3ccbb91
remove eslint plugin no-only-tests
kuceb b76b8d6
add binary build to branch
kuceb cbcf0d4
use webpack for packages/extension build, small fixes
kuceb b67831b
Merge remote-tracking branch 'origin/develop' into feat/component-tes…
JessicaSachs d84e4e3
chore: update yarn.lock
lmiller1990 6d4cfdf
Revert "use webpack for packages/extension build, small fixes"
JessicaSachs eabd354
updating package-lock
JessicaSachs 8e9261e
Merge branch 'develop' into feat/component-testing
JessicaSachs 8250779
Merge remote-tracking branch 'origin/develop' into feat/component-tes…
JessicaSachs 5ef3d13
syntax error
JessicaSachs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
consolidate createRoutes
- chore/fix-ct-react
- (#14479)
- ct-257-tr-review-feedback
- (#14479)
- ct-quick-setup
- (#14479)
- ct-tr-review-feedback
- (#14479)
- ct/fix-npm-vue
- (#14479)
- cy-draw
- (#14479)
- feat/bem/component-testing
- (#14479)
- feat/component-testing-shortcuts
- (#14479)
- feat/ct-spec-list
- (#14479)
- feature/specs-list-resize
- (#14479)
- fix/evergreen-socket-hangup
- (#14479)
- fix/runner-ts-cy-commands
- (#14479)
- jess/merge-feat-component-test
- (#14479)
- lachlan/component-testing
- (#14479)
- lachlan/component-testing-2
- (#14479)
- lachlan/component-testing-dcda797
- (#14479)
- lachlan/component-testing-web-socket
- (#14479)
- lachlan/ct-hacker-news
- (#14479)
- lachlan/ct-setup-testing
- (#14479)
- lachlan/dump
- (#14479)
- merge-develop-2
- (#14479)
- revert-to-previous-commit
- (#14479)
- spike/ts-fixes-evergreen-automation-apis
- (#14479)
commit 5e26100864be408a4ece41f1c31bc346869232ba
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#open
and#createServer
need deduplicating