Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove asset size warnings and enable nuxt e2e tests #21074

Merged
merged 2 commits into from Apr 14, 2022

Conversation

ZachJW34
Copy link
Contributor

@ZachJW34 ZachJW34 commented Apr 13, 2022

User facing changelog

Remove asset size warnings from nuxt webpack-dev-server

Additional details

The default nuxt webpack config has webpack.performance configured which causes an overlay in the browser if a bundle is too large. This is unnecessary for development/testing purposes so the performance object is now removed from the webpack configuration.

I enabled the tests for nuxt now that cypress/vue2 has been merged. Had to add a webpack alias to the system test to get around a module resolution issue that is specific to system-tests. The system-tests for nuxt are slower than the rest as it takes longer for webpack to recompile the files so I bumped the defaultCommandTimeout.

How has the user experience changed?

Two tests, first showing the unwanted overlay and second after the removal.

Screen.Recording.2022-04-13.at.4.08.30.PM.mov

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?
  • Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 13, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Apr 13, 2022



Test summary

17842 2 217 0Flakiness 2


Run details

Project cypress
Status Failed
Commit 93f1e2e
Started Apr 13, 2022 11:11 PM
Ended Apr 13, 2022 11:25 PM
Duration 14:10 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

net_stubbing.cy.ts Failed
1 network stubbing > intercepting response > can throttle a proxy response using res.setThrottle
actions/selectFile.cy.js Failed
1 ... > throws when any path does not exist

Flakiness

net_stubbing.cy.ts Flakiness
1 network stubbing > intercepting request > can delay and throttle a StaticResponse
xhr.cy.js Flakiness
1 ... > no status when request isnt forced 404

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

@lmiller1990 lmiller1990 merged commit 6dae45e into 10.0-release Apr 14, 2022
@lmiller1990 lmiller1990 deleted the zachw/nuxt-asset-size-warning branch April 14, 2022 01:30
tgriesser added a commit that referenced this pull request Apr 14, 2022
* 10.0-release: (25 commits)
  fix: stop running spec when switching specs (#21038)
  fix: remove asset size warnings and enable nuxt e2e tests (#21074)
  feat: swap the #__cy_root id selector to become data-cy-root for component mounting (#20951)
  fix: Doc changes around vue2 (#21066)
  feat: Add vue2 package from npm/vue/v2 branch (#21026)
  skip failing test
  fix: add possible frameworks to object API config (#21056)
  fix snapshot spacing
  fix system test
  fix snapshot
  update snapshots
  rename spec files
  rename files
  update snapshots
  release 9.5.4 [skip ci]
  fix(regression): cy.pause() should not be ignored with `cypress run --headed --no-exit` (#20877)
  fix: add missing Cypress.Commands.addAll() types (#20894)
  chore: Don't store video and screenshot artifacts for runs (#20979)
  chore: Update Chrome (beta) to 101.0.4951.26 (#20957)
  chore: remove parallelism from test-binary-against-repo jobs (#21004)
  ...
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.

None yet

4 participants