Commit Graph

18637 Commits

Author SHA1 Message Date
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
Blue F
7b5e74cd5a chore: fix for regression from last refactor (#23520) 2022-08-24 08:45:01 -07:00
Jordan
32c32465c2 Merge branch 'develop' into jordanpowell/custom-project-config 2022-08-24 10:19:31 -04:00
Jordan
5db08bc6ac chore: rename types, add comments 2022-08-23 20:03:33 -04:00
Jaime Pericas
7d71ffe25d Merge pull request #23445 from cypress-io/784-adds-github-retry-number
fix: adds GITHUB_RUN_ATTEMPT counter for tracking retries in the Cypress Cloud
2022-08-23 14:01:47 -07:00
Jordan
a07a2a118d fix(webpack-dev-server): add custom project config to handler 2022-08-23 10:18:38 -04:00
Jaime Pericas
4386cc1714 Merge branch 'develop' into 784-adds-github-retry-number 2022-08-22 21:22:12 -07:00
Blue F
9ba3ed3b5a chore: Refactor assertion logging (#23354)
* chore: Refactor assertion logging

* Remove duplicate snapshot on command failure; Prevent circular json error when inspecting commands

* Fix for 'next' attribute in logs

* Add comments about logging and assertions

* Fix duplicate logs on not.exist assertions

* Move command-merging logic into asserting.ts

* Fix TS error

* Fix race condition with cross-origin tests

* Review updates
2022-08-22 10:56:27 -07:00
Rachel
ab23d7797b chore: skip or fix flaky tests II (#23386)
* fix leftover percy network-idle-timeout

* Skip another instance of 23153

* fix 23147

* Revert fix 23147

* try percy upgrade again

* Update yarn.lock

* skip 23404

* bring in emilys override version change for percy ui

* skip 23406

* skip 23407

* downgrade percy to 1.2.0

* fix percy diff

* fix percy diff

* update comment

* restore lock file

* Update yarn.lock

* Update yarn.lock

* percy fixes

* possible fix

* fix verison flake??

* Revert "fix percy diff"

This reverts commit e4c4e2e990.

* Revert "Revert "fix percy diff""

This reverts commit 94284e4694.

* Remove version assertion

* Trigger Build

* ignore spec duration in percy snapshots

* use .each to preserve order of execution

* add comment

* fix comment

* try new logic for header wait

* Revert "try new logic for header wait"

This reverts commit bfed31edce.

* add timeout to choose a browser

* Trigger Build

* try without promise.all; revert timeout to choose a browser tests

* ignore spec-duration in percy in runner

* clean up .thens

* clean up diffs

* move around .thens

* wait for tooltip to take snapshot, skip flakers

* try hiding spec duration

* Revert: try hiding spec duration

* Bring back duration mock

* Add another duration mock

* try cy.contains with tooltip, comment out removeGlobalStyles

* skip 23417

* skip choose a browser failures

* skip 23419

* skip 23414

* bring back // removeGlobalStyles()

* skip 23422

* skip 23423

* skip 23424

* set version to empty string to make percy happy

* Remove duration mock

* Do not display top-nav-cypress-version-current-link, skip 23433?

* skip 23434, clean up diffs

* clean up diffs, skip percy flake

* skip 23434

* skip 23437

* fix 23156

* fix 23250 and similar

* fix 23157

* skip more percies

* skip 23443

* skip more tooltip snapshots

* Update net_stubbing.cy.ts

* Update cookies.cy.js

* Update e2e_cookies.cy.js

* add missing github issue

* Update circle.yml

* Skip all of network stubbing

* Skip 23158

* Skip 23448

* remove unnecessary async, add skip for 23444

* more skips for 23444

* skip 23451

* More skips 23436

* More skips 23444

* skip 23455

* more skips 23444

* skip 23457

* more skips 23444

* mroe skip 23455

* Trigger Build

* skip set cookie 23444

* skip 21300

* skip 23417

* Trigger Build

* potential fix for 23308

* skip 23472

* skip snapshot

* skip 23474

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* skip more 23245

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* skip 23480,23481

* skip 23307

* Trigger Build

* addtl skip 23481

* skip 23484

* try cy.origin stability fix on nav commands issue

* Revert: try cy.origin stability fix on nav commands issue

* skip more 23452

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* skip 23493

* Trigger Build
2022-08-22 10:50:12 -07:00
Ryan Manuel
a9456887e4 fix: app crashing on websocket upgrade request over https (#23449) 2022-08-19 15:18:56 -05:00
Zach Bloomquist
6e18996d02 chore: skip Circle env canary check unless in Docker (#23467) 2022-08-19 17:40:27 +00:00
Rachel
97551d7920 Revert "skip set cookie 23444"
This reverts commit 98cbac1be7.
2022-08-19 09:10:41 -07:00
Rachel
98cbac1be7 skip set cookie 23444 2022-08-19 09:10:22 -07:00
GitStart
287aeba860 fix: missing fallback generic browser icon in some places (#23031)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-08-19 10:09:49 -04:00
Jaime Pericas
1eab9b038a Merge branch 'develop' into 784-adds-github-retry-number 2022-08-18 16:58:41 -07:00
Jaime Pericas
47d86556bd fix: adds GITHUB_RUN_ATTEMPT counter for tracking retries 2022-08-18 15:34:56 -07:00
Matt Schile
31527ff8c9 chore: update add_to_triage_project github token (#23440) 2022-08-18 15:37:05 -06:00
Zach Bloomquist
272438977e chore(webkit): fix WebKit network-related driver tests (#23232)
Co-authored-by: Blue F <blue@cypress.io>
2022-08-18 16:43:05 +00:00
Adam Stone
03182625cf feat: Enable create from Vue component for projects with custom spec patterns (#23298) 2022-08-18 11:00:29 -04:00
Matt Schile
3099f2f0e2 chore: create add_to_triage_project workflow 2022-08-18 08:36:56 -06:00
Matt Schile
6b5f2756d8 Merge branch 'develop' into add_to_triage_project_workflow 2022-08-17 12:04:21 -06:00
Kukhyeon Heo
a27affe447 chore: refactor server/lib/config.ts to pkg/config (#22530)
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
2022-08-17 10:54:02 -07:00
Matt Schile
95f4e22670 updating name 2022-08-17 10:51:26 -06:00