From 78d7d9c788abbe8605839896086d448b8eb14854 Mon Sep 17 00:00:00 2001 From: "Hecht,Matthias (IT EDP) BIG-DE-B" Date: Tue, 11 Aug 2026 12:28:52 +0200 Subject: [PATCH 1/2] fix: TCP and TCR render root data property for steps test data if test data is null test steps for automated tests can have test data equals null this causes handlebars to consider the parent contexts leading it to use the data property from root --- templates/TCP.html.tmpl | 4 ++-- templates/TCR.html.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/TCP.html.tmpl b/templates/TCP.html.tmpl index 9a4f403..562bfce 100644 --- a/templates/TCP.html.tmpl +++ b/templates/TCP.html.tmpl @@ -196,7 +196,7 @@ {{orderId}} {{{step}}} - {{{data}}} + {{{this.data}}} {{{result}}} {{{actualResult}}} @@ -264,7 +264,7 @@ {{orderId}} {{{step}}} - {{{data}}} + {{{this.data}}} {{{result}}} {{{../actualResult}}} diff --git a/templates/TCR.html.tmpl b/templates/TCR.html.tmpl index 8350d1b..de7e7df 100644 --- a/templates/TCR.html.tmpl +++ b/templates/TCR.html.tmpl @@ -205,7 +205,7 @@ {{orderId}} {{{step}}} - {{{data}}} + {{{this.data}}} {{{result}}} {{{../actualResult}}} @@ -273,7 +273,7 @@ {{orderId}} {{{step}}} - {{{data}}} + {{{this.data}}} {{{result}}} {{{actualResult}}} From 14907e15d65e912454bac95fad097c60da264268 Mon Sep 17 00:00:00 2001 From: "Hecht,Matthias (IT EDP) BIG-DE-B" Date: Tue, 11 Aug 2026 14:19:51 +0200 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae1e846..7166957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased +- Fix empty test data in test step doing parent context traversal ([#166](https://github.com/opendevstack/ods-document-generation-templates/pull/166)) ## 1.2.14 - 2026-06-30