Commit Graph

18487 Commits

Author SHA1 Message Date
Blue F ef301e11b3 chore: Reapply state refactor (#23092)
* Revert "chore: reverting #22742 (#23047)"

This reverts commit 51ef99ac5b.

* Fix for aliases when .then() is in the chain

* Run all tests on branch

* Fix silly mistake

* Fix broken test (again)

* Update packages/driver/cypress/e2e/cypress/cy.cy.js

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-03 15:32:18 -07:00
Zachary Williams 94e78eba04 feat: enable Angular CT support (#23089) 2022-08-03 17:21:34 -05:00
Mark Noonan f73810d7da test: make content consistent in component tests that use faker (#23080) 2022-08-03 12:24:54 -04:00
github-actions[bot] 40e1b368d5 chore: Update Chrome (stable) to 104.0.5112.79 (#23074)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-03 09:12:38 -07:00
Emily Rohrbough 8f2855a233 chore: dont render unnecessary dom elements (#22388) 2022-08-03 08:40:35 -05:00
Mark Noonan c058bf2878 fix: resolve "project" breadcrumb problems (#22648)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-03 07:49:31 -04:00
github-actions[bot] f69afb5aa4 chore: Update Chrome (beta) to 104.0.5112.79 (#23054)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2022-08-03 10:34:36 +10:00
Emily Rohrbough 17fd75f04b chore: clean up the globbing for supportFile(s) on test start (#22903) 2022-08-02 19:21:57 -05:00
Zachary Williams 2226b2834a fix: vite v3 not working with node >=17 (#23048)
* fix: vite 3.0 not working with node >=17

* forgot to add system-test config

* redundant map

* make docker + npm happy

* make npm config cache dir

* revert system test changes
2022-08-03 08:45:30 +10:00
Lachlan Miller ee177195eb fix: windows CI with Vite 3 (#23052)
* chore: patch vite

* remove readJsonSync methods

* rename patch

* fix tests

* reduce flake by using a timeout

* update test

* do not build mac and linux binaries
v10.4.0
2022-08-02 10:18:13 -05:00
Matt Henkes 51ef99ac5b chore: reverting #22742 (#23047)
* Revert "chore: Refactor cy.state('subject') and `cy.then()` (#22742)"

This reverts commit 0ed8dd57b6.

* Run more tests
2022-08-01 15:35:04 -05:00
mjhenkes 4d3ad9edaa Merge branch 'master' into develop 2022-08-01 08:35:58 -05:00
Lachlan Miller cbb5e35762 feat: warn when detecting unsupported dependencies for component testing (#22964)
* wip: basic implementation

* update dependencies to have maxVersion

* handle promises correctly

* fix test

* update test project and styling

* only check for CT deps in CT

* install required deps

* revert

* rework detection and extend tests

* remove unused code

* remove more code

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-01 11:40:52 +10:00
Bill Glesias 2612219501 feat: add modify obstructive user agent code for electron to strip el… (#22958)
* feat: add modify obstructive user agent code for electron to strip electron and cypress out of the UA string.

* fix user agent destructuring error within unit tests

* remove explicit CDP command and opt for _setUserAgent. add test to not override passed in user agent via config

* add get user agent method to electron and update tests

* move user agent override in electron under experimentalModifyObstructiveThirdPartyCode over experimentalSessionAndOrigin

* move position of setting user agent to browser launch, hopefully fixing issues in CI with parallelization between parent/child processes

* update stale documentation and remove no longer necessary stub of getUserAgent

* add user agent to get user agent debug log

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-07-29 22:46:27 -04:00
Matt Schile 45ec63dbcd fix: Remove isAUTFrame qualification from cross origin cookie check (#22963) 2022-07-29 16:22:30 -06:00
Tyler Biethman 964ac37e1c chore: updating run binary CI scripts to support external contributors (#23021) 2022-07-29 16:02:48 -05:00
Zachary Williams 2fd495ca1c refactor: use cp.fork to preserve stdout for packages/extension build (#22926) 2022-07-29 14:03:43 -05:00
Mike Plummer 91de9cfd6d fix: Standardize colors for runs in queued status (#23015) 2022-07-29 12:54:52 -05:00
Mike Plummer 7f054aeb69 fix: Ensure tooltips are displayed behind modals (#22957) 2022-07-29 10:15:01 -05:00
Zachary Williams ecad07e27b chore: remove angular integration (#23004) 2022-07-29 10:01:01 -05:00
Matt Henkes f147ebbcc6 fix: call screencastOpts as a function for starting a screencast on electron. (#23001)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-29 08:27:00 -05:00
Emily Rohrbough 85ee714217 chore(server): clean up server code (#23002)
* remove dead code

* looking a little closer, runAllSpecsInSameBrowserSession is not used and default browser was already set to electron
2022-07-29 16:30:40 +10:00
github-actions[bot] fa2cd97f7b chore: Update Chrome (beta) to 104.0.5112.65 (#22965)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2022-07-29 12:57:48 +10:00
Emily Rohrbough 6f12c2378a style(reporter): adjust tag line-height (#22970) 2022-07-28 14:37:26 -05:00
Zachary Williams a7b140d438 feat: add angular-ct project setup (#22897) 2022-07-28 11:14:37 -05:00
Zachary Williams aedb1e93f9 refactor: improve angular mount log and override build options for dev (#22955) 2022-07-28 10:23:45 -05:00
Barthélémy Ledoux 581b158742 refactor: use Cypress design system icons in the SideBar (#22807)
* update alert icons

* update icons package

* use updated icons

* update icon package

* fix sidebar navigation icons

* remove old windi package

* fix test on NavigationRow

* update design system

* make clearer that iconColor is not a class

* update tsc

* rollback package updates

* fix types

* remove all changes from alert (another PR)

* fix: apply suggestions from code review

stylistic changes I can't argue with.

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

* remove icons that are not used anymore

* avoid installing unused packages

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-07-27 23:11:14 -05:00
Lachlan Miller a710aaf154 chore: update docs for npm directory (#22916)
* chore: add docs to npm directory

* Fix binary build failure caused by non-JSON file at `/npm`

* chore: simplify docs

* revert

* fix build

Co-authored-by: Mike Plummer <mikep@cypress.io>
2022-07-28 11:47:37 +10:00
rockindahizzy 72078ef3d2 fix: Throw error when custom config file does not return expected value (#22927)
* fix: Throw error when custom config file does not return expected value

* Improve test to avoid false positive

* Code review changes

* remove old code

* remove unused yarn.lock

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-28 10:19:39 +10:00
Lachlan Miller 6adba462ea feat: update to Vite 3 (#22915)
* chore: do not rely on transitive dep. from npm/react

* chore: bump to vite 3.0.2

* revert

* target es6

* remove unused code

* update styles

* remove ts-ignore

* bump to vite 3.0.3
2022-07-28 10:00:31 +10:00
Emily Rohrbough b0590a1505 style: update session verbiage & styles and update alias styles (#22857)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-07-27 13:07:02 -05:00
rockindahizzy 952a9aad86 chore: fix glob pattern for system tests (#22918)
* chore: Adjust system test glob pattern for m1

* Address windows issue and add branch to windows workflow
2022-07-27 09:51:18 +10:00
Jordan 4131b1fa84 feat(angular): angular mount (#22858)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-26 17:44:44 -05:00
Mike Plummer b62c9491b1 chore: Build Flaky Badge and tooltip content (#22873) 2022-07-26 14:47:14 -05:00
Mike Plummer 41a0271c34 feat: Add banners for incomplete project connection states (#22810) 2022-07-26 11:16:02 -05:00
Lachlan Miller 8e2e727047 chore: bump vue/test-utils version (#22928) 2022-07-26 09:24:55 -05:00
Mark Noonan c4c3e4123a fix: Allow typing seconds into datetime inputs (#22901)
* fix: allow typing seconds into datetime inputs

* update error message

* add support for fractions of a second
2022-07-26 08:53:46 +10:00
semantic-release-bot f72d6c5c0c chore: release @cypress/schematic-v2.0.1
[skip ci]
2022-07-25 18:25:34 -04:00
Dominik Lesch b4ae71c1c1 fix: wrong version of webpack-dev-server displayed (#22919) 2022-07-25 17:01:54 -05:00
renovate[bot] 7c3a4f8bb6 chore(deps): update dependency nock to v13.2.9 🌟 (#22854)
* chore(deps): update dependency nock to v13.2.9 🌟

* chore: update nock api from v12 to v13 by changing socketDelay to delayConnection. See https://github.com/nock/nock/releases/tag/v13.0.0 for more details

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-25 15:17:32 -04:00
Emily Rohrbough 65d29cdcf3 chore: remove dead server code (#22902) 2022-07-25 10:29:14 -05:00
semantic-release-bot fa884dc87b chore: release @cypress/schematic-v2.0.1
[skip ci]
2022-07-25 11:19:24 -04:00
Adam Murray 3ed93e1dae fix(cypress/schematic): run configuration does not work anymore without baseUrl (#21629) 2022-07-22 17:23:15 -05:00
Jordan dc5d9de290 feat(webpack-dev-server): add angular handler (#22314)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-22 13:41:23 -05:00
Bill Glesias 5ff15046e2 feat: add experimentalModifyObstructiveThirdPartyCode flag for regex rewriter (#22568) 2022-07-22 08:30:20 -06:00
Lachlan Miller f0d3a48679 feat: React 18 support (#22876)
* update cli exports

* add additional react adapters

* update system test infra to better cover react versions

* use idiomatic cy.mount and cy.unmount

* add additional test projects

* update tests

* add new modules

* remove dead code, organize code more

* add react 16 project

* update webpack to resolve react correctly

* add test for react 16

* update snaps

* add react adapters

* ignore cli/react files

* use official rollup plugin to bundle npm/react

* update yarn lock for webpack dev server tests

* update vite dev server projects

* update config

* remove console.log

* update tsconfig

* fix tests

* fix another test

* update snaps

* update snaps

* fix build

* remove react{16,17}, update tests

* update build

* add missing export

* update test

* fixing tests

* fixing tests

* update snaps

* update snaps again

* build artifacts on circle

* dont try to update rollup plugin

* update circle

* update

* add missing build step

* update deps, remove old code

* revert circle changes

* do not hoist deps from react18

* remove deps
2022-07-22 11:35:09 +10:00
github-actions[bot] 60fd56834a chore: Update Chrome (beta) to 104.0.5112.57 (#22878)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2022-07-22 10:14:23 +10:00
Zachary Williams 2027f1daee fix: allow next.js apps to import global styles (#22769) 2022-07-21 14:36:50 -05:00
Tyler Biethman c94fbb6321 chore(deps): Updating to electron@19.0.8 (#22775)
* Trying out electron 19.0.4

* nvm-for-windows 1.1.7 is busted for node-16.14.2

* Went a bit overboard with the exit I think

* Stepping this back

* Breaking out yarn install

* Print runtime data

* log more data points

* well i'm confused. seeing what happens after these steps

* Lets see if powershell picks up the new PATH

* Maybe shell is refreshed between jobs?

* Installing nvm-1.1.9 manually

* Cleaning up circle.yml and a few other node references.

* Yeah that ain't gonna work

* Trying bash implementation

* Urgh yaml

* Bumping to latest patch version

* Getting a full build + artifacts

* Sourcing node in build step

* More node sourcing

* Run against updated recipes repo

* I'll find all these eventually

* Trigger new build after cache busting

* Let's slim this down to test recipes for a bit

* Good ol' working_directory

* Fixing bad syntax

* Not quite sure where all this is necessary at this point

* Using recipes PR branch

* This isn't necessary here

* Re-enabling jobs

* More node sourcing

* Running kitchensink tests against PR branch

* Moving nvm-windows update to script

* Even more node sourcing

* Removing CI config for merged kitchensink/recipes PRs
2022-07-21 13:02:46 -05:00
Chris Breiding 18829a03d6 Merge pull request #22856 from cypress-io/2022-07-19-release-process-improvements 2022-07-21 11:22:08 -04:00