From f24c6fb741ae4df8c4b107e350a80c58c3b253a0 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk <13419300+svanherk@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:40:39 -0400 Subject: [PATCH 1/2] Match old width for fullscreen tests --- src/server/wtr-config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/wtr-config.js b/src/server/wtr-config.js index 0c794e88..24c70fce 100644 --- a/src/server/wtr-config.js +++ b/src/server/wtr-config.js @@ -94,7 +94,6 @@ export class WTRConfig { font-size: 0.95rem; font-weight: 400; line-height: 1.4rem; - margin: 0; padding: 30px; } From a7b821bd9150bb27ce043868b4a8bc8b0df3fce7 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk <13419300+svanherk@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:41:17 -0400 Subject: [PATCH 2/2] Fix error when running with no goldens generated --- src/server/visual-diff-plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/visual-diff-plugin.js b/src/server/visual-diff-plugin.js index c333595c..24467a49 100644 --- a/src/server/visual-diff-plugin.js +++ b/src/server/visual-diff-plugin.js @@ -36,7 +36,8 @@ async function clearAllDirs(updateGoldens, vdiffPath) { if (updateGoldens) { await rm(vdiffPath, { force: true, recursive: true }); } else { - await clearDiffPaths(vdiffPath); + const exists = await checkFileExists(vdiffPath); + if (exists) await clearDiffPaths(vdiffPath); } }