webdriverio / webdriverio/webdriverio
[🐛 Bug]: Tests pass on Firefox, but fail on Chrome
Nobody has claimed this yet.
- 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?
- I have 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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