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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃毇 Bug] Poor stack trace upon test failure #1226

Open
gpsaraiva opened this issue Apr 1, 2024 · 0 comments
Open

[馃毇 Bug] Poor stack trace upon test failure #1226

gpsaraiva opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@gpsaraiva
Copy link

Describe the bug

The stack trace when a test fails is very poor. I would like to see the line where the test failed.
Currently I can only see this:

NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":".checkMark"}
(Session info: chrome=114.0.5735.289)
at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:513:13)
at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:740:17)

I have tried to require the mocha-clean module (which appears to fix this issue) on my .mocharc.json file with no success.
Any ideas on how to get this fixed ?
Thank you

Steps to reproduce

Just force a a test to file with, for instance, an unexisting css locator

Logs

no logs

Operating System

macOs

Visual Studio Code

1.83.0

vscode-extension-tester

6.0.0

NodeJS

20.11.1

npm

10.2.4

@gpsaraiva gpsaraiva added bug Something isn't working new-issue New issue which was not discussed yet labels Apr 1, 2024
@djelinek djelinek removed the new-issue New issue which was not discussed yet label Apr 23, 2024
@djelinek djelinek added this to the BACKLOG milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants