From c13e60586baf992505960c7de3ead7d794a330ac Mon Sep 17 00:00:00 2001 From: Henning Noeth Date: Fri, 13 Dec 2024 10:18:13 +0100 Subject: [PATCH] test: exist: tobago-header/tobago-footer --- .../src/main/webapp/script/tobago-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js b/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js index ece78b9e93..1be6d4f88e 100644 --- a/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js +++ b/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js @@ -95,4 +95,12 @@ describe("general", function () { expect(result.indexOf("???")).toBeLessThanOrEqual(-1, "There must no '???' on the site."); }); + + it("If there is a tobago-header it must be a tobago-footer", function () { + const header = querySelectorFn("tobago-page > form > tobago-header")(); + const footer = querySelectorFn("tobago-page > form > tobago-footer")(); + const headerExist = header != null; + const footerExist = footer != null; + expect(headerExist).toBe(footerExist); + }); });