diff --git a/tests/List.test.jsx b/tests/List.test.jsx
index 0323fa5..7aa74de 100644
--- a/tests/List.test.jsx
+++ b/tests/List.test.jsx
@@ -73,6 +73,20 @@ describe('List Component', () => {
});
});
+ test('shows AddItems component with existing items', () => {
+ render(
+
+
+ ,
+ );
+
+ expect(screen.getByLabelText('Item Name:')).toBeInTheDocument();
+ expect(screen.getByLabelText('Soon')).toBeInTheDocument();
+ expect(screen.getByLabelText('Kind of soon')).toBeInTheDocument();
+ expect(screen.getByLabelText('Not soon')).toBeInTheDocument();
+ expect(screen.getByText('Submit')).toBeInTheDocument();
+ });
+
test('shows welcome message and AddItems component when no items are present', () => {
render(
@@ -108,18 +122,4 @@ describe('List Component', () => {
'It seems like you landed here without first creating a list or selecting an existing one. Please select or create a new list first. Redirecting to Home.',
);
});
-
- test('shows AddItems component with existing items', () => {
- render(
-
-
- ,
- );
-
- expect(screen.getByLabelText('Item Name:')).toBeInTheDocument();
- expect(screen.getByLabelText('Soon')).toBeInTheDocument();
- expect(screen.getByLabelText('Kind of soon')).toBeInTheDocument();
- expect(screen.getByLabelText('Not soon')).toBeInTheDocument();
- expect(screen.getByText('Submit')).toBeInTheDocument();
- });
});