chore(site): Ignore progress build bar on Chromatic (#5869)

This commit is contained in:
Bruno Quaresma 2023-01-26 10:45:59 -03:00 committed by GitHub
parent 43a441fe63
commit 721957dee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -108,6 +108,7 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
return (
<div className={styles.stack}>
<LinearProgress
data-chromatic="ignore"
value={progressValue !== undefined ? progressValue : 0}
variant={
// There is an initial state where progressValue may be undefined
@ -125,7 +126,9 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
/>
<div className={styles.barHelpers}>
<div className={styles.label}>{`Build ${job.status}`}</div>
<div className={styles.label}>{progressText}</div>
<div className={styles.label} data-chromatic="ignore">
{progressText}
</div>
</div>
</div>
)