Open DavidMarquezF opened 2 years ago
Hi,
Good to hear that I'm not the only one having these problems.
I recently added a proposal for updating docs on how to contribute https://github.com/apexcharts/apexcharts.js/pull/3951/files#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055R102
There, I assumed that the screenshot tests might fail because of differences between OS versions and browser versions. This assumption is based on such an experience in one of my projects, where we introduced screenshot tests and immediately had this problem, that small differences between developer machines would produce slightly different images.
As a solution, I had an idea, that screenshot snapshots could be updated before working on contribution so that they can be later used to trace the impact of code changes in the visible result. However, even after running e2e:update, I still get these errors :/ and I have no idea how to fix it.
If you would have any suggestions on how to update these docs, I will welcome it.
Description
I encountered some issues when trying to perform the e2e tests.
First of all, I was getting the following error:
I was able to fix it by using:
In theory puppeteer should be running this script by default, does this happen to anybody else?
Moreover, when e2e tests are working, they do not pass. I supposed they should pass independently of the machine where they are ran. Do they pass for anyone else?
Steps to Reproduce
Expected Behavior
Work out of the box and pass all the tests
Actual Behavior
Doesn't work out of the box and doesn't pass all the tests.
Screenshots
Some tests do not pass but some tests even crash: