Skip to content

[🐛 Bug]: failSpecWithNoExpectations leads to "Unknown error." #10480

@foerstj-dv

Description

@foerstj-dv

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8

Node.js Version

19

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

When running wdio tests, every test case fails with "Unknown error." when you have failSpecWithNoExpectations:true in your jasmineOpts.

What is your expected behavior?

Tests pass (except those that shouldn't)

How to reproduce the bug.

  • New Angular app
  • Add wdio via schematic
    • local machine, jasmine, typescript, example tests & page objects, spec & allure, wait-for, chromedriver
    • You might need to install @wdio/cli yourself in addition
    • You might need to fix the spec path in wdio.conf.ts
  • Run wdio tests -> it works
  • Add failSpecWithNoExpectations:true to jasmineOpts
  • Run wdio tests -> "Unknown error."

Relevant log output

Unknown error.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions