Commit Graph

5 Commits

Author SHA1 Message Date
Lachlan Miller
f49ad641e6 chore: delete unsed code in runner, runner-shared, runner-ct (#20663)
* chore: delete a lot of old code

* remove unused code

* update test

* remove dep on cypress_runner for non proxied page

* change binary

* revert scss changes

* delete a lot of code

* update sass

* update jsx

* styles

* revert change

* dont destructure from window.mobx anymore

* update readmes

* revert change to mobx store

* Update packages/runner-shared/README.md

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* remove old code

* remove html webpack and copy webpack plugins from runner

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-25 10:24:05 +10:00
Lachlan Miller
816dac8a95 refactor: inject websocket to event manager (#19396)
* update

* inject web socket

* yarn lock

* fix types

* update test code
2021-12-17 03:25:47 +10:00
Lachlan Miller
69d316e428 feat(app): decouple event manager from driver (#18695)
* change event manager to be a class

* update method

* attach event manager to window for cypress-in-cypress

* fix CT tests

* do not use fake event manager anymore

* remove cypress import from event manager

* pass in cypress as arg

* move regenerator runtime

* move async runtime

* include regenerator-runtime in runner unit tests

* fix unit tests

* inject studio

* attach event manager to window for unified app

* move event manager to app

* move event manager entirely to app, delete runner-shared copy

* improve tests

* add missing arg

* types

* remove unused optimization
2021-11-03 11:28:51 +10:00
Tim Griesser
d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Lachlan Miller
929cac807a chore(runner,runner-ct): reduce duplication with packages/runner-shared (#16866)
* move snapshot-controls to shared package

* share visit-failure component

* share blank-contents

* share message component

* move message styling to shared

* stub scss in unit tests

* remove whitespace

* make dup files match

* share selector playground

* share script error

* share automation-disconnected

* remove old file

* share no-automation

* share error messages

* share errors

* make iframe model files similar

* share iframe-model

* share selector playground

* share style

* share highlight in selector playground

* share dom file

* update import

* share aut-iframe

* wip: shared event manager

* remove CT event manager

* move studio to shared runner package

* fix tests

* use shared event manager in CT runner

* comment back in code

* rename viewporth width/height to width/height

* fix ts errors

* share viewport info

* share header

* revert changed test

* remove old code

* fix tests and move test to shared package

* move tests to shared package

* make container files similar

* share container in runner

* share container

* move test

* move spec

* update tsconfig]

* update headeR

* fix styling

* style

* refactor

* refactor

* reduce public modules

* Update packages/runner-shared/src/event-manager.js

Co-authored-by: Zach Bloomquist <github@chary.us>

* fix percy regression

* fix regression in style

* improve types, try reverting style

* add runner-shared tests to pipeline

Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-06-16 10:22:09 +10:00