fix: 稳定推荐页运行态封面遮罩
This commit is contained in:
@@ -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;');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user