-
Notifications
You must be signed in to change notification settings - Fork 2
Trophies in storybook #55
Comments
Storybook is more for UI tests and not unit tests. You can already find the trophies page in storybook. The hextechLord example is easy to implement, but what about more complex trophies where we use the timeline? But there is adownside with unit tests which fetches the matches. Tests runners takes more time and it is required that the api is online. But I think the advantages are stronger. |
summary of what we spoke about yesterday idea use-case possible future extensions
|
There is a new issue that emerged from this: #71 |
This issue is related to #54
The Problem
When creating new trophies, it would be great to have a simple way to check, if the new trophy can be achieved or if it is throwing some error. It would be nice to have it in the storybook.
The Idea
Add a few sample matches to TrophyHunter and create a new story for each trophy. In each story the extendMatchResults code will be called and after that individually the important data for that trophy will be shown.
example
For example for the trophy hextechLord (earn 15000 gold), the data on a test with three matches could look like this:
data = [ { goldEarned: 12345, achieved: no }, { goldEarned: 23456, achieved: yes}, { goldEarned: 14999, achieved: no }].
The text was updated successfully, but these errors were encountered: