habitica/test/api/v3/integration
Jalansh c0bf2cffea
Casting Chilling Frost and Stealth skill again will not be processed and return an error instead. Fixes #12361. (#12404)
* Added logic for a repeating Chilling Frost skill. Added test case for redundant chilling frost skill cast. Added comments for the logic of repeating Stealth skill because of an error.

* Added logic for a repeating Stealth skill. Avoiding MP reduction still pending because of console error. Test cases pending.

* Completed the logic for a repeated Stealth skill. Added repeated frost skill cast check in common. Removed exclusive test. Test cases are pending.

* Added test case for Stealth skill recast. Fixed lint errors. Fixed a flaw in if statement which led to test case failure.

* Fixed lint errors in test case.

* Added a common JSON entry for skil recasts in three files. Other files remaining. Added Chilling Frost recast check in common code. Modified test cases.

* Added spellDisabled condition in client code.

* Reverted JSON messages for three languages. Added spellAlreadyCast attribute to JSON file in locales/en. Made changes for showing appropriate message in client code.

* Added an import for throwing BadRequest in common code. Modified test case accordingly.

* Update website/common/script/content/spells.js

Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>

* Added target and req attributes in cast() method arguments.

* Changed common code test case because of increased function parameters. Moved chilling frost test casse to common tests instead of server tests.

* Changed the test case format in common tests.

* Added a missing done statement.

* Fixed a minor error which led to failing test case. Removed the exclusive test which led to lint error.

* Fixed lint errors.

* Added a class named 'disabled' for the frontend change.

* fix(skills): style cleanup

* fix(skills): unfix

Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
Co-authored-by: Sabe Jones <sabrecat@gmail.com>
2020-08-09 18:25:59 +02:00
..
challenges feat(members): allow to fetch up to 60 members at all (#12400) 2020-07-19 18:25:46 +02:00
chat fix(string utils): do not escape possible regular expressions 2020-04-28 16:47:52 +02:00
content fix test lint 2019-10-08 20:45:38 +02:00
coupons fix test lint 2019-10-08 20:45:38 +02:00
dataexport fix test lint 2019-10-08 20:45:38 +02:00
debug fix test lint 2019-10-08 20:45:38 +02:00
emails fix test lint 2019-10-08 20:45:38 +02:00
groups Teams UI Redesign and A11y Updates (#12142) 2020-07-25 07:37:10 -05:00
hall API: Adding secret.text to the user-schema (#12121) 2020-05-02 19:59:05 +02:00
inbox fix test lint 2019-10-08 20:45:38 +02:00
members API: Adding secret.text to the user-schema (#12121) 2020-05-02 19:59:05 +02:00
models fix test lint 2019-10-08 20:45:38 +02:00
news API v4 (WIP) (#10453) 2018-06-18 14:40:25 +02:00
notifications fix test lint 2019-10-08 20:45:38 +02:00
payments fix(test): comment unreliable error message 2020-03-07 13:31:31 -06:00
qrcodes fix test lint 2019-10-08 20:45:38 +02:00
quests Handle simultaneous quest accept/reject (#12090) 2020-04-17 22:57:31 +02:00
shops fix test lint 2019-10-08 20:45:38 +02:00
status fix test lint 2019-10-08 20:45:38 +02:00
tags fix test lint 2019-10-08 20:45:38 +02:00
tasks fix(monthly tests): update test to use future date 2020-08-02 16:29:26 +02:00
user Casting Chilling Frost and Stealth skill again will not be processed and return an error instead. Fixes #12361. (#12404) 2020-08-09 18:25:59 +02:00
webhook Fix bug where updated webhook options failed to save (fixes #12336) (#12342) 2020-07-03 16:48:45 +02:00
world-state fix test lint 2019-10-08 20:45:38 +02:00
notFound.test.js fix test lint 2019-10-08 20:45:38 +02:00