Skip to content

Commit

Permalink
Ignore progress bars in Chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 3, 2024
1 parent 5a8bf02 commit bcb9852
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/lib/components/processing/Process.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
{/if}
</div>
{#if ["success", "failure", "cancelled"].includes(status)}
<progress value={1} />
<progress value={1} data-chromatic="ignore" />
{:else if status === "queued"}
<progress value={0} />
<progress value={0} data-chromatic="ignore" />
{:else if progress}
<progress value={progress} />
<progress value={progress} data-chromatic="ignore" />
{:else}
<progress />
<progress data-chromatic="ignore" />
{/if}
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/viewer/LoadingToolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="container" slot="center">
<p>Loading PDF…</p>
{#if progress}
<progress value={progress} />
<progress value={progress} data-chromatic="ignore" />
{:else}
<progress />
<progress data-chromatic="ignore" />
{/if}
</div>
</PageToolbar>
Expand Down

0 comments on commit bcb9852

Please sign in to comment.