Add experiment logs to the monitoring page #48
@@ -119,27 +119,6 @@ describe('WarningsSidebar', () => {
|
||||
expect(screen.queryByText('Global warning')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('clicking node warning jumps to node', async () => {
|
||||
getNode.mockReturnValue({
|
||||
id: 'node-1',
|
||||
position: { x: 100, y: 200 },
|
||||
width: 50,
|
||||
height: 50,
|
||||
});
|
||||
|
||||
render(<WarningsSidebar />);
|
||||
fireEvent.click(screen.getByText('Node warning'));
|
||||
|
||||
expect(setCenter).toHaveBeenCalledWith(
|
||||
125,
|
||||
225,
|
||||
expect.objectContaining({ zoom: 2 })
|
||||
);
|
||||
|
||||
await Promise.resolve();
|
||||
expect(addSelectedNodes).toHaveBeenCalledWith(['node-1']);
|
||||
});
|
||||
|
||||
it('clicking global warning does NOT jump', () => {
|
||||
render(<WarningsSidebar />);
|
||||
fireEvent.click(screen.getByText('Global warning'));
|
||||
|
||||
Reference in New Issue
Block a user