From 462e18926904c7d7475208664c3a5df961f64b47 Mon Sep 17 00:00:00 2001 From: Alexandre Capt Date: Wed, 13 Sep 2023 15:33:49 +0200 Subject: [PATCH] chore: updateSectionsStatus tests --- test/block-loader/loadBlocks.test.html | 2 +- .../updateSectionsStatus.test.html | 93 +++++++++++++++++++ 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 test/block-loader/updateSectionsStatus.test.html diff --git a/test/block-loader/loadBlocks.test.html b/test/block-loader/loadBlocks.test.html index e2e7895..c053780 100644 --- a/test/block-loader/loadBlocks.test.html +++ b/test/block-loader/loadBlocks.test.html @@ -24,7 +24,7 @@ it('loadBlocks - loads all blocks', async () => { window.hlx.codeBasePath = '/test/fixtures'; - await loadBlocks(document.body); + await loadBlocks(document.querySelector('main')); const block1 = document.querySelector('.block1'); expect(block1.classList.contains('block1')).to.be.true; diff --git a/test/block-loader/updateSectionsStatus.test.html b/test/block-loader/updateSectionsStatus.test.html new file mode 100644 index 0000000..3efc839 --- /dev/null +++ b/test/block-loader/updateSectionsStatus.test.html @@ -0,0 +1,93 @@ + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + \ No newline at end of file