-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Actual behavior
Hey everyone, we're working with utam-webdriver-jasmine flavors along with TS and during spec run we have noticed the stack trace get truncated if a test failed because of web-element issue [utam waitfor- method or element is not in scope],
in-short we got a complete stack trace in case of assertion failure like which spec line and file, but other failures wont populate complete stack-traces & the error source,
- Unable to compile a Page Object
- Invalid generated code
- Runtime error
What is your expected behavior?
during any failure, the complete stack-trace should be visible indicating the spec line which actually caused this issue
Steps to reproduce
1: Create a TS-Jasmine-utam-wdio based project
2: Create few utam files with wait for methods that will fail or some non-existing locators
3: Draft spec file and use utam file and called specific methods or access locators stated in step2
4: Run the spec and observe the stack traces
Environment
- Node.js: v16.18.1
- OS: Windows
- Browser: Chrome
- Browser Version: Latest
- Type script
-
- typescript: "^4.8.3",
- Jasmine
-
- @wdio/jasmine-framework: "^7.24.1",
Additional context
Refer to attached truncated stack-traces
1:

2: