修复推荐页封面遮罩与登录态刷新
推荐页运行态封面增加加载条并隔离层级,避免 runtime 内容穿透封面 登录态从未登录到已登录或退出后刷新当前页面,退出等待 token 清理完成后再刷新 补充推荐页封面、认证刷新与样式回归测试 同步平台链路、项目基线和 Hermes 决策文档
This commit is contained in:
@@ -131,12 +131,37 @@ describe('index stylesheet creation agent hero contrast', () => {
|
||||
});
|
||||
|
||||
describe('index stylesheet recommend runtime cover', () => {
|
||||
it('only fades the card cover out after runtime is ready', () => {
|
||||
it('keeps the card cover above embedded runtime and only fades it when ready', () => {
|
||||
const css = readIndexCss();
|
||||
|
||||
const viewportBlock = getCssBlock(
|
||||
css,
|
||||
'.platform-recommend-runtime-viewport',
|
||||
);
|
||||
expect(viewportBlock).toContain('z-index: 1;');
|
||||
expect(viewportBlock).toContain('isolation: isolate;');
|
||||
|
||||
const coverBlock = getCssBlock(css, '.platform-recommend-runtime-cover');
|
||||
expect(coverBlock).toContain('z-index: 30;');
|
||||
expect(coverBlock).toContain('isolation: isolate;');
|
||||
expect(coverBlock).not.toContain('transition: opacity');
|
||||
|
||||
const loadingBlock = getCssBlock(
|
||||
css,
|
||||
'.platform-recommend-runtime-loading',
|
||||
);
|
||||
expect(loadingBlock).toContain('position: absolute;');
|
||||
expect(loadingBlock).toContain('z-index: 4;');
|
||||
|
||||
const loadingAnimationBlock = getCssBlock(
|
||||
css,
|
||||
'.platform-recommend-runtime-loading::before',
|
||||
);
|
||||
expect(loadingAnimationBlock).toContain(
|
||||
'animation: platform-recommend-runtime-loading 1.15s ease-in-out infinite;',
|
||||
);
|
||||
expect(css).toContain('@keyframes platform-recommend-runtime-loading');
|
||||
|
||||
const hiddenCoverBlock = getCssBlock(
|
||||
css,
|
||||
'.platform-recommend-runtime-cover--hidden',
|
||||
|
||||
Reference in New Issue
Block a user