Commit Graph

18667 Commits

Author SHA1 Message Date
Lachlan Miller
23d52af3a2 chore: update eventemitter2 and vite deps (#23740) 2022-09-09 08:14:41 -05:00
Emily Rohrbough
e32e3638df fix: suite-level-only configuration does not throw when config is restored (#23646) 2022-09-08 21:19:04 -05:00
Emily Rohrbough
0f00d4ca60 perf: remove stale runnables obj (#23737) 2022-09-08 17:19:13 -05:00
Mike Plummer
9abbbe61af feat: Banner Analytics (#23691)
Co-authored-by: astone123 <adams@cypress.io>
2022-09-08 16:37:09 -05:00
Emily Rohrbough
8552e505ea perf: only collect logs when reporter should show logs (#23729) 2022-09-08 15:12:13 -05:00
Blue F
28b68af003 fix: Prevent assertion text from osscilating when it has a trailing space (#23727) 2022-09-08 10:04:08 -07:00
Bill Glesias
9cdb33b4c6 fix: same site cookie context and duplicate cookies (#23438)
* test: refactor and add tests in the cors package

* fix: add areUrlsSameSite method to cookies package and fix
sameSiteContext calculation method and add tests

* fix: always use Set-Cookie optimistically whether or not we keep track of the cookie or not in the server side cookie jar

* chore: add failing unit tests for postpending cookies

* chore: add tough cookie integration tests to verify we append cookies appropriately to request header Cookie

* fix: do not duplicate cookies in request if existing in the cookie jar. Add additional tests to verify expected behavior

* test: add cookie behavior tests that document current expected behavior vs what spec behavior should/will be

* test: add misc tests that check for cookie order

* chore: update debug logs in request to discern cookies

* test: fix assertions in firefox as same-site cookies are actually set correctly

* fix test incorrect assertions. cookies currently exist in primary that are same-site regardless of browser

* skip SameSite=none test in firefox as we currently low insecure samesite none cookies in firefox

* chore: apply suggestions from code review

* chore: change expects to expect

* chore: add documentation for why we need an additional HTTPS port

* remove X-Set-Cookie fixmes
2022-09-07 23:19:52 -04:00
Lachlan Miller
1aa979341a chore: fix test and types in server (#23693)
* update types

* fix test
2022-09-08 12:32:53 +10:00
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