Commit Graph

6171 Commits

Author SHA1 Message Date
Chris Breiding
f5815b776f fix: Handle large payloads sent with privileged commands (#27122) 2023-06-23 15:32:52 -04:00
Chris Breiding
89f0fb6465 chore: internal refactor of privileged commands (#27060) 2023-06-16 10:45:53 -04:00
Stokes Player
9cb7e1f915 feat: Cypress Cloud data on Specs page and Runs page use local Git data if available (#26991) 2023-06-15 20:02:17 -04:00
Preston Goforth
71c5b864ea feat: Selective CSP header stripping from HTTPResponse (#26483)
* feat: Selective CSP header directive stripping from HTTPResponse
- uses `stripCspDirectives` config option

* feat: Selective CSP header directive permission from HTTPResponse
- uses `experimentalCspAllowList` config option

* Address Review Comments:
- Add i18n for `experimentalCspAllowList`
- Remove PR link in changelog
- Fix docs link in changelog
- Remove extra typedef additions
- Update validation error message and snapshot
- Fix middleware negated conditional

* chore: refactor driver test into system tests to get better test
coverage on experimentalCspAllowList options

* Address Review Comments:
- Remove legacyOption for `experimentalCspAllowList`
- Update App desc for `experimentalCspAllowList` to include "Content-Security-Policy-Report-Only"
- Modify CHANGELOG wording
- Specify “never” overrideLevel
- Remove unused validator (+2 squashed commits)
- Add "Addresses" note in CHANGELOG to satisfy automation
- Set `canUpdateDuringTestTime` to `false` to prevent confusion

* chore: Add `frame-src` and `child-src` to conditional CSP directives

* chore: Rename `isSubsetOf` to `isArrayIncludingAny`

* chore: fix CLI linting types

* chore: fix server unit tests

* chore: fix system tests within firefox and webkit

* chore: add form-action test

* chore: update system test snapshots

* chore: skip tests in webkit due to form-action flakiness

* chore: Move 'sandbox' and 'navigate-to' into `unsupportedCSPDirectives`
- Add additional system tests
- Update snapshots and unit test

* chore: update system test snapshots

* chore: fix system tests

* chore: do not run csp tests within firefox or webkit due to flake issues in CI

* chore: attempt to increase intercept delay to avoid race condition

* chore: update new snapshots with video defaults work

* chore: update changelog

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-06-14 14:54:52 -05:00
Lachlan Miller
fb08c6e955 chore: fix windows regression (#27025) 2023-06-14 08:55:06 -04:00
Jordan
3fc17c25ac chore(data-context): update runSpec mutation to support absolute spec path (#26973)
* fix(data-context): update runSpec mutation to support absolute spec path

* test(app): add currentProject to failin e2e runSpec test

* chore(data-context): use path.relative

* chore(graphql): update runSpec specPath description
2023-06-13 16:38:41 +10:00
Lachlan Miller
be12245636 chore: fix windows CI regressions (#27001)
* chore: fix flaky windows tests

* add windows to CI

* try windows again
2023-06-12 12:10:17 -04:00
Jennifer Shehane
d2ca58a65f dependency: remove cypress/mocha-teamcity-reporter (#26938) 2023-06-09 16:26:34 -04:00
Matt Henkes
5b27edd6f2 feat: chrome headless new (#26481)
* use headless new

* build more things

* test fixes

* flex based on version

* tests

* update changelog

* 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>
2023-06-09 10:48:33 -05:00
Bill Glesias
6b7683e483 feat: allow users to pass true to videoCompression config and only a… (#26810)
* chore: allow users to pass true to videoCompression config and only allow valudes 1-51 inclusively to be passed in

* run ci

* chore: allow zero to be option for CRF as we will coerve it to false and skip compression to have a lossless video, which has the same effect

* Update cli/CHANGELOG.md

* chore: update videoCompression types

* chore: update changelog

* Update cli/CHANGELOG.md

* Update cli/types/cypress.d.ts

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

* Update packages/config/src/validation.ts

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

* chore: update config snapshots

* Update packages/config/test/validation.spec.ts

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

* chore: add system test on videoCompression=true coersion

* chore: document 0 as being false and not a valid CRF option for cypress video compression and make CRF valid values 1-51

* chore: fix types

* chore: fix types

* chore: fix change to log as feature and not bugfix

* chore: fix server side unit tests

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-06-08 15:56:12 -04:00
Bill Glesias
0be33b9528 fix: log video path if exists, regardless of compression (#26813)
* chore: print the video path whether or not compression is on or fails

* chore: fix video replacement regex

* chore: add bugfix entry
2023-06-08 13:33:06 -04:00
Adam Stone-Lord
8d2027ae1c chore: stabilize side navigation bar during loading and switching testing types (#26953) 2023-06-08 10:55:04 -04:00
Jordan
2263bc5118 chore: remove low value percy snapshots (#26934)
* chore: remove low value percy snapshots

* chore: remove more low value percy snapshots [run ci]

* chore: remove more low value percy snapshots

* remove additional snapshots

* reduce snapshots

* fix types

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-06-08 08:56:07 +10:00
Adam Stone-Lord
ee72148e35 chore: fix base error styling (#26954) 2023-06-07 16:49:20 -04:00
renovate[bot]
ef16792953 chore(deps): update dependency @antfu/utils to ^0.7.0 [security] (#26923) 2023-06-07 12:05:08 -06:00
Mike Plummer
25582dd857 feat: Implement testing type switch promos (#26894)
* feat: Implement testing type switch promos

* Add tests, changelog entry

* Add tests

* Fix button styling

* Styling fixes, add framework links

* Add missing testId

* run ci

* Fix spec

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* Fix styling issues

* Resolve code review findings

* Fix issue with yarn.lock
* Fix extra padding at bottom of promo
* Add tests for utm params
* Add test for switching testing type when both configured
* Fix changelog version

* Address review comments

* Widen promo when no image defined
* Prevent flash of promo before query resolves
* Reduce top margin

* reduce size of text box to match latest figma

* update button style to match figma

* increase width at which we collapse sidenav

* add short versions of the headings

* remove skeletons from header

* avoid extra height

* adjustments for column alignment

* fix flaky test

* update tests for responsive text changes

* update changelog

* restore spacing between header items

* avoid occasional flash of promo on page load

* update text handling

* fix types and tests

* Update packages/app/src/specs/SpecsList.vue

Co-authored-by: Stokes Player <stokes@cypress.io>

* updated final e2e bullet

* fix question mark icon flashing

* text formatting

* remove superfluous snapshot [skip ci]

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: marktnoonan <mark@cypress.io>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-06-06 12:02:06 +10:00
Jordan
084f05482c fix: update angular dep min versions (#26908)
* fix: update angular dep min versions

* chore: update CHANGELOG

* chore: add line break to changelog

* chore: update changelog pending release date

* chore: remove whitespace
2023-06-05 15:58:57 -04:00
Emily Rohrbough
4d5f903eaf chore: replace fast-glob with globby; remove unneeded getenv dep (#26730) 2023-06-05 13:33:09 -05:00
Jordan
d77341e90c chore: make git message warnings remain dismissable (#26812)
* feat: make git message warnings remain dismissable

* chore: update CHANGELOG

* chore: update CHANGELOG

* chore: remove unneeded code

* chore: update BannerId types

* chore: fix queryies

* chore: clean up PR

* chore: move TrackedWarning to frontend-shared

* chore: update import

* ref: move TrackedWarning to TrackedBanner

* chore: udpate CHANGELOG

* fix: update TrackedBanner to parse markdown message

* chore: set TrackedBanner default message prop

* chore: update RunsContainer

* chore: add missing tests and update alert type

---------

Co-authored-by: Stokes Player <stokes@cypress.io>
2023-06-05 13:40:10 -04:00
Dave Kasper
9c4d5f7db6 chore: add browser state action for debug (#26884)
* chore: add browser state action for debug (#26763)

* Address PR comments
- remove unneeded async and test context
- genericize openProject function

* Revert route change, update spec description
2023-06-02 14:40:12 -05:00
renovate[bot]
770d262acf chore(deps): update dependency firefox-profile to v4.3.2 🌟 (#26912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2023-06-01 17:31:09 -04:00
renovate[bot]
f3f8f8cd07 chore(deps): update dependency find-process to v1.4.7 🌟 (#26906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2023-06-01 15:28:54 -04:00
Matt Henkes
3d1ec09626 chore: add telemetry realworld app (#26896)
* chore: capture telemetry for realworld app maybe

* idk what i was doing

* setup record key and telemetry

* testing

* override project id

* some times we just need a little context.

* Adding tests

* Adding comment
2023-06-01 11:35:55 -05:00
Adam Stone-Lord
bafabf9c0f chore: fix minor background color styling in debug results component (#26887) 2023-05-31 17:56:06 -04:00
Stokes Player
850973e709 test: fix 2 broken tests for Windows (#26854) 2023-05-25 13:27:17 -04:00
Adam Stone-Lord
b1f699a0a7 chore: add GraphQL mutation for sending system notifications via Electron (#26773) 2023-05-24 12:10:42 -04:00
Mike Plummer
58b9ccc0a8 chore: Implement runSpec mutation (#26782) 2023-05-24 07:32:49 -05:00
Dave Kasper
e821f85462 fix: Correct typescript scaffold dependency (#26815)
* fix: correct typescript scaffold dependency (#26204)

* add changelog

* Update change log for PR comment

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

---------

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2023-05-22 16:09:35 -05:00
Adam Stone-Lord
6df7a709c3 chore: capture versions of relevant dependencies with x-dependencies header (#26814) 2023-05-22 15:59:27 -04:00
Bill Glesias
f5246708cc chore: rename upload results to upload screenshots & videos (#26811)
* chore: rename upload results to upload screenshots & videos

* run ci
2023-05-22 12:38:05 -04:00
Bill Glesias
eef8cd225a chore: rename video processing events to capture/compress (#26800)
* chore: change processing nomenclature to compressing when printing the run.

* chore: rename 'capturing of' to 'capturing'
2023-05-19 13:01:59 -04:00
Jordan
a0efc77c46 feat: update git related messages for runs and debug (#26758)
* feat(app): update DebugError copy

* feat: set isUsingGit project flag and consume in DebugContainer

* feat(app): update not using git icon for DebugError

* feat(app): displays alert on runs page when not using git

* feat(app): add component for when no runs for current branch

* feat(app): add warning for no runs for branch on runs container

* chore: add feat to CHANGELOG

* chore: remove logged status value

* chore: resolve import from merge conflict

* test(app): stub branch name for e2e runs spec

* chore: add line break in changelog entry

* chore: cleanup PR

* chore: fix i18n import for DebugBranchError

* chore: add utm and update Warning links to inline

* chore: capitalize Git in i18n

* ref: warning liink

* test: add i18n to tests

* test(app): change utm_source assertions

* chore: cleanup pr

* chore: remove unused prop

* test(app): remove no git warning when moving to runs page in e2e

* chore: change template logic

* chore: remove duplicate RUNS_TAB_MEDIUM const

* Changed Debug test assertion and reordered new components for Debug

---------

Co-authored-by: Stokes Player <stokes.player@gmail.com>
2023-05-19 11:35:07 -04:00
Stokes Player
7fa5103f67 fix: fix UI flash when switching to debug page (#26761) 2023-05-17 15:58:18 -04:00
Matt Henkes
dc80641d02 chore: telemetry pr cleanup (#26776) 2023-05-17 10:51:02 -05:00
Matt Henkes
50ffd5ee1d chore: add telemetry to the proxy (#26695)
* chore: set up instrumentation and instrument middleware

* chore: set up console exporter

* chore: add parent span option to telemetry package

* chore: set up telemetry verbose mode

* chore: instrument the network proxy - part 1

* chore: make sure to terminate spans when request is aborted

* fix telemetry, create/end the request middle prior to sending the outbound request

* avoid telemetry ts build step, create entrypoint into packages/telemetry using TS conventions

* allow env vars to be "true" or "1"

* when creating child span, inherit their attributes directly from the parent

* create custom honeycomb exporter and span processor to log traces

* remove duplicate code that's already called in this.setRootContext

* cleanup

* more clean up

* update honeycomb network:proxy attributes, update console.log message

* yarn lock

* chore: remove performance API in middleware

* chore: end response on correct event

* recursively gather parent attributes on close

* added key and some clean up

* github action detector, move verbose into index, verbose log commands

* some tests

* clean up honeycomb exporter

* some renaming

* testing console trace link exporter

* Don't lose the top span when running in verbose.

* link to the right place for prod/dev

* changes to verbose to make sure it is read in the browser

* Apply suggestions from code review

* pass parent attributes between telemetry instances

* default to false

* 'fix' build issues

* src not dist

* add back on start span

* once more with feeling

* Fix some tests

* try this i guess

* revert auto build

* Apply suggestions from code review

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

* support failed commands

* Address PR comments

* Address PR Comments

* error handling

* handle all the errors

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2023-05-17 08:32:10 -05:00
Luis Furtado
bac3032b34 test: create lists files after folders when in same directory in specs list (#26723)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2023-05-15 12:16:30 -04:00
Mike Plummer
f0b015e23d chore: Remove console.log (#26756) 2023-05-15 09:46:45 -05:00
renovate[bot]
3112ebde9e chore(dependency): update dependency @percy/cypress to ^3.1.2 🌟 (#26717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2023-05-15 08:50:35 -04:00
Lachlan Miller
4f4a3c8c5a fix: do not cache module resolution during launchpad dependency detection (#26726)
Co-authored-by: Mike Plummer <mikep@cypress.io>
2023-05-12 14:39:20 -05:00
Mike Plummer
951abe29f1 misc: ACI empty state slideshows (#26692)
Co-authored-by: Stokes Player <stokes@cypress.io>
2023-05-12 13:46:53 -05:00
Lachlan Miller
9d4a3d263a fix: revert #26452 (Yarn Plug n Play compat regression) (#26735)
* Revert "fix: correctly resolve dependencies for CT onboarding when using Yarn Plug n Play (#26452)"

This reverts commit 7a33f5c1a8.

* changelog

* changelog
2023-05-12 20:02:46 +10:00
Mateusz Burzyński
3335e4b49f fix: move types condition to the front (#26630)
* fix: move `types` condition to the front

* chore: update changelog

* optimize deps for vite

* update config

* try optimizeDeps.include

* missing dep

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-05-12 08:15:23 +10:00
Matt Schile
236b181666 chore: 12.12.0 release updates (#26697) 2023-05-09 11:13:59 -06:00
Mike Plummer
adc4c5e32c feat: Component Testing banner (#26625)
Co-authored-by: elevatebart <bart@cypress.io>
2023-05-05 16:07:41 -05:00
renovate[bot]
1d7ae10ab5 dependency(deps): update dependency engine.io to v6.4.2 [security] (#26664)
* dependency(deps): update dependency engine.io to v6.4.2 [security]

* updating changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-05-04 17:58:34 -05:00
C Gwenael
b979bdbde6 dependency: Update plist launcher CVE-2022-26260 (#26631) 2023-05-02 22:48:54 -06:00
Stokes Player
f65d0dd382 refactor: add eslint disable comment (#26638) 2023-05-02 11:00:11 +10:00
Mike Plummer
03a263d37b chore: add generated file to .gitignore (#26617) 2023-05-01 14:26:07 -05:00
Jennifer Shehane
4c45e2eb34 fix: Update Chrome renderer crash to be more terse and up to date (#26597) 2023-05-01 13:14:11 -06:00
Barthélémy Ledoux
8f75b139a4 refactor: migrate from windi to tailwind (#26516)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Stokes Player <stokes.player@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Stokes Player <stokes@cypress.io>
2023-04-28 10:29:24 -04:00