mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-13 21:32:55 +00:00
Test deactivation of SelectionTool
This commit is contained in:
parent
7f03d2f372
commit
1867a77b2b
@ -71,4 +71,15 @@ describe('SelectionTool', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('SelectionTool can be deactivated', () => {
|
||||
beforeEach(() => {
|
||||
tool.deactivate();
|
||||
svg.node().dispatchEvent(new MouseEvent('mousedown', {clientX: 100, clientY: 100}));
|
||||
});
|
||||
|
||||
it('path should be still hiden', () => {
|
||||
expect(path_selection.attr('visibility')).toEqual('hidden');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user