Commit Graph

18441 Commits

Author SHA1 Message Date
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
Lachlan Miller
4d5b48383d chore: intercept request early to reduce flake (#22877)
Co-authored-by: Mike Plummer <mikep@cypress.io>
2022-07-21 10:16:57 -05:00
github-actions[bot]
7b58800166 chore: Update Chrome (stable) to 103.0.5060.134 and Chrome (beta) to 104.0.5112.48 (#22503)
* chore: Update Chrome (beta) to 104.0.5112.20

* chore: Update Chrome (beta) to 104.0.5112.29

* chore: Update Chrome (stable) to 103.0.5060.114 and Chrome (beta) to 104.0.5112.29

* chore: Update Chrome (stable) to 103.0.5060.114 and Chrome (beta) to 104.0.5112.39

* chore: Update Chrome (stable) to 103.0.5060.114 and Chrome (beta) to 104.0.5112.48

* chore: Update Chrome (stable) to 103.0.5060.134 and Chrome (beta) to 104.0.5112.48

Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-07-21 13:14:08 +10:00
Hugo Alliaume
f512f75ceb fix(config): allow "additionalIgnorePattern" to be an array of strings (#22826)
* fix(config): allow "additionalIgnorePattern" to be an array of string

Also set default value to "[]", to prevent issue when running E2E tests.

* chore(test): set "additionalIgnorePattern: undefined" for Cypress-in-Cypress config

* chore: update snapshots

* chore: update types for additionalIgnorePattern

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-21 11:19:06 +10:00
Lachlan Miller
0e2011d00d chore: fix test by normalizing stdout (#22861)
* chore: fix test by normalizing stdout

* extract util function to avoid side effects during test

* update spec
2022-07-21 10:22:19 +10:00
Blue F
0ed8dd57b6 chore: Refactor cy.state('subject') and cy.then() (#22742)
* Refactor chainer / Commands.add for readability

* Fix invoking wrong function, add comment

* WIP, still failing tests

* Fix additional driver tests

* Fix subject for utility commands

* Better fix for utility functions

* Fix more tests

* Another pass of test fixes

* Additional comments, added shim to continue supporting cy.state('subject')

* Adjust reserved command names to no longer require manual addition / removal (and be more complete)
2022-07-20 14:30:14 -07:00
Chris Breiding
7ada4da299 fix typo 2022-07-20 11:10:54 -04:00
Chris Breiding
ad9b2c1704 fix realword-app link 2022-07-20 09:14:43 -04:00
Mike Plummer
36278fca01 feat: Add login state to manifest request for analytics (#22791) 2022-07-19 17:16:59 -05:00
Mark Noonan
2def224fab fix: avoid timer size changing as it counts up (#22846)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-07-19 17:49:51 -04:00
Mike Plummer
211aa3535c feat: Add icons to headers that have tooltips (#22815) 2022-07-19 16:18:25 -05:00
Chris Breiding
d01225945c trim down example aws config 2022-07-19 16:22:34 -04:00
Chris Breiding
2c2b8695fc chore: use valid platforms+arches list to purge cache instead of using user's arch 2022-07-19 15:48:29 -04:00
Chris Breiding
652885836d chore: make improvements to release-process.md 2022-07-19 15:44:42 -04:00
mirobo
9517b60e9d fix: don't cut off a long runUrl in console (#22619)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Ben M <benm@cypress.io>
Co-authored-by: Adam Stone <adams@cypress.io>
2022-07-19 15:04:56 -04:00
Chris Breiding
9ef6053264 Merge branch 'master' into develop 2022-07-19 13:18:01 -04:00
Chris Breiding
83c592d873 Revert "chore: merge develop into master v10.3.0 (#22567)"
This reverts commit 43c5477c6b.
2022-07-19 13:13:33 -04:00
Chris Breiding
ae4a9d89b1 10.3.1 release v10.3.1 2022-07-19 12:56:42 -04:00
Chris Breiding
1da95a7db1 fix: Determine global mode based on whether there is a current project (#22838)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-19 10:28:46 -04:00
rockindahizzy
2aa7b93ea1 fix: Correct pluralization in Spec Pattern (#22773)
* fix: Correct pluralization in Spec Pattern

* update failing e2e tests

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-19 10:34:15 +10:00
Bill Glesias
89acf9c8a5 chore: add types to screenshots (#22768)
* chore: add types to screenshots

* remove wrong reference to event property and opt for Event
2022-07-18 18:24:01 -04:00
Chris Breiding
0aebe4a47d trigger build for 10.3.1 2022-07-18 13:25:43 -04:00
Kukhyeon Heo
1643161559 fix: show info message correctly on "record your first run ui" (#22413)
Co-authored-by: Rachel <rachel@cypress.io>
2022-07-18 15:42:00 +00:00
Kukhyeon Heo
7c4d5e56ec fix: cy.contains(RegExp) handles input[type=submit] correctly (#21285)
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-07-18 15:19:20 +00:00
Adam Stone
1b688694fe fix: Ensure that file watchers are closed before Electron exits (#22606)
* Adding prototype before-quit handler to handle async teardown.

* Getting binary builds

* Let's try this then

* Working the async changes backwards, hope I got them all. Unit tests will be a disaster currently.

* Actually getting build artifacts for testing

* Moving logic to server interactive/run

* fix: Fix some tests

* fix: Revert changes to circle config

* fix: Fix some tests

* fix: Fix more tests

* fix: Remove dead code comment

* fix: Fix ProjectDataSource tests

* fix: Add comment prefix

* fix: Remove comment and unnecessary async

* fix: Build Mac binary

* Reverting run changes

* Addressing PR comments. Cleaning up a few naming quibbles I had.

* Addressing TODO regarding onLoadError watcher cleanup.

* Correcting catch

* Fighting some unref errors on these catches

* Reverting making this private en lieu of binding

* Should have left these as instances, whoops

* Removing unnecessary test that was previously skipped

* Adding a couple cheap unit tests for the new interactive mode behavior

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-07-17 15:57:10 -05:00
Lachlan Miller
8e07318a9f feat(npm/vue): expose Test Utils API (#22757)
* expose test utils object from cypress/mount

* inline test utils types and rewrite cli/vue/index.d.ts to use inline types

* update readme

* typo and fix comment

* revert accidental change

* revert accidental change
2022-07-16 13:59:49 +10:00
Muaz Othman
3d07d53e98 feat: auto-collapse sidebar for window width < lg (#22393)
Co-authored-by: Mike Plummer <mikep@cypress.io>
2022-07-15 19:53:46 -05:00
Mike Plummer
59c926ba77 fix: Resolve Git Info when using alternative shells or Windows (#22741) 2022-07-15 18:55:21 -05:00
Mike Plummer
7e4d82bfaf fix: Cleanup RunStatusDots component (#22735)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-15 18:02:38 -05:00
Kukhyeon Heo
71afe7789a fix: Remove dynamic fixtures in tests. (#22244)
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-07-15 18:46:34 -04:00
Zach Bloomquist
467b2c9960 chore: only run Windows on main branches (#22822) 2022-07-15 22:45:16 +00:00
Mark Noonan
9a1e73f127 fix: respect CYPRESS_NO_COMMAND_LOG in env (#22641)
* avoid throwing error if reporter is not found

* make it safe to call `empty` when no element is found

* don't set up reporter without reporter root el

* expose "no command log" in window config object

* set up noCommandLog in runner ui store

* handle noCommandLog in open mode

* handle noCommandLog in Run Mode

* handle noCommandLog in runner styles

* don't clean up reporter if there's no reporter

* remove left 1px border in run mode always, not just for screenshots

* fix missing export

* add run mode test

* add open mode tests

* tweak comment

* minor test updates

* change variable name

* don't render reporter-related elements if hidden

* allow runner to still be cleaned up

* fix resizable panel assertion

* swith back to v-show for panels

* update tests
2022-07-15 17:46:52 -04:00
Zachary Williams
7e0de0b0d0 fix: map framework name to dependency that contains webpack (#22774) 2022-07-15 14:36:29 -05:00
Barthélémy Ledoux
97ec82009c fox: avoid removing the types from vue, vue2 when install (#22814) 2022-07-15 14:28:25 -05:00
Emily Rohrbough
2383cafa93 chore: ensure percy nonce updates with new workflow trigger (#22659)
* ensure nonce updates with new workflow trigger

* chore: ensure nonce updates with new workflow trigger

* Empty-Commit to generate new percy nonce

* whoops, wrong env
2022-07-15 13:16:07 -05:00
Haoqun Jiang
8678053f7d feat: support vite.config.mts and vite.config.cts (#22782)
It's added in Vite 3.0:
https://github.com/vitejs/vite/pull/8729
2022-07-15 12:29:48 -04:00
Zachary Williams
6d03596e03 test: fix flaky config error test (#22808) 2022-07-15 10:28:58 -05:00
Puranjay Jain
198b28d1d7 fix: for hosts typing in cypress.d.ts (#22718)
* Update cypress.d.ts

Fix the hosts typing in cypress typings file

* fix: Add ts type for hosts in a server base file
2022-07-14 22:30:55 -07:00
Mike Plummer
cb81596d13 fix: Styling of specs list at small breakpoints (#22635)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-07-14 19:37:55 -05:00
Kukhyeon Heo
e1b80e4c32 fix: show docs menu in column style when viewport is small. (#22411)
* fix: show docs menu in column style when viewport is small.

* use tailwind css

* organize test in context block

Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-07-14 15:41:41 -07:00
GitStart
90fe5027cd fix: format special characters correctly (#22537)
* Update packages/reporter/cypress/e2e/unit/formatted_message.cy.ts

Co-authored-by: Rachel <rachel@cypress.io>

* Update packages/reporter/cypress/e2e/unit/formatted_message.cy.ts

Co-authored-by: Rachel <rachel@cypress.io>

* Remove extra spaces

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Benjamin Mayanja <vibenjamin6@gmail.com>
2022-07-14 12:56:59 -05:00
Zachary Williams
1c44eae5d4 chore: add optimized deps to reduce CI flake for CT tests (#22564) 2022-07-14 13:39:43 +10:00
Mike Plummer
c9e2c0a63c fix: Tooltip issues with ACI (#22650) 2022-07-13 20:08:16 -05:00
Mike Plummer
029f3c596b fix: UTM parameters for Latest Runs column (#22624)
* fix: UTM parameters for Latest Runs column

* Add UTM parameters to dashboard URL for Latest Runs content
* Update util function to work with URLs that have existing params

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-07-13 17:01:24 -05:00
Mark Noonan
5bd848c176 fix: update border color values (#22652) 2022-07-13 16:34:55 -04:00
Mark Noonan
70b9bc6793 fix: restore truncating behavior in Last Updated column (#22588) 2022-07-13 16:33:30 -04:00