Homepage Improvements
This commit is contained in:
@@ -187,7 +187,7 @@ describe('DocumentsMobileScreen', () => {
|
||||
const openButtons = screen.getAllByText('Open');
|
||||
await user.click(openButtons[0]);
|
||||
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/documents/doc-1');
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/garage/documents/doc-1');
|
||||
});
|
||||
|
||||
it('should navigate to correct document for each Open button', async () => {
|
||||
@@ -197,10 +197,10 @@ describe('DocumentsMobileScreen', () => {
|
||||
const openButtons = screen.getAllByText('Open');
|
||||
|
||||
await user.click(openButtons[0]);
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/documents/doc-1');
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/garage/documents/doc-1');
|
||||
|
||||
await user.click(openButtons[1]);
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/documents/doc-2');
|
||||
expect(mockNavigate).toHaveBeenCalledWith('/garage/documents/doc-2');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -406,4 +406,4 @@ describe('DocumentsMobileScreen', () => {
|
||||
expect(uploadButtons).toHaveLength(mockDocuments.length);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user