Skip to content

fix: update not supported plugins errors #21169

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

Merged

Conversation

estrada9166
Copy link
Member

@estrada9166 estrada9166 commented Apr 21, 2022

User facing changelog

Some plugins are not supported in v-10, is for this reason that the error that is being thrown has been updated depending if we are able to identify that the reason is the invalid plugin

Before

image

After

image

Additional details

How has the user experience changed?

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 21, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Apr 21, 2022



Test summary

17899 0 217 0Flakiness 0


Run details

Project cypress
Status Passed
Commit f8d6ddf
Started Apr 27, 2022 8:22 PM
Ended Apr 27, 2022 8:47 PM
Duration 24:35 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


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

@estrada9166 estrada9166 marked this pull request as ready for review April 22, 2022 00:30
@estrada9166 estrada9166 requested review from a team as code owners April 22, 2022 00:30
@estrada9166 estrada9166 requested review from jennifer-shehane, chrisbreiding and lmiller1990 and removed request for a team and jennifer-shehane April 22, 2022 00:30
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

Definitely a big improvement. We still show the original error "glob pattern not found" but I'm guessing this is somewhere deep in driver and not practical to change.

Did we see if any other (official) plugins are broken by 10.x?

Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

I think it would be better if the error message were formatted like:

Cypress detected that the current version of @cypress/code-coverage is not supported. Update it to the latest version.

The following error was caught:

> glob pattern string required

Because this error occurred during a after all hook we are skipping all of the remaining tests.

@@ -987,6 +987,8 @@ const _runnerListeners = (_runner, Cypress, _emissions, getTestById, getTest, se
hookName = getHookName(runnable)
const test = getTest() || getTestFromHookOrFindTest(runnable)

const unsupportedPlugin = runnable.invocationDetails && runnable.invocationDetails.originalFile && runnable.err && runnable.err.message ? $errUtils.getUnsupportedPlugin(runnable.invocationDetails.originalFile, runnable.err.message) : null
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe pass the runnable to $errUtils.getUnsupportedPlugin and let it take care of this logic and return null if these properties aren't available?

@lmiller1990
Copy link
Contributor

Nice @estrada9166, for completion sake (and it it's not too difficult) can you add a screenshot of how the error looks? I think it'll be useful for historical context, if we ever look back, as well as for the final review and ✔️ 🙏

@lmiller1990
Copy link
Contributor

Alright got the double ✅ , let's ship it.

@lmiller1990 lmiller1990 merged commit d94c586 into 10.0-release Apr 28, 2022
@lmiller1990 lmiller1990 deleted the alejandro/fix/update-not-supported-plugins-error branch April 28, 2022 12:59
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