Commit Graph

20139 Commits

Author SHA1 Message Date
Chris Breiding
a0cfed5044 fix: "bypass" proxying network requests from extra browser tabs/windows (#28188)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-11-02 13:55:13 -04:00
Tanmay Mohapatra
becb893f07 docs: Fix config option example typo in tooltip (#28174)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-11-01 11:14:40 -04:00
Carolina Urrea
3967b4801a fix: update visibility check with overflow: hidden and element on the edge (#27586)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-10-31 13:39:29 -05:00
Chris Breiding
6aafb528dd chore: extract Target.attachedToTarget and Target.targetDestroyed handlers into own methods (#28179) 2023-10-31 10:48:45 -04:00
Cacie Prins
5a95541c3c chore: sets date for 13.4.0 release in changelog to 10/30 (#28177) v13.4.0 2023-10-30 08:42:14 -05:00
Cacie Prins
08d73d4a53 chore: fixes changelog whitespace (#28168) 2023-10-27 12:27:34 -05:00
Cacie Prins
397ab4c820 chore: 13.4.0 release updates (#28166) 2023-10-27 11:32:43 -05:00
Cacie Prins
e0ad2d7336 chore: fixes changelog whitespace (#28164) 2023-10-27 10:53:38 -05:00
Cacie Prins
7defccfe45 chore: increase timeout for experimental retries test (#28163) 2023-10-27 10:35:00 -05:00
Ryan Manuel
4036d713a3 chore: update changelog for #28141 fix (#28161)
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-10-27 10:14:54 -05:00
cypress-bot[bot]
f30a16a40c chore: updating v8 snapshot cache 2023-10-26 21:35:07 +00:00
cypress-bot[bot]
95d1a0c671 chore: updating v8 snapshot cache 2023-10-26 21:15:28 +00:00
Cacie Prins
b4cfb47122 chore: update @ffprobe-installer/ffprobe so all system tests run on darwin-arm64 (#27802) 2023-10-26 15:10:07 -04:00
Bill Glesias
201e9f366e feat: experimental retries (#27930)
* chore: set up feature/test-burn-in feature branch

* feat: add burnIn Configuration option (currently a no-op) (#27377)

* feat: add the burnIn Configuration to the config package. Option
currently is a no-op

* chore: make burn in experimental

* chore: set experimentalBurnIn to false by default

* feat: add new experimental retries configuration (#27412)

* feat: implement the experimental retries configuration options to pair
with test burn in

* [run ci]

* fix cache invalidation [run ci]

* fix snapshot added in v13 for module api to include test burn in experimentalflag

* chore: fix merge conflict

* chore: add burnInTestAction capability (#27768)

* add burnInTestAction capability

* feat: add burn in capability for cloud

* chore: fix snapshot for record_spec

* feat: implement experimental retries (#27826)

* chore: format the retries/runner snapshot files to make diff easier

* feat: implement experimentalRetries strategies 'detect-flake-and-pass-on-threshold' and 'detect-flake-but-always-fail'. This should not be a breaking change, though it does modify mocha and the test object even when the experiment is not configured. This is to exercise the system and make sure things still work as expected even when we go GA. Test updates will follow in following commits.

* chore: update snapshots from system tests and cy-in-cy tests that now have the cypress test metadata property _cypressTestStatusInfo. tests have been added in the fail-with-[before|after]each specs to visually see the suite being skipped when developing.

* chore: add cy-in-cy tests to verify reporter behavior for pass/fail tests, as well as new mocha snapshots to verify attempts. New tests were needed for this as the 'retries' option in testConfigOverrides currently is and will be invalid for experiment and will function as an override. tests run in the cy-in-cy tests are using globally configured experimentalRetries for the given tested project, which showcases the different behavior between attempts/retries and pass/fail status.

* chore: add unit test like driver test to verify the test object in mocha is decorated/handled properly in calculateTestStatus

* chore: add sanity system tests to verify console reporter output for experimental retries logic. Currently there is a bug in the reporter where the logged status doesnt wait for the aftereach to complete, which impacts the total exitCode and printed status.

* fix: aftereach console output. make sure to fail the test in the appropriate spot in runner.ts and not prematurely, which in turn updates the snapshots for cy-in-cy as the fail event comes later."

* chore: address comments from code review

* fix: make sure hook failures print outer status + attempts when the error is the hook itself.

* chore: improve types within calculateTestStatus inside mocha.ts

* Revert "feat: add burnIn Configuration option (currently a no-op) (#27377)"

This reverts commit c428443079.

* Revert "chore: add burnInTestAction capability (#27768)"

This reverts commit ae3df1a505.

* chore: run snapshot and binary jobs against experimental retries feature branch

* chore: add changelog entry (wip)

* Revert "fix snapshot added in v13 for module api to include test burn in experimentalflag"

This reverts commit bb5046c91e.

* Fix system tests

* Clear CircleCI cache

* Normalize retries config for test execution

* Fixed some unit tests

* update snapshots for newer test metadata

* Fix cy-in-cy snapshots

* update snapshots

* bump cache version

* chore: ensure legacy retry overrides work; reject exp. retries overrides (#28045)

* update changelog

* flip if statement in experimental retries option validation

* refactor invalid experimental retry override for more useful error msg

* revert testConfigOverrides snapshot

* update snapshots for test override sys test

* Update packages/config/src/validation.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* succinct changelog entry; links to docs for details

* testConfigOverride system test snapshots

* Update .github/workflows/update_v8_snapshot_cache.yml

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update cli/CHANGELOG.md

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update packages/driver/src/cypress.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* updating cache-version

* improve typescript usage when appending experimental retry options to experiments in Experimenets.vue

* Revert "improve typescript usage when appending experimental retry options to experiments in Experimenets.vue"

This reverts commit b459aba882.

* refactor test config override validation for experimental retry subkeys

* account for error throw differences in browsers in system tests

* bump circle cache

* bump circle cache again

---------

Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: mabela416 <mabel@cypress.io>
Co-authored-by: Muaz Othman <muaz@cypress.io>
Co-authored-by: Muaz Othman <muazweb@gmail.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matthew Schile <mschile@cypress.io>
2023-10-26 14:06:14 -04:00
Ryan Manuel
80cc83d0aa chore: fix test flake with shared workers and correlating on failures (#28132)
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
2023-10-26 09:17:33 -05:00
Ryan Manuel
15f730007f fix: issue with service worker attachments (#28147)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-10-26 09:16:20 -05:00
Adam Stone-Lord
09fa9d7a6b chore: update homepage field to point to marketing site (#28133) 2023-10-25 11:36:51 -04:00
Surav Shrestha
186f725da4 docs: fix typos in guides (#28120) 2023-10-24 17:23:04 -04:00
Matt Schile
058f3a80b0 test: fix spec search in windows (#28130) v13.3.3 2023-10-24 12:54:22 -05:00
Matt Schile
7f01e8dffc chore: 13.3.3 release updates (#28129) 2023-10-24 11:32:54 -05:00
Ryan Manuel
dbd213926c fix: issue with proxy correlations and web/shared workers (#28105) 2023-10-23 22:26:21 -05:00
Ryan Manuel
d9606868c5 fix: fix failures and correlation in proxy (#28094) 2023-10-23 16:08:05 -05:00
janlengyel
74a06c53b8 fix: ignore dash, underscore and space in search (#28012)
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Matt Schile <mschile@gmail.com>
2023-10-23 15:32:39 -04:00
Matt Schile
04a1156ccd chore: 13.3.2 release (#28086) v13.3.2 2023-10-18 09:16:19 -06:00
Matt Schile
5d667b3397 chore: update cache-version date (#28084) 2023-10-18 08:37:33 -06:00
Ryan Manuel
ff89ffa2b2 fix: proxy issues with service workers and clean up at end of specs (#28060) 2023-10-17 19:53:49 -05:00
Adam Stone-Lord
a96b9b1f53 chore: remove Cypress Conf promo from README (#28076)
This reverts commit e0065e2ec5.
2023-10-17 18:05:36 -04:00
Ryan Manuel
ca6d30d7bf fix: force gzip when no accept encoding header is sent and use identity if gzip is not sent (#28026)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2023-10-17 13:52:37 -05:00
semantic-release-bot
fd2a27d620 chore: release create-cypress-tests-v2.0.4
[skip ci]
create-cypress-tests-v2.0.4
2023-10-16 17:13:16 -04:00
Ryan Manuel
c8c5b51d82 dependency: packages/data-context/package.json to reduce vulnerabilities (#28063)
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-10-16 14:16:48 -05:00
semantic-release-bot
861474f904 chore: release @cypress/grep-v4.0.1
[skip ci]
@cypress/grep-v4.0.1
2023-10-16 14:30:39 -04:00
Adam Stone-Lord
bffc2f3f17 chore: use env to override branch instead of cli arg (#28057) 2023-10-16 13:57:16 -04:00
Sam Tsai
5a7eee573e fix(grep): fix options sent to fast glob package - issue 27216 (#27231)
* Declare function so we can import

* Fix ignore pattern to match api

* Fix lint

* Only force array if not already an array

Turn grep filtering on for own test

* Add a command to test grep tag @smoke

* adding tests

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
Co-authored-by: Matthew Schile <mschile@cypress.io>
2023-10-13 16:43:53 -04:00
renovate[bot]
facf87db05 fix(deps): update dependency zod to v3.22.3 [security] (#27966) 2023-10-13 13:48:50 -06:00
Dave Kasper
6373930c8e chore: release 13.3.1 (#28022)
* chore: release 13.3.1

* bump cypress-example-kitchensink version

* fix changelog

* use consistent punctuation in changelog

---------

Co-authored-by: astone123 <adams@cypress.io>
v13.3.1
2023-10-11 16:18:56 -05:00
Ryan Manuel
4e720c8ebf chore: fix types breaking due to exposing too much inside of protocol.ts (#28035) 2023-10-11 15:27:27 -05:00
Ryan Manuel
5efecf9a4a chore: fix problem with single tab run mode introduced by #27786 (#28032)
* chore: fix problem introduced by <pr>

* Update packages/server/lib/modes/run.ts
2023-10-11 12:36:21 -05:00
Abhisar Yadav
093d78a5c2 docs: update code of conduct (#27988)
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-10-11 10:06:27 -04:00
Jim Hays
34c8b1f884 refactor: Spellcheck (#27964)
Co-authored-by: Matthew Schile <mschile@cypress.io>
2023-10-11 10:06:10 -04:00
Ryan Manuel
078dc0a81e fix: support proxy correlation timeout notifications and additional proxy data (#27976) 2023-10-10 16:19:37 -05:00
young-robot
b3b7d3ba65 chore: fix component tests in contributor flow (#27883)
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
Co-authored-by: Dave Kasper <dave.m.kasper@gmail.com>
2023-10-10 14:06:38 -04:00
Ryan Manuel
9f3d5b4565 fix: build better-sqlite3 (#27968)
* fix: build better-sqlite3

* fix syntax

* fix syntax

* fix syntax

* fix syntax

* fix syntax

* fix syntax

* fix syntax

* fix syntax

* better sqlite3

* publish pre-release

* Update CHANGELOG.md

* add comment

* try to cache

* try and speed things up even more

* fixes

* improve caching

* improve caching

* improve caching

* fix build

* fix build

* Update scripts/binary/build.ts

Co-authored-by: Adam Stone-Lord <adams@cypress.io>

* Update centos7-builder.Dockerfile

Co-authored-by: Adam Stone-Lord <adams@cypress.io>

* Update centos7-builder.Dockerfile

Co-authored-by: Adam Stone-Lord <adams@cypress.io>

* Update CHANGELOG.md

* fix keys

* Update cli/CHANGELOG.md

* Update cli/CHANGELOG.md

* Revert "fix keys"

This reverts commit b1383d4432.

* fix keys

* fix build

* optimize

* bump cache

* optimize

* bump cache

* blank

* blank

* Update scripts/binary/trigger-publish-binary-pipeline.js

* Update cli/CHANGELOG.md

* Update CHANGELOG.md

* Update cli/CHANGELOG.md

---------

Co-authored-by: Adam Stone-Lord <adams@cypress.io>
2023-10-09 14:23:56 -05:00
Cacie Prins
1a6f87922c fix: report results correctly when the browser crashes mid-test (#27786)
* report correct number of failures if browser crashes in the middle of a test suite

* report failure correctly when browser crashes during test

* refactor crash handling

* correct exit option check, clean up debug

* exit on success if exit option !== false

* use default stats when reporter stats are unavailable

* fix error messaging

* move reporter types to an intermediate .ts file, to be combined with reporter.js when migrated

* debug tab close test in ci

* move debug env from pkg to ci yml

* set debug env in spec

* fix pckg

* adds some logging to cri-client

* remove event emit logging from project-base

* revert snapshot for tab close system test

* fixes console output for no exit on success

* changelog

* changelog wsp

* cleanup

* clean up tests

* refactor to more straightforward control flow

* rm export for unused type

* correct tab close snapshot for ci

* new system test for mid-test config crash

* update snapshots
2023-10-06 14:45:33 -04:00
Adam Stone-Lord
92cc6da758 chore: exit successfully when test report directory doesn't exist (#27986) 2023-10-06 11:41:00 -04:00
Dave Kasper
9659e1890f chore: remove build step from unit-tests workflow use cached artifacts (#27984) 2023-10-05 12:31:43 -05:00
Adam Stone-Lord
86057dc336 chore: add @packages/example as a dependency of create-cypress-tests (#27978) 2023-10-05 10:41:48 -05:00
Dave Kasper
6bdebd7e5f chore: follow-up cli optimizations (#27974) 2023-10-04 14:07:46 -04:00
Adam Stone-Lord
4c11731ee1 chore: optimize task execution (#27848)
* Revert "chore: simplify build script (#27547)"

This reverts commit 0a86ec686e.

* Revert "chore: upgrade lerna to 6, cache build step (#26913)"

This reverts commit 9e60aeba8f.

* [run ci]

* chore: upgrade lerna to 6, cache build step (#26913)

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update lerna to 6

* [run ci]

* try caching build step

* we can't clean without building after

* add dependencies on scripts for npm packages

* update commands

* add config for data-context build step

* fix output configurations for npm packages, add gitignores

* revert changes to config and data-context build steps

* fix outputs

* run with cache

* fix outputs for cli

* actually fix outputs

* test with cache

---------

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

* chore: simplify build script (#27547)

* chore: simplify build script

* update CI workflows

* fix workflows

* empty commit because Percy weirdness

* chore: add driver, reporter, config as implicit dependencies for runner package (#27559)

* run all workflows on branch

* chore: parallelize test-binary-against-recipes CI step (#27570)

* chore: fix some easy circular dependencies in dep graph (#27612)

* chore: remove gulp tasks from postinstall (#27616)

* empty commit

* chore: minor improvements to node_modules_install (#27647)

* chore: fix cypress:open and dev scripts

* run with cache [run ci]

* exclude mochaawesome assets from .yarnclean [run ci]

* bump cache again [run ci]

* run cached [run ci]

* chore: do not cache cli build step [run ci]

* update workflow command and docs for build-cli [run ci]

* fix commands that use scope [run ci]

* use different branch for publish repo [run ci]

* percy weirdness? [run ci]

* fix postbuild cli script [run ci]

* try to remove typescript from production binary [run ci]

* fix circular dependency [run ci]

* try removing ts from node_modules [run ci]

* remove typescript resolution [run ci]

* remove redundant target scripts

* update to lerna scoped commands

* remove unneeded yarn in lerna command

* try to fix Electron install in Windows workflow

---------

Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Dave Kasper <dave.m.kasper@gmail.com>
2023-10-04 12:25:00 -05:00
Adam Stone-Lord
784f0cfe82 chore: add utility for purging urls from Cloudflare cache (#27923) 2023-10-04 11:18:34 -04:00
Adam Stone-Lord
c57316013a fix: yield waited responses in the order that they occured (#27806)
* fix: yield waited requests in the order that they occured

* fix firefox

* add changelog entry

* add test case for sorting

* add multi-alias test

* preserve alias order when sorting via requestId

* removed value parse code

* messy but more robust

* add comment, rename variable

* reduce alias count to account for webkit

* collate new tests under existing describe

---------

Co-authored-by: young-robot <adam.stonelord+fake@gmail.com>
Co-authored-by: David Kasper <dave.m.kasper@gmail.com>
2023-10-03 15:16:21 -05:00