testsigmahq / testsigma

A powerful open source test automation platform for Web Apps, Mobile Apps, and APIs. Build stable and reliable end-to-end tests @ DevOps speed.
https://testsigma.com
Apache License 2.0
897 stars 187 forks source link

[TOS-1044] fix: Prerequisite Step number displayed as NaN #346

Closed Raksha-testsigma closed 1 year ago

Raksha-testsigma commented 1 year ago

Actual Test case results in page step prerequisite field displaying as NaN

Expected it should show the prerequisite test step number

Fix:
De-serialized the order_id property in the front end by alias-ing with position in the step details model. Removed the annotation from the backend in Step Details DTO, as that fix was not working. Retained the removal of +1 to display the correct step order of the pre-requisite, which otherwise displays the position+1 of the pre-requisite step.