Open gajus opened 9 years ago
There is an open bounty to complete this task. https://www.bountysource.com/issues/26763180-write-test-cases-that-cover-the-use-of-the-api
Hello @gajus , I am interested in solving this issue. Can you let me know where to get started from?
What browser targets would you like to see the tests pass in? Will the usual stable of latest Chrome, Safari, Firefox, IE11, and Edge be sufficient?
@H3Chief PhantomJS (ie. Chrome) would be enough.
great. Thanks!
Does still need to get done?
@eimfach Absolutely.
The existing tests were testing youtube-player
implementation rather than react-youtube-player
. A test case should mock youtube-player
and focus only on ensuring that the appropriate methods are invoked via the API.
react-youtube-player
has a simple API:./example/
demonstrates how to control areact-youtube-player
component using property values that are controlled using user input.However, testing how properties affect YouTube player state is not as straightforward. Tests need to account for things such as state change when video stops playing. How state of the YouTube player affects how properties are interpreted, etc.
The nature of the component requires that it is tested using a real browser (using a test runner such as Karma).
The scope of this issue is to write a test scope and implement it.