From b5bea643ad24dff644b784df93a775defdd19a7e Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Wed, 3 Apr 2024 11:12:46 +0200 Subject: [PATCH] TASK: Cleanup HTML test output Instead of replacing the HTML with a JSON response, a clean html output without header and unnecessary linebreaks will improve the readability in error case a lot. Related: #12 --- .../Configuration/TypoScript/Rendering.typoscript | 9 ++++++++- .../Partials/FluidStyledContent/Media/Image.html | 11 ++++------- .../Private/Templates/FluidStyledContent/Image.html | 8 +++----- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Tests/Fixtures/base_example/Configuration/TypoScript/Rendering.typoscript b/Tests/Fixtures/base_example/Configuration/TypoScript/Rendering.typoscript index 57404ed..0ac066c 100644 --- a/Tests/Fixtures/base_example/Configuration/TypoScript/Rendering.typoscript +++ b/Tests/Fixtures/base_example/Configuration/TypoScript/Rendering.typoscript @@ -1,2 +1,9 @@ page = PAGE -page.10 < styles.content.get \ No newline at end of file +page { + 10 < styles.content.get + + config { + disableAllHeaderCode = 1 + admPanel = 0 + } +} diff --git a/Tests/Fixtures/base_example/Resources/Private/Partials/FluidStyledContent/Media/Image.html b/Tests/Fixtures/base_example/Resources/Private/Partials/FluidStyledContent/Media/Image.html index 5958224..a35ce5c 100644 --- a/Tests/Fixtures/base_example/Resources/Private/Partials/FluidStyledContent/Media/Image.html +++ b/Tests/Fixtures/base_example/Resources/Private/Partials/FluidStyledContent/Media/Image.html @@ -1,9 +1,6 @@ - - - - {size.breakpoint.cropVariant} {size.size} {size.breakpoint.mediaQuery} - - - + +{size.breakpoint.cropVariant} {size.size} {size.breakpoint.mediaQuery} + + diff --git a/Tests/Fixtures/base_example/Resources/Private/Templates/FluidStyledContent/Image.html b/Tests/Fixtures/base_example/Resources/Private/Templates/FluidStyledContent/Image.html index 23439a4..6302fb0 100644 --- a/Tests/Fixtures/base_example/Resources/Private/Templates/FluidStyledContent/Image.html +++ b/Tests/Fixtures/base_example/Resources/Private/Templates/FluidStyledContent/Image.html @@ -1,7 +1,5 @@ - - - - - + + +