Commit Graph

16283 Commits

Author SHA1 Message Date
Barthélémy Ledoux 9a2e55071d feat(unify): removing prism and adding infrastructure for shiki (#18514)
* feat: use shikijs for highlighting code

* add line numbers

* fix Jess's remarks

* remove last instances of prism

* fix: remove unused prism packages

* fix broken build

* remove prism

* remnove prism one last time

* remove the last piece of prism in tests

* remove prism and refactor

* restore proper fe-shared test

* use windi to color shiki

* rename theme and create test

* cosmetic fixes

* avoid the jank

* fix image imports in typescript

* restore mistake

* make the shiki theme generator

* gitignore the shiki-heme generated

* add the shiki theme generation to yarn build

* make shiki theme look good

* last colors to update

* styling fixes

* styling fixes

* styling fixes

* styling fixes

* theme

* fix relative positioning

* Update .gitignore

* Update packages/frontend-shared/src/components/ShikiHighlight.vue

* remove conflicting copy button

* dont top level await

* add a readme for theme generation

* ignore generated theme

* fix integration test in launchpad

* fix other integration test

* bring back the cypress theme

* fixing public path issue

* make e2e work

* fix yarn dev (remove the double slash)

* review theme with ryan

* make copy on click optional

* adjust viewports

* move generation of theme before vite build

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-20 08:00:32 +10:00
Alejandro Estrada 395504c7af feat: handle GraphQL errors (#18494)
* Handle GraphQL errors

* Update mutations to use liveMutations

* Update mutations

* Handle retry error

* Refactor latestGQLOperation

* Update import

* Add exchange comment
2021-10-18 12:23:32 -05:00
Lachlan Miller 174fc698a5 fix(launchpad): correctly reset wizard history (#18521)
* correctly reset wizard history

* do not double close project

* await clearing of active project
2021-10-18 11:45:39 +10:00
Tim Griesser 3f32b68447 fix: fixes symlinking by only adding if they do not exist (#18513) 2021-10-15 15:50:29 -04:00
Lachlan Miller 463cc03ca1 fix(launchpad): fix bugs and update global mode component (#18465) 2021-10-15 12:27:23 -04:00
Zachary Williams aa339ef34e feat: expose generated spec content and file parts (#18481) 2021-10-15 12:25:37 -04:00
Mark Noonan ad3bb95a71 feat: (launchpad) add modal to display testing type differences (#18499)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-15 12:03:31 -04:00
Lachlan Miller d52a1137f1 fix: change symlinks to avoid conflict (#18507) 2021-10-16 00:59:30 +10:00
Tim Griesser bdfc4a7b80 feat: setting up e2e open mode testing framework (#18472) 2021-10-14 11:10:26 -04:00
Zachary Williams b7d8a60908 feat: expose story file parts (#18463)
* feat: expose story file parts

* remove action call within query

* add story connection, move storybook to project, address comments
2021-10-14 12:50:15 +10:00
Lachlan Miller 25c46a2738 Merge pull request #18466 from cypress-io/merge-develop-2020-10-13
chore: merge in develop to unified-desktop-gui
2021-10-13 18:51:57 +10:00
Lachlan Miller 0b98d669c3 fix conflicts 2021-10-13 15:45:27 +10:00
Lachlan Miller e82fb7632b fix conflicts 2021-10-13 15:45:16 +10:00
Lachlan Miller 61c8f6bb28 merged in develop 2021-10-13 15:43:37 +10:00
Zachary Williams 7d141dec70 feat: create a copy when selecting a pre-existing story (#18440)
* feat: create a copy when selecting a pre-existing story

* use async fs operation
2021-10-13 14:56:04 +10:00
Cesar 3e002bb798 feat: add configured state to TestingTypeCard (#18461)
* add configured state to TestingTypeCard

* remove unused style attribute

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-13 14:54:26 +10:00
Lachlan Miller 9ca177c4be feat(app): run e2e tests (#18448)
* update server

* add launchMode param

* update logic

* update types

* update gql

* basic WIP for e2e

* hot reload

* dead code

* try to conditionally launch existing runner

* types

* update server

* params

* append gql port

* override to default ot e2e runner on launchpad and app e2e tests

* do not set launchpad variable for e2e runs

* use window to get graphql port and correctly run e2e conditionally using CIRCLECI env. var
2021-10-13 12:13:15 +10:00
ElevateBart d9347fc592 fix: frontend-shared typo on windi config 2021-10-12 20:05:54 -05:00
Barthélémy Ledoux c653826980 feat: make the select language component (#18443)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-10-12 15:38:04 -04:00
Mark Noonan e5c3c8ecd7 feat: (launchpad) UNIFY-429 login happy path (#18439)
* setup initial login modal

* add some i18n to login modal

* show name in header after login

* wip login modal state

* get basic login flow working

* schema update

* add icon and handle hocus for login button

* add close icon to modal, improve styles

* add loading icon to auth button

* use env var to target profile link

* add browserOpened state to gql for auth

* fix type errors & add one style

* add intial tests for login flow

* round out happy path tests

* extrac avatar component from header bar

* lint fix

* remove console log

* formatting

* add gravatar

* test for "waiting" status

* cleanup

* remove unintended change

* improve keyboard behavior on auth modal

* update header test to match new focus behavior

* assign ctx before returning it

* formatting

* pairing with cesar

* add a query just for refetching browser status

* tweaks based on review

* Update packages/data-context/src/actions/AuthActions.ts

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

* fix issue from merging

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-13 01:39:27 +10:00
github-actions[bot] 4f38ffda0d chore: Update Chrome (stable) to 94.0.4606.81 (#18411)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2021-10-12 14:47:46 +00:00
Lachlan Miller 11d07d720b fix(app): only load specs for current testingType (#18431)
* update server

* add launchMode param

* update logic

* update types

* update gql

* basic WIP for e2e

* revert un-necessary changes

* do not rely on wizard for launchProject action

* move launchMode to app

* make specs field return based on activeTestingType

* update type

* types
2021-10-12 14:40:12 +10:00
Tim Griesser 7f6a64d789 chore: DX improvements in unify workflow (#18444) 2021-10-11 18:29:01 -04:00
Chris Breiding 7aac450fbb Merge branch 'develop' 2021-10-11 15:50:19 -04:00
Chris Breiding 02e769f9b1 release 8.6.0 v8.6.0 2021-10-11 15:49:34 -04:00
cbolgiano 7a4c59a12c fix: do not attempt to trim objects when printing to console (#18341) 2021-10-11 17:47:30 +00:00
ElevateBart 9a19ad81bd refactor: remove import defineProps warning 2021-10-11 11:18:05 -05:00
Tim Griesser d841e1331f refactor: Data context cleanup & IPC bindings for data push (#18357) 2021-10-11 12:13:41 -04:00
Lachlan Miller b07ccf8972 feat(app): persist current spec in data context, update runner workflow for demo (#18406)
* wip: save current spec on server in data context

* execute spec when clickd

* basic CT workflow

* share types

* style

* style

* fix types

* use id to identify current spec

* fix types
2021-10-11 12:34:58 +10:00
Jessica Sachs f7a7683af9 chore(unify): optimize deps automatically, clean up unused files (#18429) 2021-10-09 19:57:18 -04:00
Jessica Sachs d331d246c4 fixing stub types and tests (#18428) 2021-10-09 15:51:27 -04:00
Cesar c4e78af26e feat: expose project config to project nodes (#18424)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-10-09 15:22:21 -04:00
Jessica Sachs aaa1ef5587 feat(launchpad): Adding generic error screen (#18405) 2021-10-08 19:51:32 -04:00
David Munechika 1d08280f4a fix(driver): cy.pause() should not be ignored with cypress run --headed --no-exit (#18358) 2021-10-08 21:17:34 +00:00
Tim Griesser 0fede06681 Merge branch 'develop' into unified-desktop-gui
* develop: (33 commits)
  fix: remove .json check from require_async, prevent child_process spawn (#18416)
  percy snapshot the tooltip visually, prevent it from being hidden
  fix: `everyNthFrame` should only be applied for Chrome 89+ (#18392)
  docs: General updates to contributing guide (#18283)
  chore: Update Chrome (beta) to 95.0.4638.40 (#18389)
  chore: use circleci timings split for e2e tests (#18367)
  fix: fixed title (#18370)
  chore(deps): update dependency electron to v14 🌟 (#18384)
  chore(server): share client route (#18215)
  fix: Prevent Cypress from crashing when argument parsing "spec: {}" (#18312)
  chore: update husky dev dependency to v7 (#18345)
  feat: add defineConfig function to help type config (#18302)
  chore: Update Chrome (stable) to 94.0.4606.71 (#18324)
  feat: allow to use TypeScript in the config file (#18300)
  allow select to be called with empty array (#18329)
  fix(vite-dev-server): windows `supportFile` + preserve optimize entries (#18286)
  chore: fix semantic-release dry run (#18332)
  fix(driver): improve status_code_flags_invalid error message (#18316)
  chore(deps): update dependency electron to v13.5.0 🌟 (#18318)
  chore: Update Chrome (stable) to 94.0.4606.61 and Chrome (beta) to 95.0.4638.32 (#18229)
  ...
2021-10-08 14:55:31 -04:00
Blue F ad4bfd2522 Merge pull request #18399 from cypress-io/issue-17329-unified-cli-options-e2e-components
feat: Add --e2e and --component CLI options
2021-10-08 11:36:39 -07:00
Zachary Williams 745b3ac451 feat: index.html configurability and storybook support (#18242) 2021-10-08 13:16:30 -05:00
Tim Griesser 32464f3b5b fix: remove .json check from require_async, prevent child_process spawn (#18416) 2021-10-08 14:15:27 -04:00
Brian Mann c18b5e6d71 percy snapshot the tooltip visually, prevent it from being hidden 2021-10-08 14:14:59 -04:00
Tim Griesser 837977f902 fix: failing tests from #18372 (#18414) 2021-10-08 10:41:05 -04:00
David Munechika 9265669a7e fix: everyNthFrame should only be applied for Chrome 89+ (#18392)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-08 10:28:14 -04:00
Lachlan Miller a8b43eec78 feat(app): render spec list, command log, iframe (#18372)
* wip

* wip

* wip

* pre-bundle deps

* wip

* wip: spec

* clear iframe

* wip: it kind of works

* wip, docs

* wip

* update runner API

* wip

* remove comments

* do not render header

* revert some stuff

* remove test

* update tests to work with react 17

* types

* wip

* revert react deps

* move code around

* add back hash change code

* lint

* comment

* update readme

* remove commet

* revert yarn lock

* remove unused file

* Delete HelloWorld1.spec.tsx

* Delete HelloWorld2.spec.tsx

* update types

* fix ui

* fix bugs

* fix test

* remove dead code

* more dead code

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-10-08 14:29:00 +10:00
Cesar 66100832e5 fix: drag and drop to be correct directory (#18400)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-10-07 18:29:58 -07:00
Tim Griesser bda7e5eec6 refactor: Add GitDataSource, FileDataSource, toast for errors (#18385)
* refactor: Add GitDataSource, FileDataSource, toast for errors

* Fix

* fix

* Fix: use frontend-shared for common optimizeDeps

* schema/type fixes

* add debug for circle job

* add debug for circle job

* Attempting to debug CI flake

* Fix types

* Attempt to fix

* Revert "Attempt to fix"

This reverts commit 12a8db455a.

* Just use more parallelization?

* See if this fixes it

* remove debug

* Force browser relaunch?

* use internal ENV var
2021-10-07 20:47:02 -04:00
Jennifer Shehane 98ecdd5879 docs: General updates to contributing guide (#18283)
Co-authored-by: David Munechika <david@cypress.io>
2021-10-07 13:40:55 -05:00
BlueWinds e7d6e6db82 Add shorter --ct alias for --component 2021-10-07 10:25:57 -07:00
BlueWinds e01d3acfe8 Add --e2e and --component CLI options 2021-10-07 10:25:46 -07:00
github-actions[bot] c223e16e83 chore: Update Chrome (beta) to 95.0.4638.40 (#18389)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
2021-10-07 11:31:52 -04:00
Zach Bloomquist b3aae8e1ca chore: use circleci timings split for e2e tests (#18367) 2021-10-07 15:25:51 +00:00
0xflotus e9188669da fix: fixed title (#18370) 2021-10-07 09:31:16 -05:00