Description of the issue
Currently, when a user selects an existing section to translate, they are given two options -inside the "Compare contents" step:
- Expand the existing section with the newly translated content (default option).
- Publish the newly translated section as a new, independent section.
However, due to a bug, the system always publishes the translated section as a new, independent section, regardless of the user's selection. This inconsistency can confuse users who expected their translation to be merged with the existing section.
Additionally, this limitation prevents proper support for translating the lead section, since expanding an existing section is not functioning as intended.
Expected Behavior
If the user selects the expand option (default), the newly translated content should be appended to the existing section instead of creating a new one.
If the user selects the publish as a new section option, it should behave as it currently does.
Screeshots of the two options in "Compare contents" step:
Expand the existing section with the newly translated content
Publish the newly translated section as a new, independent section
Derived Requirement
Ensure that the Section Translation feature properly supports the Expand existing section functionality in the “Compare contents” step.
When users select Expand the existing section with the newly translated content (default option), the translated content should be appended to the corresponding existing section instead of publishing as a new, independent section.
If the user selects Publish the newly translated section as a new, independent section, the system should behave as it currently does and create a separate section.
This functionality should also enable proper support for translating and expanding the lead section.
Test Steps
Test Case 1: Verify translated content is appended to an existing section
- Open the Section Translation tool on Test wiki.
- Select an article that has an existing section (e.g., “Life and Career”).
- In the “Compare contents” step, choose Expand the existing section with the newly translated content (default option).
- Complete the translation and publish it.
- ✅❓❌⬜ AC1: Confirm that the translated content is appended to the existing “History” section instead of being published as a new one.
Test Case 2: Verify translated content publishes as a new section when that option is selected
- Open the Section Translation tool.
- Select the same or another article with an existing section.
- In the “Compare contents” step, choose Publish the newly translated section as a new, independent section.
- Publish the translation.
- ✅❓❌⬜ AC2: Confirm that the system creates a new section and does not merge content with the existing section.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T388503#11396876 |
| 2 | ✅ | T388503#11396876 |




