Add native cookie consent and move hero intro above CTA
- Restore CookieConsent banner behavior with the new dependency - Reposition the right-panel intro above the Projekt anfragen button - Add focused tests and update build metadata
This commit is contained in:
14
tests/cookie-banner-info.test.mjs
Normal file
14
tests/cookie-banner-info.test.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
const sourcePath = new URL("../src/lib/cookie-banner-info.ts", import.meta.url);
|
||||
|
||||
test("cookie banner uses the native CookieConsent close behavior", async () => {
|
||||
const source = await readFile(sourcePath, "utf8");
|
||||
|
||||
assert.match(source, /from "vanilla-cookieconsent"/);
|
||||
assert.match(source, /acceptNecessaryBtn: "Verstanden"/);
|
||||
assert.doesNotMatch(source, /motion\/mini/);
|
||||
assert.doesNotMatch(source, /cookie-info-fab/);
|
||||
});
|
||||
Reference in New Issue
Block a user