Commit Graph

5826 Commits

Author SHA1 Message Date
Chris Breiding 1b29ce74aa feat: Enable requiring cy.origin dependencies with require() and import() (#24294) 2022-10-18 16:52:57 -04:00
GitStart b20ec54f68 feat: Hide projectId section when project is not connected to dashboard (#23823)
* chore: Removes projectId section when projectId is not available

* chore: Resolve suggested changes

* chore: Remove redundant assertion from projectId

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-10-18 13:48:22 -04:00
Emily Rohrbough fa4a19c1a3 feat: enhance test error UI (#24266) 2022-10-18 08:15:14 -05:00
GitStart f73aef54b0 fix: clean up inconsistencies in UI between sentence case and title case (#23681)
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-10-14 12:54:59 -07:00
Krzysztof Gabara 582ab6ce53 fix: Restart server on blockHost configuration change (#24257)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-10-14 13:12:56 -04:00
GitStart fa2134572d fix: The record key is obstructed in v10 (#24125)
* fix: resolves obstructed record key

* fix: use findByDisplayValue for tests rather than test ID

* fix: update other failing tests

* fix: resolves ui regression

* chore: resolves suggested semantic updates

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-10-14 12:05:36 -04:00
Emily Rohrbough c48b1e0145 fix: browser-skipped tests are correctly recorded to the dashboard (#24217) 2022-10-14 09:54:24 -05:00
Sam Goodger 96dfa0c8b3 fix: update mocha-junit-reporter in server package (#24218)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-10-13 17:48:13 -04:00
Zach Bloomquist 688b7ea33e feat(webkit): fix multidomain driver tests in WebKit (#23442)
* Initial async changes

* Small fixes and test updates.

* updating tests

* Fixes for cookie login tests

* remove the onlys

* Most tests passing

* Fix driver tests?

* fix firefox test?

* fix unit tests

* fix tests??

* a better check

* fix integration tests

* minor cleanup

* Comment out tyler fix for 10.0 origin issue

* also fix integration tests

* remove fixmes

* Adding Retries for cookie actions. May break other error tests.

* Address (some) PR comments

* factor console logging out of run.ts

* fix print-run

* minimize diff

* chore(server): convert browsers/index to typescript

* fix tests

* update stubbed tests

* convert electron.js to .ts

* Suggestions from code review

* Clean up new type errors

* electron.connectToExisting can be sync

* more type errors for the type god

* Suggestions from code review

* refactor: move more of video capture into browser automations

* unit tests

* refactor: move videoCapture to browsers

* fix snapshots

* update to warn about cross origin command AUT in assertions

* Fix type errors

* fix multi-spec videos?

* webkit video recording works!

* webkit system tests

* skip system-tests that won't be fixed in this PR

~60 tests skipped out of ~99:
* ~6 skipped due to needing multidomain support
* ~8 skipped due to missing before:browser:launch support
* ~22 skipped due to broken stack traces

* fix single-tab mode

* cleanup/api renames

* fix more tests

* minimize diff, fix ff

* fix unit tests

* fix tests

* cleanup

* Move document.cookie patch to injection

* enable ci job

* fix up/add request events to webkit automation

* update undefined message

* doesn't need an underscore

* Adding iframe patching.

* forward errors prior to attaching

* Add error message when using visit to visit a cross origin site with the onLoad or onBeforeLoad options.

* Attempt to fix test errors.

* more fixes, but not all

* use the origin policy

* Fix types

* more fixes

* consider chromeWebSecurity when checking if you can communicate with the AUT

* firefox

* prevent hangs if before unload happens after on load.

* Fix some ToDos

* code cleanup

* remove quotes

* Code review changes

* more cr changes

* fix tests possibly

* Updating cy.origin websocket for webkit connection error

* for realz this time

* temp fix for before:unload/load issue

* roll back change

* Fix some flake

* temporarily comment out autWindow.Error patch

* updating cookies to match develop

* update circle.yml

* commenting out driver-integration-tests-webkit-experimentalSessionAndOrigin

* revert cookie test change

* revert cross origin change

* Fix clear cookie problem

* Try it again

* test cy.origin in webkit

* Skip origin tests when running in webkit

* missed one

* attempt to revert web_security changes

* enable sessions on webkit

* maybe this fixes system tests??

* Update web_security_spec.js

* Update web_security_spec.js

* file cleanup

* Unify socket creation logic

* Address PR Comments

Co-authored-by: mjhenkes <mjhenkes@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2022-10-12 16:21:58 -05:00
Adam Stone b7213c9bf0 chore: bump timeout for Angular webpack-dev-server tests (#24231) 2022-10-12 17:01:49 -04:00
Emily Rohrbough 74ef8843f6 fix(reporter): attempt styles (#24134) 2022-10-12 13:15:04 -05:00
Kukhyeon Heo 0bb705c185 chore: Migrate react Highlight component to Vue (#23973)
* add test.

* Add Highlight vue component + remove react component.

* Remove floating-ui dependency.

* fix test failure

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-10-11 14:41:54 -04:00
Zachary Williams 53eef4fbd7 fix: angular and nuxt ct tests now fail on uncaught exceptions (#24122) 2022-10-11 10:21:32 -04:00
Matt Schile 0e62696a0e fix: add support for checking multiple hosts when connecting to CDP (#24155) 2022-10-10 21:45:48 -06:00
Stokes Player 0c42a7e73b fix: include cypress version in header to anon-collect endpoint (#24158) 2022-10-07 15:16:22 -04:00
Mark Noonan eaa1de7ff7 feat: add logic for "cypress-triggered events" (#24101)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-10-06 13:38:50 -04:00
Emily Rohrbough 70f4945430 fix(reporter): fix nested command styles (#24132) 2022-10-05 11:45:53 -05:00
Bill Glesias 695dd275bc feat: same origin spec bridges (#23885)
* chore: enforce strict origin spec bridges

chore: refactor spec bridges to strictly enforce same origin

fix: wrap fullCrossOrigin injection around feature flag inside buffered response

* fix: do NOT set the initial cypress cookie inside the spec bridge as it is sending unecessary cookies

* chore: simplify the finding cypress in the injection code

* chore: change order in which callback fn is declared

* chore: add spec bridge performance issue to validation tests
2022-10-04 18:26:04 -04:00
Vilhelm Melkstam a8e4867358 fix: clamp command output to 50 lines (#24089)
Co-authored-by: astone123 <adams@cypress.io>
2022-10-04 16:45:04 -04:00
Stokes Player e02a0b9989 fix: Passing cohort through to SelectCloudProjectModal (#24071) 2022-10-04 14:28:34 -04:00
Emily Rohrbough 4870b7f1bb chore(server): organization of cloud-specific files (#24028) 2022-10-04 10:49:02 -05:00
Matt Schile d9c5e57672 chore: set rejectUnauthorized for api calls (#24087) 2022-10-04 08:34:48 -06:00
Bill Glesias 3208af6b29 Merge branch 'develop' into feature/simulated-top-cookie-handling 2022-10-03 10:06:16 -04:00
Bill Glesias a41b104880 chore: simulated cookie fixes 1 (#24060)
* chore: add documentation to CDP,electron, and web extension for selected resource types

* chore: change nomenclature of X-Cypress-Request to X-Cypress-Is-XHR-Or-Fetch

* chore: remove no longer applicable comment for socket code

* chore: add comments to the resourceType/credential manager
2022-10-03 10:05:34 -04:00
Emily Rohrbough 06663ac244 fix scenario when command fails in validates callback 2022-09-30 15:15:45 -05:00
Emily Rohrbough b26544cb73 Merge branch 'develop' into sessions-handle-setup-err 2022-09-30 12:51:13 -05:00
Matt Schile f9ef9600fb chore(deps): upgrade electron to v21.0.0 (#23881) 2022-09-30 08:35:24 -06:00
Emily Rohrbough 2a0fc472e6 Merge branch 'develop' into sessions-handle-setup-err 2022-09-30 08:42:33 -05:00
Bill Glesias 18a3c9a421 Merge branch 'develop' into feature/simulated-top-cookie-handling 2022-09-30 08:56:48 -04:00
Lachlan Miller 2e363d98a1 fix: do not double handle errors in component testing (#23957)
* fix: do not double catch errors and unhanded exceptions in component testing

* add test fixtures

* revert whitespace

* snaps

* better types

* improve types

* do not double capture errors

* add test

* adding tests

* updates

* revert

* update

* types

* give up on types, it is impossible

* snaps

* fix

* remove link
2022-09-30 09:28:52 +10:00
Emily Rohrbough a438382117 Merge branch 'develop' into sessions-handle-setup-err 2022-09-29 16:05:58 -05:00
Mike Plummer e4c71d6b14 fix: Angular14 timeout on Windows (#24045) 2022-09-29 14:20:04 -05:00
Blue F a451d17c66 fix: Assertions properly remain pending when paired with certain commands (#24021) 2022-09-29 09:38:55 -07:00
Emily Rohrbough 5beb61d7d8 Merge branch 'develop' into sessions-handle-setup-err 2022-09-29 10:03:06 -05:00
GitStart c813ec8aca feat: show tooltips indicating the source of config values (#23470)
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Ben M <benm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-29 10:49:14 -04:00
Matt Henkes a1c2250055 Merge branch 'develop' into sessions-handle-setup-err 2022-09-29 00:22:53 -05:00
Blue F f399994e9f chore: Revert "feat: _addQuery() (#23665)" (#24022)
This reverts commit 41fc535dca.
2022-09-28 12:18:47 -07:00
Blue F 41fc535dca feat: _addQuery() (#23665)
* feat: Commands.addSelector, and migrate .get() to be a selector

* Fix for failed tests

* Last test fix

* More test fixes

* Self review changes

* Remove the concept of prevSubject from selectors entirely

* Rename addSelector to addQuery

* Quick fix for last commit

* Fix TS

* Fix merge from develop

* Add types and other review updates

* Increase timeout to try fixing flakiness

* Rename addQuery to _addQuery

* Fix typo in previous commit

* Fix TS

* Include AUT assertion in cy.get()

* Fix for previous commit

* Review feedback

* Minor test improvement

* Swifter failure on sizzle syntax error

* Better solution for refetching current subject in verifyUpcomingAssertions

* Command IDs now include their chainerId
2022-09-28 09:01:39 -07:00
Adam Stone 10f2961c17 feat: add RecordRunModal component (#23953)
* feat: add RecordRunModal component

* feat: add missing assertion

* feat: import using @packages syntax

* feat: remove unnecessary null check

* feat: move record key gql logic to separate component

* feat: add another test case

* feat: refactor RunsEmpty component

* feat: update test

* feat: remove unused query

* feat: use translation strings in tests

* feat: assert that command shows in RecordRunModal

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-28 14:09:07 +10:00
Bill Glesias e6d8f45f48 Merge branch 'develop' into feature/simulated-top-cookie-handling 2022-09-27 17:12:14 -04:00
Bill Glesias 11ed9a622b fix: misc review comments (#23971)
* chore: refactor credential manager into its own utility class and add basic unit tests

* chore: add firefox comments into the cookie jar
2022-09-27 17:11:30 -04:00
Emily Rohrbough c99e09b98b Merge branch 'develop' into sessions-handle-setup-err 2022-09-27 12:50:15 -05:00
Ryan Duffy a75d3ec81f fix: Detect user-configured browsers (#23446)
* fix: Detect user-configured browsers

* move user browser lookup into BrowserDataSource

* refactor out common browser dedupe logic

* simplify allBrowsers

* resolve non-machine browsers

* pr feedback

* added tests

* fix test

* longer timeout

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-09-27 12:16:48 +10:00
Emily Rohrbough 63b1a9560d chore: delete ui-components package (#23950)
* chore: delete ui-components package

* add dependency to frontend-shared that was previously provided by ui-components

* whoops

* fix deps
2022-09-27 10:19:10 +10:00
Mike Plummer bf590eba3f feat: CT stack traces (#23916)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-26 17:31:46 -05:00
Stokes Player 3aad5a03e9 fix: Add missing header and use correct endpoint host (#23982) 2022-09-26 18:26:33 -04:00
Stokes Player 88ecb1e949 fix: update way that cohorts are cached to remove duplicate key (#23985) 2022-09-26 16:58:57 -04:00
Adam Stone 26a71fe019 chore: Use the same dashboard project ID for all Cypress monorepo packages (#23981) 2022-09-26 14:00:45 -04:00
Emily Rohrbough 842be2e200 fix: correctly fail session when setup func has failing command or assertion 2022-09-26 11:52:37 -05:00
Emily Rohrbough 1d472268a8 types 2022-09-23 15:55:48 -05:00