import assert from 'node:assert/strict' import fs from 'node:fs' import path from 'node:path' import { fileURLToPath } from 'node:url' const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..') const scss = fs.readFileSync(path.join(root, 'src/assets/styles/core/el-ui.scss'), 'utf8') const block = scss.match( /\.page-container \.el-tag--info,[\s\S]*?\.el-dialog \.el-tag--info\s*\{[\s\S]*?\}/ ) assert.ok(block, 'expected Fresh Mint el-tag--info override block') assert.match(block[0], /background:\s*#fff7e8\s*!important/) assert.match(block[0], /color:\s*#9a7020\s*!important/) assert.match(block[0], /border-color:\s*#f0e0b8\s*!important/) assert.doesNotMatch(block[0], /#f8fafc/) assert.doesNotMatch(block[0], /#64748b/) console.log('ok: web-admin info tag uses barley soft')