diff --git a/core/http/react-ui/e2e/class-hygiene.spec.js b/core/http/react-ui/e2e/class-hygiene.spec.js new file mode 100644 index 000000000..f9a1a9625 --- /dev/null +++ b/core/http/react-ui/e2e/class-hygiene.spec.js @@ -0,0 +1,111 @@ +import { test, expect } from '@playwright/test' +import { readFileSync, readdirSync, statSync } from 'node:fs' +import { join, dirname, relative } from 'node:path' +import { fileURLToPath } from 'node:url' + +// Font Awesome's `fas` / `far` / `fab` classes do not draw an icon on their +// own — they set `font-family: "Font Awesome 6 Free"` and a weight on whatever +// element carries them, and the matching `fa-*` class supplies the glyph +// through ::before. Put them on a