Remove startup reveal animation
This commit is contained in:
@@ -57,17 +57,9 @@ test('desktop layout keeps the power control on a symmetric center axis beside t
|
||||
assert.match(component, /\$\{isGateway && hasSubscription \? ' is-gateway-home' : ''\}/);
|
||||
});
|
||||
|
||||
test('page reload plays one stable startup sequence', () => {
|
||||
assert.match(component, /const \[showIntro, setShowIntro\] = useState\(true\)/);
|
||||
assert.match(component, /\$\{showIntro \? ' is-intro' : ''\}/);
|
||||
assert.doesNotMatch(component, /showIntro && !hasSubscription/);
|
||||
assert.match(styles, /\.client-shell\.is-intro \.harbor-brand-content \{[\s\S]*harbor-startup-brand 760ms/);
|
||||
assert.match(styles, /@keyframes harbor-startup-brand[\s\S]*opacity: 0\.35;[\s\S]*filter: blur\(5px\)/);
|
||||
assert.doesNotMatch(/@keyframes harbor-startup-brand \{([\s\S]*?)\n\}/.exec(styles)?.[1] || '', /translate|scale/);
|
||||
assert.match(styles, /\.client-shell\.is-intro \.client-panel > :not\(\.client-drawer\),[\s\S]*\.client-secondary-menu,[\s\S]*\.harbor-versions \{[\s\S]*harbor-startup-content 720ms 120ms/);
|
||||
assert.doesNotMatch(styles, /\.client-shell\.is-intro \.client-panel\s*,/);
|
||||
assert.match(styles, /@keyframes harbor-startup-content[\s\S]*opacity: 0;[\s\S]*filter: blur\(6px\)/);
|
||||
assert.match(styles, /@media \(prefers-reduced-motion: reduce\)[\s\S]*\.client-shell\.is-intro \.client-panel > :not\(\.client-drawer\),[\s\S]*animation: none/);
|
||||
test('page reload renders the accepted snapshot without a second startup reveal', () => {
|
||||
assert.doesNotMatch(component, /showIntro|is-intro/);
|
||||
assert.doesNotMatch(styles, /is-intro|harbor-startup-(?:brand|content)/);
|
||||
});
|
||||
|
||||
test('server rows scroll inside the subscription drawer without moving the main layout', () => {
|
||||
|
||||
Reference in New Issue
Block a user