As a Wikidata editor, I want to know when my input is faulty in order to correct it.
When adding a Lemma to a Lexeme where the text is only whitespace, the edit appears to save correctly (and afterwards the language code is shown in an unusual position, since the text takes up no vertical space), but in fact no edit is made, and when reloading the page the lemma is gone.
Add a lemma with the text “ ” and any valid language code to a lexeme (e.g. L123).
GIVEN an existing lexeme
WHEN I edit the lemmas
AND add a new one
AND set the new lemma’s text to some nonempty whitespace string
AND set its language code to a valid language code for which the lexeme has no lemma yet
AND try to save the edit
THEN the an error should be reported
AND the UI should stay in edit mode
- an error is reported
- no edit is made (like currently)
- Adding a completely empty lemma already results in an API error (though the error is not currently shown correctly – compare T265783: No error shown when trying to save lemma with invalid language code).