-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch3.diff
More file actions
20 lines (18 loc) · 793 Bytes
/
patch3.diff
File metadata and controls
20 lines (18 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<<<<<<< SEARCH
it('shows connection status', async () => {
// The mock is defined globally above via jest.mock so we don't need spyOn which was breaking due to mock behavior.
render(<StorageBrowser />);
await waitFor(() => {
expect(screen.getByText(/Connected to VPS/i)).toBeInTheDocument();
});
});
=======
it('shows connection status', async () => {
// Fast-forward or trigger the connection check if not run on mount naturally in test environment
// We know from useStorage that it checks on mount. Let's make sure our mock resolves quickly.
render(<StorageBrowser />);
await waitFor(() => {
expect(screen.getByText(/Connected to VPS/i)).toBeInTheDocument();
}, { timeout: 3000 });
});
>>>>>>> REPLACE