Skip to content

[2pts] Conditons - Forbidden Words

As a general administrator, I can create a new condition to forbid some words and allow all the others.A condition should have:

  • A name
  • A list of forbidden words (textarea, overflow-y scroll)

Validation

  • Given I create the condition forbidden Words with the name Is Commercial and the forbidden Words 99.9%
  • Then the text Look for a solution that solves 50% of your problems? does not trigger the condition

  • Given I create the condition forbidden Words with the name Is Commercial and the forbidden Words 99.9%
  • Then the text Look for a solution that solves 99.9% of your problems? triggers the condition

Tasks

  • Add the condition to the condition registry
  • Display the condition in the condition table
  • i18n for all the labels
  • admin form validation: check format. <word><new line>
  • admin form: get lines (words)
  • command: foreach words, check if match with text.
Edited by Renato