Skip to content

[Bug] Incomplete jasmine stack-trace in case of utam method caused a test failure #122

@tanujvishnoi

Description

@tanujvishnoi

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:
locator_

2:

waitfor

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Minor impaired functionality that may be addressed in the next releasebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions