Commit Graph

18429 Commits

Author SHA1 Message Date
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 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
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
Tyler Biethman 782dfb7a90 test: Fixing system test with missing setup (#22767)
* test: Fixing test with missing setup

* Blank commit for percy
2022-07-13 12:16:53 -05: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
Zachary Williams a9476ecb3d fix: remove CT side effects from mount when e2e testing (#22633) 2022-07-11 10:52:20 -05: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
Shawn McCabe 3afe3d4c36 fix: add missing types to exports (#22498)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-07-11 14:20:45 +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
Mark Noonan 3f751a05a8 docs: fix typo in review instructions (#22546) 2022-07-01 16:18:50 -04: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
renovate[bot] 169ec99ef5 chore(deps): update dependency got to v11.8.5 [security] (#22434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-07-01 10:54:45 -05:00