webdriverio / webdriverio/webdriverio

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

Open
#14,255 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug 🐛 help wanted
Dominant language
TypeScript
Stars
9.8k
Forks
2.7k
Avg merge
2d 13h
Merged PRs (30d)
69

Description

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Clone the linked table_charter repository, inspect wdio.conf.js, and run npm run test -- --chrome. Compare the Chrome and Firefox runs, starting with test/toggle-advanced-settings.test.js and the reported negative SVG height errors. Done means identifying a reproducible WebdriverIO or test failure and confirming the relevant test passes in Chrome.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.