Commit Graph

5544 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
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
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
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
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
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
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
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
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
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
Bill Glesias
e16820b23e fix: absolute positioning element blackouts in cy.screenshot (#22756)
* add regression tests

* attempt to fix screenshot blacks basing blackouted element around container instead of body dimensions

* move blackout test to screenshot viewport suite and update snapshot

* add github issue to test
2022-07-13 15:16:50 -04:00
David Rubin
c894206535 fix: Remove punctuation, shorten example comment (#22680)
* fix: remove punctuation, shorten example comment
2022-07-13 09:17:44 -07:00
Mark Noonan
1ccc90573f fix: avoid overflow issue in Firefox (#22620)
* fix: update positioning of runner

* remove isFirefox check

* Update packages/app/src/runner/useRunnerStyle.ts

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-07-12 14:00:49 +10:00
Rachel
871e54fa6b fix: remove projects from breadcrumbs entirely for non-global mode projects (#22073)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-11 11:02:54 -07:00
Stepan Kartashev
2880092c60 fix: change "resizable panels handlers" width to make it more convenient to use (#22473)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-11 15:22:50 +10:00
Mike Plummer
67183f1670 fix: Keep copy button in view, remove button when file already written (#22510) 2022-07-01 17:12:57 -05:00
Emily Rohrbough
950312608e chore(sessions): update command to use internal logGroup api (#22341)
Co-authored-by: Matt Schile <mschile@gmail.com>
2022-07-01 12:52:49 -05:00
Adam Stone
a80c863685 fix: Correctly catch and clear errors during resetErrorAndLoadConfig mutation (#22514) 2022-07-01 10:14:02 -04:00
Vinicius Pietscher
f4cab0a2ba fix: Remove autocomplete from inputs in Cypress UI #22102 (#22456) 2022-06-30 16:40:47 -04:00
Barthélémy Ledoux
c67b75020d refactor: make shiki load all its deps upfront (#22114)
* refactor: make shiki load all its deps upfront

* finish some shiki adjustments

* fix type check

* rollback shiki upgrade

* add convert comment and simplify lang variable name

* use a switch statement
2022-06-30 14:13:37 -05:00
Chris Breiding
5573fe50b0 fix: Make cross-origin document.cookie work (#22594) 2022-06-30 14:03:21 -04:00
Vinicius Pietscher
2b3ab9ac71 fix: add padding to bottom of global mode list (#22112)
* fix: add padding

* fix: add padding (#21724)

* Update packages/launchpad/src/global/GlobalPage.cy.tsx

Co-authored-by: Mark Noonan <mark@cypress.io>

* no longer necessary for this fix

* no longer necessary padding will be added to Main.vue

* add bottom padding

* add percy test

* move percy snapshot out of helper function

Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-06-30 11:58:49 +10:00
Adam Stone
6fefe7d48b fix: Require react-dom as a dependency for React projects (#22572)
* fix: Require react-dom as a dependency for React projects

* fix: Update tests

* fix: Add react-dom as required dependency for Nextjs projects

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-30 08:05:36 +10:00
Blue F
d378ec423a chore: Refactor chainer / Commands.add for readability (#22571)
* Refactor chainer / Commands.add for readability

* Fix invoking wrong function, add comment
2022-06-29 12:43:31 -07:00
Buluc-Celik-Ozbul
b1a51f9b49 fix: Proxy-Authorization: Basic (#22471)
Co-authored-by: buloheart <buloheart@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-29 16:17:02 +10:00
Tyler Biethman
9658e9f4a6 test: Addressing yet more flaky windows tests (#22569)
* test: Updating more flaky windows tests

* Adding the missing context to the windows builds that I missed earlier
2022-06-29 09:01:52 +10:00
kemptosa
d7218aab7e docs: Fix links to kitchensink examples (#22464)
* Fix links

* docs: Fix links to kitchensink examples

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-28 16:06:44 -05:00
Kukhyeon Heo
54e31e3243 chore: Improve pkg/driver types part 2 (#21610)
* keyboard.ts

* mouse.ts

* chai.ts

* xhr.ts

* snapshots.ts

* overrides.ts

* command_queue.ts

* fix errors.

* fix tests.

Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-06-28 09:09:51 -07:00
Lachlan Miller
c0ea9bdaa5 fix: use posix path for ts-node loader (#22550)
* fix: distribute files to machines for external contributors. (#22326)

* fix: distribute files to machines for external contributors.

* fix path

* fix

* fix glob

* fix

* fix glob pattern spec->cy.

* fix

* echo things.

* test

* use cd.

* fix component tests.

* test

* test

* fix

* refactor

* test distribut-step

fix error
fix
fix
test
TEST

* Revert "test distribut-step"

This reverts commit 15c36065ca.

* Revert "refactor"

This reverts commit 21a8ad9211.

* reduce flake by increasing viewport height

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* fix: add baseUrl to TestConfigOverrides (#22445)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* handle white space when registering ts-node using --require

* update test project

* move config

Co-authored-by: Kukhyeon Heo <sainthkh@naver.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Ishan Madhusanka <ahtimadhusanka@gmail.com>
2022-06-28 09:00:06 -05:00