feat: hooked the APIs of the app into the pyoide core.

This commit is contained in:
2026-02-24 20:58:10 +01:00
parent 9238ad630c
commit c3aacd7776
37 changed files with 5623 additions and 8 deletions

View File

@@ -13,6 +13,17 @@ describe('Help menu documentation entry', () => {
expect(APP_MENU_ACTION_EVENT_MAP.openDocumentation).toBe('menu:openDocumentation');
});
it('includes an API documentation action in Help menu', () => {
const helpGroup = APP_MENU_GROUPS.find((group) => group.label === 'Help');
expect(helpGroup).toBeDefined();
expect(helpGroup?.items.some((item) => item.action === 'openApiDocumentation')).toBe(true);
});
it('maps API documentation to a renderer menu event', () => {
expect(APP_MENU_ACTION_EVENT_MAP.openApiDocumentation).toBe('menu:openApiDocumentation');
});
it('includes Open in Browser and Open Data Folder actions in File menu', () => {
const fileGroup = APP_MENU_GROUPS.find((group) => group.label === 'File');