Answer the question
In order to leave comments, you need to log in
How to include html page in unit test?
On the client, the angular.js framework.
For tests I use karma, phantom.js and mocha
On one of the pages a video is played using videojs, which is initialized by id.
When I run the test, I get the error 'TypeError: The element or ID supplied is not valid. (videojs)'
As I understand it, karma-ng-html2js-preprocessor can help to fix this error, but I couldn't configure this plugin.
Please tell me how to make videojs get id from markup.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question