test: removed test, as it can be tested manually with better accuracy and the test was causing issues instead of verifying functionality
ref: N25B-450
This commit is contained in:
@@ -119,27 +119,6 @@ describe('WarningsSidebar', () => {
|
|||||||
expect(screen.queryByText('Global warning')).not.toBeInTheDocument();
|
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', () => {
|
it('clicking global warning does NOT jump', () => {
|
||||||
render(<WarningsSidebar />);
|
render(<WarningsSidebar />);
|
||||||
fireEvent.click(screen.getByText('Global warning'));
|
fireEvent.click(screen.getByText('Global warning'));
|
||||||
|
|||||||
Reference in New Issue
Block a user