-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch5.diff
More file actions
27 lines (25 loc) · 990 Bytes
/
patch5.diff
File metadata and controls
27 lines (25 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<<<<<<< SEARCH
it('shows connection status', async () => {
// The "Connected to VPS" message is actually a title attribute on an element in StorageControls,
// not StorageBrowser. The test was incorrectly trying to find it in StorageBrowser.
// We'll test something that actually exists in StorageBrowser, like the VPS info in the footer.
render(<StorageBrowser />);
await waitFor(() => {
expect(screen.getByText(/storage\.noahcohn\.com/i)).toBeInTheDocument();
});
});
=======
it('shows connection status', async () => {
// Using proper act and testing logic to avoid state update warnings and async test failures.
render(
<StorageBrowser
onSelectShader={jest.fn()}
onSelectImage={jest.fn()}
onSelectVideo={jest.fn()}
/>
);
await waitFor(() => {
expect(screen.getByText(/storage\.noahcohn\.com/i)).toBeInTheDocument();
});
});
>>>>>>> REPLACE