mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
refactor(editor): Move editor-ui and design-system to frontend dir (no-changelog) (#13564)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { useStyles } from './useStyles';
|
||||
|
||||
describe('useStyles', () => {
|
||||
it('sets z-index as css variables', () => {
|
||||
vi.spyOn(global.document.documentElement.style, 'setProperty');
|
||||
|
||||
const { setAppZIndexes } = useStyles();
|
||||
|
||||
setAppZIndexes();
|
||||
|
||||
expect(global.document.documentElement.style.setProperty).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
'--z-index-app-header',
|
||||
'99',
|
||||
);
|
||||
expect(global.document.documentElement.style.setProperty).toHaveBeenCalledWith(
|
||||
'--z-index-canvas-add-button',
|
||||
'101',
|
||||
);
|
||||
|
||||
expect(global.document.documentElement.style.setProperty).toHaveBeenCalledWith(
|
||||
'--z-index-workflow-preview-ndv',
|
||||
'9999999',
|
||||
);
|
||||
|
||||
expect(global.document.documentElement.style.setProperty).toHaveBeenLastCalledWith(
|
||||
'--z-index-nps-survey-modal',
|
||||
'3001',
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user