Skip to content

Conversation

ZachJW34
Copy link
Contributor

@ZachJW34 ZachJW34 commented Dec 7, 2021

User facing changelog

Script errors originating from @cypress/webpack-preprocessor are now shown in the runner

Additional details

The old runner had special handling of script errors that are not caught during the loading of runnable scripts. It would overlay the AUT with the error detected from the script:error event rather than showing the error in the command log.

This PR restores that functionality by listening to those events and overlaying an error page if detected.

How has the user experience changed?

Old Runner:
Screen Shot 2021-12-07 at 1 30 31 PM

New Runner Before:
Screen Shot 2021-12-07 at 1 33 51 PM

New Runner After:
Screen Shot 2021-12-07 at 2 14 21 PM

Video:

Screen.Recording.2021-12-07.at.2.16.51.PM.mov

PR Tasks

  • Have tests been added/updated?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 7, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Dec 7, 2021



Test summary

18146 1 202 0Flakiness 1


Run details

Project cypress
Status Failed
Commit b06ed41
Started Dec 7, 2021 10:09 PM
Ended Dec 7, 2021 10:20 PM
Duration 11:37 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

cypress/integration/commands/net_stubbing_spec.ts Failed
1 network stubbing > intercepting request > should delay the same amount on every response

Flakiness

cypress/integration/commands/net_stubbing_spec.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Contributor

@elevatebart elevatebart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to test it out.
Code looks good!


</script>

<style scoped></style>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this empty style from the component

Suggested change
<style scoped></style>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@lmiller1990 lmiller1990 merged commit 6054000 into 10.0-release Dec 7, 2021
@lmiller1990 lmiller1990 deleted the fix-no-error-e2e branch December 7, 2021 22:53
tgriesser added a commit that referenced this pull request Dec 9, 2021
* 10.0-release: (53 commits)
  refactor: makeLegacyContext -> getCtx (#19308)
  fix: various Nav Bar fixes (#19283)
  build: add patch package as a dev dependency for fe-shared
  chore: hoist is - fun with cached dependencies
  build: hoist is hard
  build: better hoisting strategy
  chore: remove unused testing preferences (#19301)
  fix: remove windows and mac workflow from branch
  fix: show script errors when spec file fails to process (#19298)
  revert: remove change about node version 17
  feat: open config file in user's editor (#19276)
  feat(unify): scale the AUT (#19297)
  build: remove testing of desktop-gui assets
  build: run window & mac CI in this branch
  build: more fixes
  build: remove toycode mdi from launchpad
  rename patch because of dev dep
  build: fix  merge issue in packages generation
  chore: update sass for windows compatibility
  fix: Do not crash when a ill formed URL request is proxied (#19274)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants