Commit Graph

18508 Commits

Author SHA1 Message Date
Tyler Biethman 6d3b60acce chore: adding granular Firefox browser validation (#23164)
* chore: render FF 101 and 102 as unsupported on Windows

* Updating specs

* Little refactor

* Adding a few more specs

* Moving browsers to launcher

* Adding a few more specs

* Removing exports that no longer exist

* Few more tests

* Apply suggestions from code review for more specific warning message

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

* Update packages/launcher/lib/detect.ts

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

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-08-11 09:51:27 -05:00
Kukhyeon Heo 2d119ad46a chore: Intregrate runner packages. (#23028)
* chore: Intregrate runner packages.

* Remove unnecessary Studio react files.

* Remove unnecessary gif

* runner-shared to runner-ct.

* fix path.

* fix package.json

* Remove scss files from runner-ct

* Remove runner-ct

* Remove runner-shared and runner-ct comments.

* Feedback

* chore: reduce parallelism for reporter-componen-tests

* chore: reduce paralelleism

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-11 14:07:10 +10:00
Mark Noonan 26886c4ce4 docs: update stale links in README (#23262) 2022-08-11 09:09:18 +10:00
Emily Rohrbough 0129a80883 fix: cypress hang caused in run mode when test:before:run handler throws (#23226)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-10 14:53:05 -05:00
Zach Bloomquist 9bc3715c05 fix(proxy/prerequests): fix duplicate key behavior, fallthrough (#23227)
Co-authored-by: Blue F <blue@cypress.io>
2022-08-10 19:16:56 +00:00
Lachlan Miller 3e76ed0523 chore: add warning encouraging react users to update mount function (#23182)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-10 12:27:10 -05:00
Stokes Player f272c635c6 fix: hitting enter in the 'Create Blank Spec' dialog will create the spec (#23163)
* In the 'Create Blank Spec' dialog the input is now in a form,so  hitting "Enter" should submits the form which creates the blank spec.
Fixes #21815

* #21815 Handle invalid spec pattern

* improve test (#23205)

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-10 22:02:57 +10:00
rockindahizzy eab950bec0 fix(react18): unmount component with react18 API (#23204)
* fix(react18): unmount component with react18 API

* Add null check and explicit typing per code review

* update snapshots and make code more concise

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-10 21:50:28 +10:00
Mark Noonan 3d98f98136 fix: save spec filter term (#22755) 2022-08-09 12:44:35 -04:00
cypresschris 63b5a8394e chore: SEC-161 | SBOM creation git action (#23097)
* SEC-161 | SBOM creation git action

* SEC-161 | Added comments per PR comments

* SEC-161 | Cleaned up comments
2022-08-09 11:17:49 -05:00
Adam Stone 7ef6f972aa feat: Create spec from Vue component (#22898)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-09 11:50:27 -04:00
Matt Schile 453f53f070 chore: Updated UI styling for Cypress about:blank pages (#23095)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-09 10:21:15 -05:00
Jordan d201b37b3d feat: add template support, teardown & standalone (#23117)
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-08 09:38:52 -05:00
github-actions[bot] cdc12b9142 chore: Update Chrome (beta) to 105.0.5195.19 (#23135)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2022-08-08 10:18:56 +10:00
Lachlan Miller ef9df8d8bf chore: simplify error/warning management in data context (#23034)
* chore: remove unused prop

* remove duplicate error and warning abstraction

* remove incorrect warning clobber

* do not clear warning on set project

* remove concept of currentProjectData

* collapse errors and warnings into diagnostics key

* remove TODO [ci skip]

* simplify code

* remove unused code
2022-08-08 10:16:49 +10:00
Rachel 05479bf3b3 chore: create flaky test template II (#23143)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-05 11:35:39 -07:00
Eiríkur Fannar Torfason d65e2d2fab fix: Infinite recursion when identical intercept routes exist (#22940)
* Minimal fix, hacky repro

* Convert getRouteForRequest into a generator function

* Create separate test for reproducing the original issue

* Remove TODO, check .done property instead of .value

* Improve readability

Co-authored-by: Eiríkur Fannar Torfason <eirikur.torfason@gmail.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-08-05 12:59:15 -05:00
Rachel 1d4627039e chore: create flaky test template (#23102)
* chore: create flaky test template

* add title and labels

* Update .github/ISSUE_TEMPLATE/4-flaky-test.yml

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

* Update .github/ISSUE_TEMPLATE/4-flaky-test.yml

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

* tweaks

* update version

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-05 10:53:27 -07:00
Mark Noonan 29343e84c4 test: initial cypress-axe setup for e2e and CT (#22925)
* initial cypress-axe setup for e2e and CT

* extract axe setup, use isComponentTesting

* ensure CT sets isComponentTesting to percy command

* test flake fix from lachlan

* only run the a11y check in interactive mode

* add a little headline to the a11y log

* updates based on feedback
2022-08-05 08:27:24 +10:00
Blue F fe3d89896d fix: Don't install jest in circle ci job because of broken 3rd party deps (#23113) 2022-08-04 09:04:22 -07:00
Bill Glesias 3a78e1f570 chore: add experimentalModifyObstructiveThirdPartyCode documentation to settings page and experiments (#23088) 2022-08-04 10:39:31 -04:00
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