import test from 'node:test'; import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; test('shared Select popup styles do not override the motion system opacity during its measurement frame', () => { const css = readFileSync(new URL('../src/query-motion.css', import.meta.url), 'utf8'); const base = css.match(/\.readable-select-popup\.ant-select-dropdown\s*\{([^}]+)\}/)?.[1]; assert.ok(base, 'shared popup style exists'); assert.doesNotMatch(base, /(?:^|;)\s*opacity\s*:/, 'opacity:1 makes the prepare frame visible before the real entrance'); });