pissang opened a new pull request #11201: Enhance visual regression test 
URL: https://github.com/apache/incubator-echarts/pull/11201
 
 
   This is a pull request about enhance the visual regression test in 
https://github.com/apache/incubator-echarts/pull/11154
   
   ## Added features
   
   ### Recording UI interactions and replay when running tests
   
   Interactions include:
   + Mouse down/move/up
   + Select
   + Manual screenshot
   
   Interaction still needs to be done:
   + Mouse wheel
   Mouse wheel is used frequently in the zoom operation. But I can't find a 
good way in puppeteer to simulate mouse wheel.
   + Text input
   Text input is rarely uses in echarts tests.
   
   And I created a page to record the interactions.
   
   
![recorder](https://user-images.githubusercontent.com/841551/64552730-6e2dcc00-d36a-11e9-840e-c49ca7979a2c.jpg)
   
   I will write more about how to use this tool in the wiki. Currently I have 
done all the recording on the tests related to user interaction.
   
   ### Multithread
   
   Now it can be up 4x times faster when having 8 threads running all the tests 
rather than 1.
   
   ### Mock date.
   Date now are mocked to speed up the animation.
   
   ### UI improvement
   
   ## Still some TODOs
   
   + Still there some tests related to the `timer` are not running 
consistently. Like tests with data streaming, effectScatter, `setInteraval` 
update, etc.
   + Screenshots in puppeteer may cause tooltip disappear. Can't find the 
reason yet.
   + Record mouse wheel events.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to