diff --git a/craft/src/utils/html-export.head-parity.test.ts b/craft/src/utils/html-export.head-parity.test.ts index 1e2ec4a..f41faa2 100644 --- a/craft/src/utils/html-export.head-parity.test.ts +++ b/craft/src/utils/html-export.head-parity.test.ts @@ -20,11 +20,16 @@ const PINNED_HEAD: Record = { D_body_font_and_blank_tokens: "\n\n\n \n \n Services\n \n \n \n \n \n \n \n", }; +PINNED_HEAD.E_brand_swatches = "\n\n\n \n \n Brand\n \n \n \n \n \n \n \n"; +PINNED_HEAD.F_swatches_no_brand = PINNED_HEAD.A_defaults; + const PINNED_BODY: Record = { A_defaults: "
", B_full: "
", C_unknown_font: "
", D_body_font_and_blank_tokens: "
", + E_brand_swatches: "
", + F_swatches_no_brand: "
", }; @@ -77,6 +82,30 @@ const CASES: Record = { design: merged({ accentColor: '', textColor: ' #111111 ' }), }, }, + // Brand colours (design.swatches): same inputs as the WHP script's E / F cases. + E_brand_swatches: { + state: root({}), + opts: { + title: 'Brand', includeFonts: true, canonicalUrl: U, + design: merged({ swatches: [ + { id: 'a', label: 'Sea', hex: '#0A7', brand: true, slot: 3 }, + { id: 'b', label: 'Sun', hex: '#FFcc00', brand: true, slot: 1 }, + { id: 'c', label: 'Grey', hex: '#888888', brand: false }, + { id: 'd', label: 'Bad', hex: 'red', brand: true, slot: 2 }, + ] }), + }, + }, + F_swatches_no_brand: { + state: root({}), + opts: { + title: "Joe's Pizza & Grill", includeFonts: true, canonicalUrl: U, + design: merged({ swatches: [ + { id: 'c', label: 'Grey', hex: '#888888', brand: false }, + { id: 'd', label: 'Bad', hex: 'red', brand: true, slot: 2 }, + { id: 'e', label: 'Far', hex: '#123456', brand: true, slot: 7 }, + ] }), + }, + }, }; const headOf = (doc: string) => doc.slice(0, doc.indexOf('') + ''.length);