Commit Graph

18659 Commits

Author SHA1 Message Date
Emily Rohrbough 38412925ba fix: correct dashboard result when successful spec run and videoUploadOnPasses=false (#23660) 2022-09-07 19:42:34 -05:00
Lachlan Miller 35fe5b4e24 chore: fix types for modifyObstructiveCode (#23694)
* chore: fix types for modifyObstructiveCode

* add test
2022-09-07 14:23:00 -04:00
Lachlan Miller b6dad0a674 fix: support type: module in Node.js 16.17.0+ and 18.6.0+ (#23637)
* chore: bump ts-node version

* debugging

* update tests with docker images and docker script

* Update system-tests/scripts/bootstrap-docker-container.sh

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

* use chown

* Update system-tests/scripts/bootstrap-docker-container.sh

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

* Update bootstrap-docker-container.sh

* Update bootstrap-docker-container.sh

Co-authored-by: Zach Bloomquist <git@chary.us>
2022-09-07 10:21:02 +10:00
Zach Bloomquist b5ba6d7b87 chore(webkit): add before:browser:launch and download support (#23662) 2022-09-06 18:19:42 +00:00
Zach Bloomquist dc9e9dc62c chore(webkit): add video recording (#23579) 2022-09-06 17:12:13 +00:00
Mike Plummer a51e340577 fix: Refetch latest cloud data when opening cloud connect modals (#23650) 2022-09-06 09:57:00 -05:00
amehta265 1f2b3eb189 chore: valid config files should be collapsed during onboarding (#23659)
* default config files collapsible closed except for warnings

* updated component tests and color accessibility

* addressing PR comments for standardizing tests with .should

* updated tests and made them more robust
2022-09-06 09:11:00 +10:00
Emily Rohrbough 4e0e1cb85b chore: remove skipped test - covered elsewhere (#23675) 2022-09-02 17:50:49 -05:00
Lachlan Miller 2059ec5629 chore: fixing flaky tests (#23667)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-09-02 09:44:24 -07:00
Matt Schile 06beffdfe8 chore: handle "Close with comment" (#23668) 2022-09-02 08:37:00 -06:00
Jon Hieb 8b8f20eec7 fix: cypress/react18 rerender (#23360)
Co-authored-by: astone123 <adams@cypress.io>
2022-09-02 08:40:23 -04:00
Blue F 8e4ebef0e0 fix: Aliases properly retry commands from inside custom commands (#23663) 2022-09-01 14:48:26 -07:00
Matt Schile a6067a718c chore: add app triage project github actions (#23613) 2022-09-01 13:29:08 -06:00
Emily Rohrbough b44cb58891 chore: fix paths for windows (#23649)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-01 14:14:02 -05:00
Mike Plummer 4569b0c18f chore: Update release process doc 2022-09-01 09:39:23 -05:00
Adam Stone 33f6f8c493 chore: Default dev mode to production cloud rather than staging (#23554)
* chore: Default to production cloud rather than staging

* Revert changes to package cypress configs

* Revert changes to frontend-shared config
2022-09-01 12:05:55 +10:00
Mike Plummer a1849c2da0 chore: Update release process doc 2022-08-31 17:27:34 -05:00
Zach Bloomquist bcd7548d74 refactor: move more of video capture into browser automations (#23587) 2022-08-31 18:55:28 +00:00
Emily Rohrbough c8b1b30323 fix: run "before:spec" plugin event when experimentalInteractiveRunEvents is enabled (#23634)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
2022-08-31 13:40:11 -05:00
Tyler Biethman 212a055bb7 chore(webkit): working around WebKit bug by patching Error (#23588)
* chore(webkit): re-enable more driver tests

* Revert "chore(webkit): re-enable more driver tests"

This reverts commit c0b14ace57.

* chore(webkit): working around WebKit bug by patching Error

* Better comment

* Address PR feedback

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-31 09:48:21 -05:00
cypresschris 72007755a5 chore: SEC-228 | Adding security scans (#23376)
* SEC-228 | Adding security scans

* Update .github/workflows/static_analysis.yaml

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

* Update .github/workflows/sca_scan.yaml

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

* SEC-228 | Changes to display scan findings in PR

* Update .github/workflows/sca_scan.yaml

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update .github/workflows/sca_scan.yaml

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* SEC-228 | Update to fix secret not passing to fork

* SEC-228 | renamed files, updt checkout vers

* SEC-228 | removed old versions

* Update .github/workflows/snyk_static_analysis_scan.yaml

Suggested change

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update .github/workflows/snyk_sca_scan.yaml

Suggested change

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update .github/workflows/snyk_sca_scan.yaml

Suggested change

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update .github/workflows/snyk_static_analysis_scan.yaml

Suggested change

Co-authored-by: Bill Glesias <bglesias@gmail.com>

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2022-08-31 08:52:19 -05:00
Zachary Williams b615e8ac30 fix: don't show deps warning for projects that don't require bundler (#23598) 2022-08-30 15:43:01 -05:00
Mike Plummer 95b6849a5f chore: bumping version to 10.7.0 (#23625) v10.7.0 @cypress/vue2-v1.1.0 @cypress/vue-v4.2.0 @cypress/react-v6.2.0 @cypress/webpack-dev-server-v2.3.0 @cypress/react18-v1.1.0 @cypress/mount-utils-v2.1.0 2022-08-30 13:07:59 -05:00
Mike Plummer b5e6fd67a9 Merge branch 'master' into develop 2022-08-30 09:25:23 -05:00
Stokes Player 7f2522f857 feat: show cloud connect options when hoving spec list fields (#23584)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-08-29 21:10:53 -04:00
Lachlan Miller 72b8a65e78 feat: Cypress Studio for Cypress 10 (#23544)
* chore: wire up Cypress Studio  (#23413)

* wip

* wip

* wip - spike

* more wip [skip ci]

* update style

* fix ts

* move types around

* extract types

* lint

* fixing tests

* fix component test

* skip some tests

* do not error on experimentalStudio flag

* add studio controls placeholder

* fixing tests

* revert

* revert changes

* rename store

* rename method

* remove comment

* refactor

* correctly feature flag studio

* simplify code

* simplify code

* lift check into useEventManager

* correctly hide create studio prompt based on flag;

* remove superfulous css

* rename variables

* fix bugs

* wip

* unskip tests

* unskip more tests

* fix a bug in the assertion API

* fix bug in assertions [skip ci]

* wip - bugs [skip ci]

* feat: add experimentalStudio flag back (#23506)

Co-authored-by: astone123 <adams@cypress.io>

* chore: Add Studio UI to Cypress 10 (#23537)

* wip

* wip

* wip - spike

* more wip [skip ci]

* update style

* fix ts

* move types around

* extract types

* lint

* fixing tests

* fix component test

* skip some tests

* do not error on experimentalStudio flag

* add studio controls placeholder

* fixing tests

* revert

* revert changes

* rename store

* rename method

* remove comment

* refactor

* correctly feature flag studio

* chore: wip add barebones studio modals

* simplify code

* simplify code

* lift check into useEventManager

* correctly hide create studio prompt based on flag;

* remove superfulous css

* chore: style studio toolbar

* chore: misc feedback

* chore: remove studio store prop

* chore: studio URL prompt and other changes

* update component

* chore: UI styling and remove studio init modal

* chore: revert unnecessary changes

* chore: fix types

* chore: fix some tests, minor refactor (#23545)

* fix test

* fix test

* add noHelp link to StandardModal

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* test: studio e2e tests (#23546)

* add basic e2e test

* add some e2e tests for studio and a note on limitations

* additional spec

* add more tests, refactor helper

* fix bug in studio

* remove test code

* chore: UI feedback

* fix race condition

* update tests

* rename test

* improve types in reporter

* remove dead code

* improve tests

* merge tests into one spec

* chore: Cap instruction modal width; exit studio mode when new spec is chosen

* chore: Only render studio error when test has failed; add test for studioEnabled

* correctly check if command is studio or not

* improve specs and hopefully reduce flake

* communicate studio state from app->reporter

* receive studio save state validity from app

* fix test

* improve test coverage

* fix external link

Co-authored-by: astone123 <adams@cypress.io>
2022-08-30 07:45:06 +10:00
amehta265 6a614c312e fix: Issue 23486 (#23595) 2022-08-29 17:04:13 -04:00
Zach Bloomquist 3c2fea216b chore(server): convert remaining browsers code to typescript (#23556) 2022-08-29 19:47:05 +00:00
Zach Bloomquist 4871ebc333 refactor: move console logging out of run.ts (#23555) 2022-08-29 19:05:58 +00:00
Zachary Williams 2f337dbfa2 fix: angular 14.2 mount compilation error (#23593) 2022-08-29 13:40:43 -05:00
Tyler Biethman bc9edb4452 fix: filtering with --spec option for projects in Docker container root (#23535)
* fix: updating globbing patterns to work when mounted to the root directory

* Adding unit tests for globby calls

* Updating a few tests. Reordering for cleaner diff.

* Refactoring after develop merge

* Persist binary for validation

* Using arch-specific path sep
2022-08-29 13:38:13 -05:00
Emily Rohrbough 2324d703c2 chore(server): remove redundant supportFile check (#23543)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-08-29 10:21:58 -05:00
Emily Rohrbough b08bc270e9 chore: remove dead code -- lives in data-context/src/sources/HtmlDataSource.ts now (#23542) 2022-08-29 12:15:05 +10:00
Zachary Williams f6eaad40e1 feat: adding svelte component testing support (#23553)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
@cypress/svelte-v1.0.0
2022-08-26 12:36:05 -05:00
Zachary Williams 8d2702f9bd chore: remove react parallelism (#23570) 2022-08-26 12:35:27 -05:00
Emily Rohrbough 9ba71c6093 perf(cy.session): keep page state after validation runs (#23503) 2022-08-26 12:22:50 -05:00
Zach Bloomquist e80e7781db chore(percy): add percy context to finalize job (#23558) 2022-08-25 23:17:33 +00:00
Jordan a9d9711407 Merge pull request #23494 from cypress-io/jordanpowell/custom-project-config
fix(webpack-dev-server): add custom project config to handler
2022-08-25 16:45:09 -04:00
Jordan a49a403ce7 Merge branch 'develop' into jordanpowell/custom-project-config 2022-08-25 16:22:51 -04:00
Adam Murray 99562af65a feat(cypress/schematic): add support for component testing (#23385)
Co-authored-by: Jordan <jordan@jpdesigning.com>
2022-08-25 15:22:25 -05:00
Jordan f5e1238923 Merge branch 'develop' into jordanpowell/custom-project-config 2022-08-25 15:51:51 -04:00
Jordan 32221ff43a chore(webpack-dev-server): update error message 2022-08-25 15:10:12 -04:00
Zach Bloomquist bd0d38f352 chore(server): convert modes/run to typescript (#23536)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-25 17:20:53 +00:00
Jordan 133d6aa1c4 chore: make projectConfig required prop 2022-08-25 11:49:09 -04:00
Jordan 305b38eba0 Update npm/webpack-dev-server/src/helpers/angularHandler.ts
remove optional chaining on buildOptions

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-25 10:55:10 -04:00
Tyler Biethman 2fcecbf43e chore(webkit): driver updates for clicking/typing actions and related tests (#23522)
* detect playwright-webkit browser

* fix: use stdio for CDP instead of TCP (#14348)

* wip: begin launchin webkit

* run mode works w webkit in 10.0

* reset previous cdp changes

* run driver webkit tests

* always detect webkit in non-prod

* fix version detection

* actually run new job

* cleanup

* fix run

* try caching pw binary

* npx install pw binary

* install-deps

* add experimentalSessionAndOrigin wk tests

* wk experimentalSessionAndOrigin tests

* browser icon

* fix some tests

* reset browsers.ts change

* fix more tests

* fix even more tests, skip driver CI for now

* comma

* fix server-unit-test

* fix websockets_spec

* refactor wkautomation to initialize self from static async method

* fix(proxy/prerequests): fix duplicate key behavior, fallthrough

* Apply suggestions from code review

Co-authored-by: Blue F <blue@cypress.io>

* simpler name for StackMap

* fix proxy-logging spec, some xhr specs

* fix last xhr test

* update testConfigOverrides

* skip webcam.cy.js

* reenable driver tests

* ci?

* Suggestions from code review

* skip remaining failures which won't be fixed here

* fix/skip a couple tests

* fix tests

* skip crashy specs

* skip hidden suites

* Scoping down range of skipped type tests

* Scoping down click test skips

* Updating webkit contenteditable selection handling and associated test

* Adding additional mouse event filtering when disabled. Validated by opening playwright-webkit outside of cypress and validating logged events when enabled/disabled.

* Updating click 'mouseout coords' tests to account for default style changes

* Updating a few more click 'mouse state' tests

* Getting all click tests passing with no webkit skips. Fixing _most_ type tests, selection focus is troublesome.

* Updating cross-origin type action test

* Tweaking coords for CI rendering

* Adding workaround for webkit default input selection.

* Webkit -> WebKit

* Adding logic and test for handling capture-phase focus event selections

* Type errors tests now passing

* Adding a couple more WebKit keyboard/mouse tweaks

* Couple more tweaks for special_chars tests.

* Updating contenteditable beforeinput event tests

* Making WebKit checks more consistent

* Don't expose webkit in public types

* Adding comments and doing a little cleanup

* PR updates

* Simplifying workaround for webkit focus selection

* Removing unnecessary test

* Revert "Removing unnecessary test"

This reverts commit 2c522935ec.

* Revert "Simplifying workaround for webkit focus selection"

This reverts commit 47d1155219.

* Removing comment that is no longer applicable

* Simplifying selection logic that is now functional for all supported browsers

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Blue F <blue@cypress.io>
2022-08-25 09:22:47 -05:00
Zachary Williams 7ddcc96388 chore: update typescript (#23523)
* chore: update typescript

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-25 09:31:02 +10:00
Zachary Williams 9e94f561c0 fix tests and types 2022-08-24 17:33:58 -05:00
Emil Goldsmith Olesen f743a45930 feat: Expose setSystemTime on clock object (#23329)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-24 14:50:08 -05:00
Kozlov Sergey f88536b7ad fix: prevent deliver global Nullable type (#23439) 2022-08-24 11:15:51 -05:00