stable
Clone or download
Part of story #18337 markdown replace text How to test: Before the test, create an artifact with a Text field saved in Text format. Add a comment in Text format. Run the test in the following places: - When you create a new artifact in Text fields - When you edit an existing artifact in Text fields and new follow-up comment - When you edit an existing follow-up comment - When you Mass-change artifacts and add a new follow-up comment - When you open an existing artifact in the Modal v2 (Cardwall) in Text fields In all these cases, try the following: - When you edit the artifact in Text format, the "Text" format is still available. You can switch formats and switch back to "Text" as long as you don't submit / edit the comment. - If you change the format to another than "Text" and submit / edit, you can no longer change back to "Text". - When you create a new artifact or edit a Text field or comment in "HTML" or "Markdown" format, you can no longer choose the "Text" format. Change-Id: I6834407528d7e95a50a23065881e1f4da9d27602
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/scripts/artifact/edition/edit-follow-up-comment-helpers.test.ts | +20 | −13 | Go to diff View file |
M | plugins/tracker/scripts/artifact/edition/edit-follow-up-comment-helpers.ts | +2 | −3 | Go to diff View file |
M | plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.test.ts | +9 | −4 | Go to diff View file |
M | plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/rich-text-editor/src/format-selector/editor-area/EditorAreaRenderer.test.ts | +28 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/rich-text-editor/src/format-selector/editor-area/EditorAreaRenderer.ts | +4 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/rich-text-editor/src/format-selector/editor-area/EditorAreaState.test.ts | +23 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/rich-text-editor/src/format-selector/editor-area/EditorAreaState.ts | +10 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/rich-text-editor/src/format-selector/editor-area/EditorAreaStateInterface.ts | +1 | −0 | Go to diff View file |