webdriverio/webdriverio

[🐛 Bug]: Tests pass on Firefox, but fail on Chrome

Open

#14.255 geöffnet am 7. MÀrz 2025

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (6.029 Stars) (1.793 Forks)batch import
Bug 🐛help wanted

Beschreibung

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.11.0

Node.js Version

22.14.0

Mode

WDIO Testrunner

Which capabilities are you using?

What happened?

I use webdriverio to run tests for this library. The tests pass with firefox, but fail on chrome (locally and on gitlab ci). See the wdio config file here.

What is your expected behavior?

That the tests pass like with firefox...

How to reproduce the bug.

To reproduce the bug, you can fork the gitlab repo and then push a commit to trigger the ci pipeline.

To run the tests on your machine, you can clone the repo

git clone https://gitlab.com/urswilke/table_charter

then

cd table_charter

run

npm i

and then enter

npm run test -- --chrome

Relevant log output

[0-1]  Error:  Test failed due to following error(s):
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
  - chunk-3P4ERZQU.js?v=562c1f34 1822 Error: <rect> attribute height: A negative value is not valid. ("-25.7"): undefined
0-1 undefined Error undefined
[0-1] FAILED in chrome - file:///test/toggle-advanced-settings.test.js

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

Contributor Guide