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

Exceptions in global 'after' are not shown correctly in UI #3904

Closed
danielschwartz85 opened this issue Apr 7, 2019 · 2 comments
Closed

Exceptions in global 'after' are not shown correctly in UI #3904

danielschwartz85 opened this issue Apr 7, 2019 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@danielschwartz85
Copy link

Hi
When throwing exceptions in a global scoped 'after' the error is not shown correctly in the UI.
Couldn't find any issue describing this so sorry if it's a duplicate.

(could be related to #2296 or
/ and #3348)

then
timeout

Desired behavior:

Show the correct error messages (For us Applitools - as a plugin is to show users their failed visual tests info)

Steps to reproduce: (app code and test code)

  1. Just throwing in after() call is shown in UI as THEN function(){}
  2. Throwing in a Promise in a cy.then() in an after() call is shown in UI as THEN {timeout: 0} function(){}

Versions

Cypress 3.1.5
Ubuntu 18.04.1

Tnx.

@jennifer-shehane
Copy link
Member

Thank you for providing a reproducible example! We're currently working on revamping many of the error messages, so this may be something we can work into that issue. #3762

@kuceb
Copy link
Contributor

kuceb commented May 4, 2020

duplicate of #2296

@kuceb kuceb closed this as completed May 4, 2020
@kuceb kuceb added type: duplicate This issue or pull request already exists and removed pkg/driver This is due to an issue in the packages/driver directory stage: needs investigating Someone from Cypress needs to look at this type: bug type: error message labels May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants