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
2017-10-12 16:44:28 +02:00
2018-03-15 19:59:36 +01:00
2018-04-01 02:59:54 +00:00
2018-03-15 19:59:36 +01:00
2018-03-15 19:59:36 +01:00
2018-02-14 12:05:53 +01:00
2018-03-15 19:59:36 +01:00
2016-12-28 09:33:24 +01:00
2016-09-07 08:44:57 -05:00
2016-12-26 16:04:36 +01:00
2017-10-12 16:44:28 +02:00
2018-03-15 19:59:36 +01:00
2018-03-15 19:59:36 +01:00
2018-03-15 19:59:36 +01:00
2016-06-21 06:42:20 -05:00
2018-04-05 21:09:10 +00:00
2018-04-05 21:09:10 +00:00
2016-05-23 13:58:31 +02:00
2015-07-31 18:05:10 +10:00

Habitica Build Status Code Climate Coverage Status Bountysource Open Source Helpers

Greenkeeper badge

Habitica is an open source habit building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor.

We need more programmers! Your assistance will be greatly appreciated.

For an introduction to the technologies used and how the software is organized, refer to Guidance for Blacksmiths.

To set up a local install of Habitica for development and testing on various platforms, see Setting up Habitica Locally.

S
Description
A habit tracker app which treats your goals like a Role Playing Game.
Readme 1.9 GiB
Languages
JavaScript 51.7%
Vue 23.8%
CSS 23.7%
SCSS 0.7%