habitica/test/api/v3/integration
Alys fb4d3e44d3 improve code and tests for banned words and slurs (#10211)
* remove removePunctuationFromString function from test code

It's not needed now that the test banned words don't contain underscores.

* prevent tests accidentally throwing messageGroupChatSpam

This commit makes the user for most tests have contributor tiers so
that the user can't trigger the messageGroupChatSpam error message
(for posting messages too quickly).

This is useful when some of the tests fail due to broken code
because that makes more messages be posted than expected. If the user
doesn't have tiers, the messageGroupChatSpam error message would be
triggered, which gives misleading information about the test failure.

* add tests for banned swear and slur words posted in mixed case

* allow banned word error message to show bad words in the same case the user typed them

* stop using randomly-chosen real banned words in tests

The test modified in this commit had been using real banned words,
which meant that those words were being displayed to the contributors
when the test failed.

NB the 'check all banned words are matched' test also uses the real
banned words but the test failure messages don't show the words.

* improve translatability of bannedWordUsed error message
2018-04-08 15:31:37 +02:00
..
challenges Fixed challenge count check (#10215) 2018-04-01 16:54:32 -05:00
chat improve code and tests for banned words and slurs (#10211) 2018-04-08 15:31:37 +02:00
content Upgrade tests tools and lint migrations and scripts (part 2) (#9998) 2018-02-17 18:11:24 +01:00
coupons Translator minor changes fixes #8917 (#9297) 2017-11-27 20:08:39 -06:00
dataexport fix: Fixing xml data export 500 error. (#10114) 2018-03-17 22:24:40 +01:00
debug Upgrade tests tools and lint migrations and scripts (part 2) (#9998) 2018-02-17 18:11:24 +01:00
emails Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
groups Added fix for chat revoke creation test (#10218) 2018-04-02 19:11:30 +02:00
hall Mods blocking (#8364) 2017-02-05 22:32:10 -07:00
members fix(test): add flags to expected public fields 2018-03-27 21:50:55 +00:00
models apiDoc: meta (#8167) 2017-01-13 14:06:46 -07:00
news Upgrade tests tools and lint migrations and scripts (part 2) (#9998) 2018-02-17 18:11:24 +01:00
notifications Notifications v2 and Bailey API (#9716) 2018-01-31 11:55:39 +01:00
payments Upgrade tests tools and lint migrations and scripts (part 2) (#9998) 2018-02-17 18:11:24 +01:00
qrcodes New client edit avatar (#8955) 2017-08-16 15:51:48 -06:00
quests Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
shops Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
status API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
tags fix: correct api tag tests to not rely on default tags 2016-09-07 12:55:07 -05:00
tasks Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
user No Ethereal Surge on Mages (#10121) 2018-03-31 13:34:39 +02:00
webhook Upgrade server deps (#10017) 2018-02-23 15:21:00 +01:00
world-state fix(test): extra curly 2018-03-20 21:56:55 +00:00
notFound.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00