fix: 稳定推荐页运行态封面遮罩

This commit is contained in:
2026-06-07 16:00:29 +08:00
parent c810e255a5
commit 8dca8a6443
6 changed files with 672 additions and 34 deletions

View File

@@ -129,3 +129,18 @@ describe('index stylesheet creation agent hero contrast', () => {
expect(hintBlock).toContain('rgba(255, 255, 255, 0.72) !important');
});
});
describe('index stylesheet recommend runtime cover', () => {
it('only fades the card cover out after runtime is ready', () => {
const css = readIndexCss();
const coverBlock = getCssBlock(css, '.platform-recommend-runtime-cover');
expect(coverBlock).not.toContain('transition: opacity');
const hiddenCoverBlock = getCssBlock(
css,
'.platform-recommend-runtime-cover--hidden',
);
expect(hiddenCoverBlock).toContain('transition: opacity 420ms ease;');
});
});