surveyjs / surveyjs_react_quickstart

SurveyJS + React Quickstart Template
http://surveyjs.io
141 stars 80 forks source link

Running test out of the box results in error #7

Open Jahvy opened 6 years ago

Jahvy commented 6 years ago

Running the test after cloning the repo resulted in the error below. I came across a similar issue in my own React implementation for surveyjs, and I was wondering if someone has any advice on how to tackle this.

screen shot 2018-09-12 at 12 26 44 am
tsv2013 commented 6 years ago

Please check the source code of the findSheet function:

https://github.com/surveyjs/surveyjs/blob/master/src/stylesmanager.ts#L350-L357

It operates with real DOM elements. That's why I think it fails in the unit tests.