From 4fd5d7a43ce65790442e76e567d072fe2b6ca351 Mon Sep 17 00:00:00 2001 From: mschfh <37435502+mschfh@users.noreply.github.com> Date: Wed, 11 Dec 2024 00:41:13 -0500 Subject: [PATCH] ci: Log markup on mismatch --- test/test.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.mjs b/test/test.mjs index edc5a12..178c61a 100644 --- a/test/test.mjs +++ b/test/test.mjs @@ -42,6 +42,10 @@ async function testPage (t, testCasePath, expectedHash, expectedScrollBlocking) : 'should detect notice' await t.test(cookieNoticeTestName, async (t) => { + if (markupHash !== expectedHash && r.markup) { + t.diagnostic(`Markup for ${testCasePath}:`) + t.diagnostic(r.markup) + } t.assert.strictEqual(markupHash, expectedHash, `expected hash "${expectedHash}" did not match markup "${markupHash}"`) })