Skip to content

Commit eaad0d4

Browse files
authored
Fix visual testing logo flakiness (#2834)
1 parent 46edde9 commit eaad0d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/gitbook/src/components/Space/SpaceIcon.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export async function SpaceIcon(
2323
return (
2424
<Image
2525
alt={alt ?? ''}
26+
// The logo display is flaky and sometimes does not render,
27+
// so we hide it to make visual testing usable
28+
data-visual-test={icon ? undefined : 'blackout'}
2629
sources={
2730
icon
2831
? {

0 commit comments

Comments
 (0)