We use Handsontable in a hybrid AngularJS / Angular app that we test using Protractor. As far as I know we don’t use the available Angular wrapper for Handsontable but instead use it directly.
Typical actions we would like to do in a fast way:
- Expand all collapsed columns in the table
- Read value of cell (x,y)
- Read all values in row y
- Change the value in cell (x,y)
Currently we have two approaches to test Handsontable components:
- Using regular CSS selectors to find elements. This is pretty fast. But it only works if the table has no virtual scrolling, so that all elements are actually in the DOM.
- Using keyboard navigation (up, down, left, right). This also works with virtual scrolling, but it’s very slow.
Do you know any other approaches that can speed up tests especially for larger tables with virtual scrolling? Is there maybe some way to talk to the Handsontable API directly from the Protractor test to scroll / select a certain cell in a table that has virtual scrolling?
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/09/27/how-to-test-handsontable-with-virtual-scrolling-in-angular-app-using-protractor/
via @lzomedia #developer #freelance #web
No comments:
Post a Comment