Commit Graph

16733 Commits

Author SHA1 Message Date
Blue F
6d10a7faff feat: cy.selectFile() (#19332)
* feat: cy.attachFile with passed-in contents (#18825)
* feat: attachFile string shorthands (#19045)
* feat: Add drag-n-drop support (#19213)
* Remove cypress-file-upload
2021-12-22 09:03:27 -08:00
Tim Griesser
4626f7481c feat: ProjectLifecycleManager & general launchpad cleanup (#19347)
See #19347 for full summary

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: Jess <jess@jessicasachs.io>
2021-12-21 21:28:44 -05:00
Jess
67c42fccee chore: apply ux feedback (#19286)
Co-authored-by: Mark Noonan <oddlyaromatic@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2021-12-21 20:12:05 -05:00
Barthélémy Ledoux
edccfc933d feat: add favicon to the app to avoid 404 (#19416)
* feat: add a favicon to the app

* make it work on M1

* chore: add comment in plugin configuration

* update sharp
2021-12-22 10:52:05 +10:00
Tyler Biethman
b441950fcf test: Adding Choose a Browser E2E Tests (#19268)
* Adding e2e tests for Choose a Browser page

* Adding test for browser launch

* Additional validation for browser launch

* Add own todo

* Prevent browser from opening during launch test

* Cleaning up tests a bit, fixing bug in warning dismissals temporarily

* Updating tests to follow new setup APIs

* Adding test case and aligning with spreadsheet.

* Updating tests with data-cy usage

* Fighting types a bit

* Cleaning up some TS warnings. Applying some PR feedback.

* Fixing test that was using wrong test id attr

* Fixing tests

* accessibility fix

* Updating tests with PR recommendations and accessibility tweaks

* update getter

* Adding test simulating Electron injection workflow

* Updating no browsers test case

* Fixing tests after merge

Co-authored-by: Mark Noonan <mark@cypress.io>
2021-12-21 17:06:47 -06:00
Zachary Williams
85417f3b98 feat: route and scroll to settings (#19312) 2021-12-21 15:13:10 -06:00
Zachary Williams
fdd56d23a0 fix: various UI fixes from review session (#19418) 2021-12-21 13:19:51 -06:00
Barthélémy Ledoux
427b1679f6 fix: remove copy button when not available (#19417) 2021-12-21 10:01:23 -06:00
Tyler Biethman
7b41115260 test: Adding tests for Page Top Nav workflows (#19375)
* WIP

* Adding browser tests

* Adding versions tests

* Adding docs tests

* Don't need to launch with firefox here

* Updated existing tests to use data-cy

* Adding test command for browser setup. Updating tests with PR feedback

* Adding basic login tests

* Fixing tests in merge

* More PR feedback

* Updating tests with data-testid usage

* Fixing test selector
2021-12-21 09:26:23 -06:00
Cesar
341e54b32c fix: fuzzy sort accuracy (#19420)
* wip

* fix fuzzy sort

* fix types

* fix types

* fix tests

* fix last character not being highlighted

* delete fuzzySortSpecs.ts

* fix types

* resolve conflicts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-12-21 16:25:22 +10:00
Lachlan Miller
a33b4004d3 Merge pull request #19433 from cypress-io/2021-12-21-merge-develop-10.0-release
chore: merge in develop to 10.0-release
2021-12-21 12:39:37 +10:00
Lachlan Miller
4772331953 resolve conflicts 2021-12-21 09:50:21 +10:00
Lachlan Miller
999ffd99dd merge in origin 2021-12-21 09:49:57 +10:00
Barthélémy Ledoux
9058e2f23b build: fix dev process on windows (#19401)
* build: fix dev process on windows

* build: reuse "spawned" function

* Revert "build: reuse "spawned" function"

This reverts commit 67289c281a.

* use winSpawn for spawned too

* refactor: rename uSpawn function
2021-12-21 08:58:26 +10:00
Kukhyeon Heo
325094556d fix: cy.contains() ignores <style> and <script> without removing them. (#19424)
* fix

* Merge tests.

* fix

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>

* kick off build again

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2021-12-20 14:34:12 -08:00
Jennifer Shehane
593d4b83a5 chore: Fix the broken codeowners automation (#19431) 2021-12-20 15:44:12 -06:00
Ian VanSchooten
420a9be6ab chore: add types for Cypress.session.clearAllSavedSessions (#19412)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-20 15:23:45 -06:00
Blue F
b6c4ba144c fix: No unnecessary snapshotting (#19311)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2021-12-20 13:21:53 -08:00
Kukhyeon Heo
01f0261d3a chore: Remove pkg/driver @ts-nocheck part 1 (#19353)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2021-12-20 11:40:34 -05:00
Pascal Gafner
b3d114e086 fix: add CYPRESS_VERIFY_TIMEOUT param and a test for it (#19282)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-20 11:36:38 -05:00
Ryan Manuel
0499f7b0b1 chore: Allow running cypress within cypress (#19399)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-12-20 10:15:32 -06:00
ElevateBart
3c6952300d chore: adapt stub ts to new gql url values 2021-12-18 15:37:51 -06:00
Zachary Williams
cf2c932f1b fix: don't rerender specs list on unaffected gql updates (#19400) 2021-12-17 17:17:05 -07:00
Barthélémy Ledoux
75328b6261 feat: adapt app to cloud project graphql errors (#19384)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-12-17 14:43:19 -06:00
j14t
4a2aa8afb8 chore(deps): update dependency normalize-url to 4.5.1, 5.3.1 [security] (#19370)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-17 12:19:05 -06:00
Jessica Sachs
1cc3053f2b chore: cleaning up the cypress.config.ts string property escaping 2021-12-17 12:57:17 -05:00
Emily Rohrbough
aea8b2b788 chore: trigger downstream project tests for windows workflow (#19381) 2021-12-17 11:01:20 -06:00
Mark Noonan
057902e847 fix(unify): css tweaks for AUT (#19393) 2021-12-17 10:43:35 -05:00
Emily Rohrbough
8e23567d5b fix(cy.intercept): allow fixtures to define null encoding when used in static response (#19379) 2021-12-16 16:44:01 -06:00
Lachlan Miller
816dac8a95 refactor: inject websocket to event manager (#19396)
* update

* inject web socket

* yarn lock

* fix types

* update test code
2021-12-17 03:25:47 +10:00
Barthélémy Ledoux
88cd53b452 Merge branch 'master' into develop 2021-12-16 17:03:33 +00:00
Barthélémy Ledoux
4826175040 fix: check the port is avail on all local hosts (#19402) 2021-12-16 11:02:45 -06:00
github-actions[bot]
874353ce16 chore: Update Chrome (beta) to 97.0.4692.56 (#19388)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2021-12-16 11:49:46 -05:00
Alex Beardsley
1e72b3936d fix: Update electron-packager to support development on M1 Macs (#19366) 2021-12-16 11:37:19 -05:00
Ryan Manuel
57f6a742db test(unify): Spec File Item ct tests (#19334) 2021-12-16 10:31:55 -06:00
Barthélémy Ledoux
af63cfa4c5 refactor: remove icons from app (#19397) 2021-12-16 10:06:57 -06:00
Lachlan Miller
438c29c77c fix(app): correctly teardown reporter and event manager (#19372)
* added terminals for packages/app

* create new runner-ct entrypoint; exclude all unnecessary files to prevent double event-manager import

* rename Promise -> Bluebird

* add conditional if-def loader to swap out main for main-lite based on process.env.CI

* avoid re-render and ensure reporter is torn down

* clean up reporter correctly

* update docs and consolodate teardown

* update yarn lock

* await teardown, update comments

Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2021-12-16 12:29:06 +10:00
David Munechika
17f32bcff0 test(unify): Left Nav E2E Tests (#19346)
* add initial left nav tests

* fix hover tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-12-16 11:24:51 +10:00
Mark Noonan
2c7a1a21b0 feat(unify): spec-runner pane resizing (#19303)
* try out vue-draggable-resizeable

* wip

* wip

* css tweaks

* preserve state of the report and spec list widths

* wip based on vueUse useDraggable

* wip 2 panels

* avoid pointer events getting swallowed by the iframe

* correctly hide drag handles when screenshotting

* independent resizable panel component

* switch off of vueuse draggable

* stabilize UI when dragged past max

* simplify resizeable panels logic

* wip begin using new component in spec-runner

* start wiring up local prefs + aut scale

* manage open/closed state of specs list

* save state in preferences

* tweaks

* improve layout of reporter header when narrow

* fix broken test

* fix aut width and aut header width

* tweaks defaults, expand test coverage

* improve test organization

* more test, make sure non-aut panels go away during screenshots

* cleanup

* simplify type

* fix typo

* update types, fix styling bug

* fix type

* move spacing

* chore: types for unify-628 (#19374)

* remove extra div

* move defaults into contants

* fix confusing constant usage

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2021-12-16 10:24:11 +10:00
Tim Griesser
eda638e83b Merge branch '10.0-release' of github.com:cypress-io/cypress into 10.0-release
* '10.0-release' of github.com:cypress-io/cypress:
  build: remove syncRemoteGraphQL from codegen
2021-12-15 15:57:16 -05:00
ElevateBart
0231109bcf build: remove syncRemoteGraphQL from codegen 2021-12-15 14:54:42 -06:00
Tim Griesser
4c32cad4e7 chore: fix incorrect type from merge 2021-12-15 15:38:18 -05:00
github-actions[bot]
ec84f660be chore: Update Chrome (stable) to 96.0.4664.110 and Chrome (beta) to 97.0.4692.45 (#18996)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2021-12-15 13:56:29 -06:00
Tim Griesser
223d5fa7e6 Merge branch 'develop' into 10.0-release
* develop:
  chore(deps): update dependency ssri to 6.0.2 [security] (#19351)
  chore: Fix server unit tests running on mac by using actual tmp dir (#19350)
  fix: Add more precise types to Cypress.Commands (#19003)
  fix: Do not screenshot or trigger the failed event when tests are skipped (#19331)
  fix (#19262)
  fix: throw when writing to 'read only' properties of `config` (#18896)
  fix: close chrome when closing electron (#19322)
  fix: disable automatic request retries (#19161)
  chore: refactor cy funcs (#19080)
  chore(deps): update dependency @ffmpeg-installer/ffmpeg to v1.1.0 🌟 (#19300)
2021-12-15 14:00:36 -05:00
Barthélémy Ledoux
dc88b2812e build: allow work with local dashboard (#19376) 2021-12-15 12:24:41 -06:00
Jennifer Shehane
d0038fdb8e chore: Test example recipes against chrome (#19362) 2021-12-15 09:06:23 -06:00
Blue F
39641e59df test(unify): Settings e2e tests (#19324) 2021-12-14 16:50:12 -06:00
j14t
52dfe1ef91 chore(deps): update dependency ssri to 6.0.2 [security] (#19351)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-14 12:19:04 -06:00
Zachary Williams
b302739dd5 fix: spec from story generation, add deps for install (#19352) 2021-12-14 10:36:02 -06:00
Chris Breiding
b8cc027ed2 chore: Fix server unit tests running on mac by using actual tmp dir (#19350) 2021-12-14 09:26:45 -05:00