landing-ecosystem-css.test.mjs
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
1 day ago
| 1 | import { describe, it } from 'node:test'; |
| 2 | import assert from 'node:assert'; |
| 3 | import { readFileSync } from 'node:fs'; |
| 4 | import { fileURLToPath } from 'node:url'; |
| 5 | import { dirname, join } from 'node:path'; |
| 6 | |
| 7 | const root = join(dirname(fileURLToPath(import.meta.url)), '..'); |
| 8 | const indexHtml = readFileSync(join(root, 'web', 'index.html'), 'utf8'); |
| 9 | |
| 10 | describe('landing page ecosystem vision section CSS', () => { |
| 11 | it('uses text-shadow on the Ecosystem visions title (tight glyph glow)', () => { |
| 12 | assert.match( |
| 13 | indexHtml, |
| 14 | /\.ecosystem-vision-heading-wrap \.flow-intro-title\s*\{[^}]*text-shadow/s |
| 15 | ); |
| 16 | }); |
| 17 | |
| 18 | it('does not use a wide ::before blob on the heading wrap', () => { |
| 19 | assert.ok(!indexHtml.includes('.ecosystem-vision-heading-wrap::before')); |
| 20 | }); |
| 21 | |
| 22 | it('applies a section-level radial gradient behind content', () => { |
| 23 | assert.match(indexHtml, /\.ecosystem-vision-section::before/s); |
| 24 | assert.match(indexHtml, /\.ecosystem-vision-section::before\s*\{[^}]*radial-gradient/s); |
| 25 | }); |
| 26 | |
| 27 | it('does not add a boxed glow pseudo behind Future Facing Architecture', () => { |
| 28 | assert.ok(!indexHtml.includes('.ecosystem-architecture-title::before')); |
| 29 | }); |
| 30 | }); |
File History
1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
1 day ago