Commit Graph

17733 Commits

Author SHA1 Message Date
Lachlan Miller 22e7d36673 fix: update dev server error message (#21181)
* fix: update dev server error message

* revert change

* remove obsolete test

* revert change

* update errors

* rename error
2022-04-26 12:37:18 +10:00
Tim Griesser 598d94c62a feat: Auto-merge config when adding new testing type (#21152)
* wip on AST merging Cypress Config

* Adding test coverage & better implementation for config merging

* fix types, use new addToCypressConfig for projectId

* refactor: separate export for browser

* printing w/ recast

* don't remove prettier in this PR

* Update packages/config/src/ast-utils/addToCypressConfig.ts

* make comment more robust

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-04-25 18:58:44 -04:00
Zachary Williams dd180c89b2 fix: supportFile path and supportFile false for vite on windows (#21156)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-25 15:58:06 -05:00
Tyler Biethman cb5b547835 fix: Long Cypress verification times (#21174)
* Fixing some electron

* More electron refs

* Updating system test snapshots. Updating mocha timeout for module-api tests.

* Updating magic require with comment

* Updating system test snapshot again

* Removing dead code
2022-04-25 13:05:42 -04:00
Rachel 8f7a50f4fc feat: UI updates to scaffolded files (#21155) 2022-04-25 08:39:17 -07:00
Lachlan Miller 925ef3d526 remove old test 2022-04-25 15:27:29 +10:00
Jess 3e970be5bc fix: stop ResizeObserver error within the SelectorPlayground from throwing error (#21143)
* fixing the resizeobserver error within the SelectorPlayground

* spellcheck off

* unnecessary ref
2022-04-25 13:49:24 +10:00
David Munechika c110aa1941 fix(unify): Specs list within the test runner should be collapsed by default (#21103)
* change default specs list open

* update e2e tests

* revert test change

* change defaults

* update reporter tests

* update e2e test

* remove cy.wait

Co-authored-by: Mark Noonan <mark@cypress.io>
2022-04-21 10:04:20 +10:00
Tyler Biethman ce4a6b31af Merge pull request #21120 from cypress-io/tbiethman/fix/UNIFY-1504-disable-browsers
fix: Disabling browser dropdown in runner while tests are running
2022-04-20 18:55:54 +00:00
Tyler Biethman 491db5500f Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/fix/UNIFY-1504-disable-browsers 2022-04-20 09:08:33 -05:00
Tyler Biethman c1a88689e3 Simplifying key usage 2022-04-20 09:07:39 -05:00
Lachlan Miller d6924ea428 feat: add alpha/beta labels in launchpad (#21111)
* add alpha label

* add ribbon for beta CT

* fix types

* add supportStatus field and better support for a11y

* fix types

* fix tests
2022-04-20 16:39:05 +10:00
Jess b326693879 chore: cutting over system-tests and Cypress to use the new CT Object API (#21079)
* removing vite-dev-server local dependency from react-vite-ts-configured system test

* moving some CRA examples over to use the object api for setup

* fixing issue where function API was broken by object API for cy config + devservers

* adding deeply nested react import to project-fixtures for cra

* finishes cutting over cypress/react for sys tests

* chore: adding circle for this feature branch

* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)

* doing webpack-dev-server cutovers

* removing more webpack-dev-server refrences

* fixing snapshots

* bumping yarn.lock

* wip

* fix test

* fix assertion

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

* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)

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

* chore: add dev-servers as deps to server to be included in the binary (#21091)

* fix bad merge

* fix next types and webpack-dev-server- resolve

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-20 15:57:19 +10:00
Blue F 10dfccc674 chore: Move component-index generation to scaffold-config package (#21090)
* chore: Move component-index generation to scaffold-config package

* Review fixes

* Fix review comments for realzies this time
2022-04-20 11:45:40 +10:00
Mark Noonan b8ba111c40 fix: label text should be clickable to toggle snapshot highlight (#21122)
* update component

* update test

* update component test

* remove unused label text

* add cursor:pointer styles to label
2022-04-20 11:32:01 +10:00
Zachary Williams ccfee1ed13 feat: add next preset to webpack-dev-server-fresh (#21069)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-19 17:52:19 -05:00
Zachary Williams 48ebe6444b chore: add dev-servers as deps to server to be included in the binary (#21142)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-19 17:46:58 -05:00
Alejandro Estrada 6242ef0744 fix: do not highlight preExtension if selected option is renameFolder (#21121)
* fix: do not highlight preExtension if selected option is renameFolder

* Fix ts

* Do not change ext
2022-04-19 11:32:55 -05:00
David Munechika 691234cfdf fix(unify): Remove 'Reconfigure' dropdown from Testing Type chooser (#21063)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-19 11:56:01 -04:00
Zachary Williams 3875c1063c Merge pull request #21131 from cypress-io/zachw/merge-develop-10.0-4-19 2022-04-19 10:35:33 -05:00
Shawn Taylor 43289e7d1b feat(unify): launchpad header breadcrumbs and reusable tooltip component (#20648)
* display testing type in breadcrumb

* add component tests

* add e2e tests

* improve navigation

* prevent navigation while loading

* Truncate branch

* Create tooltip component

* Animation

* Replace SidebarNavigationRow tooltip

* Delete now-unused SidebarTooltip

* Replace SelectorPlaygroundTooltip

* Replace UnsupportedBrowserTooltip
2022-04-19 11:33:31 -04:00
Tyler Biethman 1ace3810fe Merge branch '10.0-release' into tbiethman/fix/UNIFY-1504-disable-browsers 2022-04-19 15:22:16 +00:00
Zachary Williams b2e37d8150 Merge remote-tracking branch 'origin' into zachw/merge-develop-10.0-4-19 2022-04-19 09:13:18 -05:00
Zach Bloomquist bc12c9da1f test: add windows-test-kitchensink job (#20847)
* test: add windows-test-kitchensink job

* run windows ci on this branch

* use test-binary-against-kitchensink-chrome

* windows-create-build-artifacts

* use working dir when cloning

* npm i in correct dir

* install chrome on windows for test-binary-against-repo

* parent dir

* bump kitchensink

to pull in https://github.com/cypress-io/cypress-example-kitchensink/pull/549

* fix cli type hoisting

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-19 22:43:11 +10:00
Mark Noonan b8d23dbfcb fix: aut centering and height calculation (#21019)
* fix aut centering and height calculation

* group similar imports together

* group similar imports together

* add tests for dragging and resizing

* add comments in test

* remove unused params - let store set default

* reorder call to useRunnerStyle

* simplify useRunnerStyle to just what gets used

* get width from store instead of composable

* fix extra pixel on left of screenshots

* avoid using margin to center during screenshot

* make sure run mode header is reactive to height changes also

* add missing ref

* update reference screenshots

* fix folder name

* Revert "fix folder name"

This reverts commit 85f1ab8592.

* fix folder name

* test uploading of screenshot jpgs to percy

* remove slash

* upload screenshots from latest run

* add readme

* avoid

* put back finalize command

* set reporter size again before end of test

* fix comment

* add fn to clarify what cy.contains('%)') is

* clean up based on PR feedback

* rename "remove positioning" component

* move store invocation inside function

* add comment

* use immediate watcher for AUT header height

* use new composable in run mode
2022-04-19 20:08:16 +10:00
Lachlan Miller 0a320d31a7 chore: fix tests that fail on windows (#21055)
* check if failing

* update timeouts

* move cy code inside it

* revert code

* fixing test

* update timeout

* update tests

* fix: handle race condition with windows and the cri client

* fix: handle race condition with windows and the cri client

* fix: handle race condition with windows and the cri client

* Refactor and unit tests fixes

* Further refactoring and error handling cleanup

* update test timeout

* Update timeout for spec subscription e2e test

* Fix issue with ssh keys in circle

* Apply suggestions from code review

Co-authored-by: Zach Bloomquist <git@chary.us>

* update circle.yml

* Apply suggestions from code review

Co-authored-by: Zach Bloomquist <git@chary.us>

* add comment and fix lint

* add guide for platform differences

* timeout

* Update circle.yml

* Update guides/remaining-platform-agnostic.md

Co-authored-by: Zach Bloomquist <git@chary.us>

* update docs and comments

* rename file

* Apply suggestions from code review

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

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-19 20:05:54 +10:00
Ryan Manuel 558d9215c0 fix: running a new test after already having run tests (#21087)
* fix: running a new test after already having run tests

* Blank commit

* Add test for scenario

* Refactor

* Further refactoring. Needs to be a watchEffect rather than watch

* Fix tests

* Fix tests

* Fix flake

* PR comments

* Fix flake with event manager and active spec

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
2022-04-19 19:49:17 +10:00
Zachary Williams 75c2d04344 fix: ct project setup framework keys for next and nuxt (#21116) 2022-04-19 13:12:18 +10:00
Zachary Williams 17fe5d9599 fix: remove MountReturn from scaffolded ct support file (#21119)
* fix: remove MountReturn from scaffolded ct support file

* fix test
2022-04-19 13:11:41 +10:00
Tyler Biethman 40ee82a7a1 Merge branch '10.0-release' into tbiethman/fix/UNIFY-1504-disable-browsers 2022-04-18 19:06:23 +00:00
Alejandro Estrada a2b5151e4d fix: do not scaffold fixtures if folder exist (#21078)
* fix: do not scaffold fixtures if folder exist

* Fix tests

* Run windows

* Rever windows run
2022-04-18 14:01:56 -05:00
Tyler Biethman b30400a95e Keys cannot be boolean 2022-04-18 13:45:13 -05:00
Tyler Biethman 7dcbd3fcb1 Tweaking some styles. Adding some tests. 2022-04-18 13:19:11 -05:00
Tyler Biethman 5a0c4f09b8 fix: Disabling browser dropdown from runner header when tests are running 2022-04-18 10:04:06 -05:00
Barthélémy Ledoux 026c300708 fix: make error on integration folder point to e2e (#20853)
* fix: make error on integration folder point to e2e

* fix: add context for testing type to the errors

* fix: pass testnigtype to errors

* add testingType where needed

* show setupNodeEvent when error

* fix some unit tests

* update snapshot

* update snapshot

* test: add test for stupNodeEvents

* fix: add name for config error

* fix: use distinct errors for root and e2e failures

* test: update 2 snapshots

* snapshot update again

* update snapshots again normally this time
2022-04-15 15:05:35 -05:00
Zach Bloomquist 79267ddc0f fix: revert "fix: types for Cypress.Commands.add (#20376)" (#21104) 2022-04-15 19:03:36 +00:00
David Munechika b0a6ad8c21 fix(unify): Update Cypress Dashboard Service Link in Login Modal (#21084) 2022-04-15 12:49:50 -04:00
github-actions[bot] a0ed4a08e9 chore: Update Chrome (stable) to 100.0.4896.127 and Chrome (beta) to 101.0.4951.34 (#21083)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2022-04-15 11:26:43 -05:00
Ahmed Tarek 92d94252ca fix: types for Cypress.Commands.add (#20376) (#20377)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-15 15:35:45 +00:00
Tim Griesser 22917ced03 chore: fix windows node_modules install step (#21098)
* chore: fix windows node_modules install
2022-04-14 22:59:43 -04:00
Jess 2050501202 fix: webpack integration tests for app w webpack-dev-server-fresh (#21093)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-04-14 17:59:02 -04:00
Tyler Biethman 991312a59b Merge pull request #21089 from cypress-io/tbiethman/merge-develop-with-electron-bump
chore: merging develop changes related to electron bump
2022-04-14 15:24:22 -05:00
Tyler Biethman 0452d18ac0 Merge branch '10.0-release' into tbiethman/merge-develop-with-electron-bump 2022-04-14 14:37:50 -05:00
Alejandro Estrada e7d79eea32 fix: move non spec files on migration (#21054)
* Add failing test

* Copy content after migration
2022-04-14 14:36:19 -05:00
Tyler Biethman 255d6706d7 Bumping electron version in root 2022-04-14 13:52:08 -05:00
Tyler Biethman bff55d6509 Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/merge-develop-with-electron-bump
# Conflicts:
#	packages/desktop-gui/cypress/integration/settings_spec.js
#	packages/electron/package.json
2022-04-14 13:47:48 -05:00
Blue F 8c52250be7 Merge pull request #21088 from cypress-io/develop-10.0-release
chore: Merge develop into 10.0-release
2022-04-14 11:44:03 -07:00
Tyler Biethman 71a18e4321 chore(deps): Bumping electron dependency to 15.5.1 (#21072)
* chore(deps): Bumping electron dependency to 15.5.1

* Updating Settings test that was producing flaky snapshots
2022-04-14 13:42:21 -05:00
Alejandro Estrada 7f69f94076 fix: resolves correctly specPattern (#21057)
* fix: resolves correctly specPattern

* Update test

* Update with feedback
2022-04-14 13:39:13 -05:00
Rachel b21ecfb1a0 feat: replace reconfigure button on settings page with link to config doc (#21077)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-14 11:11:04 -07:00