WMDE-leszek updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
- foobar-x-Q1996

TBA: describe the behaviour visible by user in a BDD style (no error message shown, but not storing invalid data)= Scenarios =

== Invalid language code for lemma ==
GIVEN I am on the lexeme page
AND I click edit button of the lexeme header
AND I click add lemma button
WHEN I enter lemma text
AND I enter invalid language code
AND I click save
AND I reload the page
THEN I see the lemma with invalid language code has not been saved

== Invalid language code for representation ==
GIVEN I am on the page of a lexeme with a form
AND I click edit button of the form
AND I click add representation button
WHEN I enter representation text
AND I enter invalid language code
AND I click save
AND I reload the page
THEN I see the representation with invalid language code has not been saved



Code pointer: the entered lang code is checked using validator provided by LexemeValidatorFactory::getLanguageCodeValidator

TASK DETAIL
https://phabricator.wikimedia.org/T191504

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WMDE-leszek
Cc: WMDE-leszek, Aklapper, Lydia_Pintscher, Lahi, Gq86, Cinemantique, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to