From 9128c224c65f8f2a172b22a443ccb4573c7acd90 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 29 Sep 2023 15:49:14 +0200
Subject: refactor(components): rewrite ProgressBar component

* Avoid browser vendors by adding an extra div
* Add a loading state
* Add an option to center the progress bar (no longer the default)
* Remove min since it is always 0
---
 src/components/atoms/loaders/progress-bar.test.tsx | 21 ---------------------
 1 file changed, 21 deletions(-)
 delete mode 100644 src/components/atoms/loaders/progress-bar.test.tsx

(limited to 'src/components/atoms/loaders/progress-bar.test.tsx')

diff --git a/src/components/atoms/loaders/progress-bar.test.tsx b/src/components/atoms/loaders/progress-bar.test.tsx
deleted file mode 100644
index 6b01b68..0000000
--- a/src/components/atoms/loaders/progress-bar.test.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen } from '../../../../tests/utils';
-import { ProgressBar } from './progress-bar';
-import { current, id, label, max, min } from './progress-bar.fixture';
-
-describe('ProgressBar', () => {
-  it('renders a progress bar', () => {
-    render(
-      <ProgressBar
-        id={id}
-        label={label}
-        min={min}
-        max={max}
-        current={current}
-      />
-    );
-    expect(
-      screen.getByRole('progressbar', { name: label })
-    ).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

