Step formatting breaks in test cases after editing a step in the "Steps" section
Describe the bug When a step is edited in the "Steps" section, the formatting of that step is broken in all related test cases. Specifically, the space between the step number and the step text disappears, which breaks the ordered list structure in the test cases.
To Reproduce
- Go to the "Steps" section.
- Edit any existing step.
- Open a test case that includes the edited step.
Expected behavior The step is updated and keeps the correct formatting in test cases.
Impact In all test cases where the edited step is used, you have to open each one and manually add a space to keep the correct step formatting.
Tested, but the issue is still present with some examples of markdown @trumenov, please review below:
Step formatting is broken after editing steps using the 'Edit Steps' button.
reproduced with classical test description:
### Steps
- Step1
* Expected result: Step1.1
* Expected result: Step1.1
- Step2
*Expected:* ячсячс2
ячсячс3
ячсячс4
- Step3
Save description, go to test view page, press edit steps - and see strange edit modal:
What to do with it?
- Ask strict format for steps from users.
- Disable opening "Steps edit modal" if format have some errors in the Steps block.
- Create autoconverting function into this strict format.
don't allow nested lists
@TetianaKhomenko I think the restriction contradicts the recommendations in the documentation https://docs.testomat.io/project/tests/#steps-with-expected-results-as-nested-list
Tested, and have an issue with editing steps (without nested lists)
STR:
- Copy an example and paste it to the test
- Click 'Edit Steps' button
- Click 'Save' button without any changes
- Pay attention to the 'broken' steps after it
https://github.com/user-attachments/assets/feba8fa2-2322-43e7-ac64-124197497145
Tested and verified as fixed. Nested lists are allowed.
https://github.com/user-attachments/assets/183db93f-54e0-41f8-8e4d-e3eb1ced0c4a