feat: Add timeline support for folder media (#2197)

- Closes #2106
This commit is contained in:
Dermot Duffy
2025-10-04 15:47:39 -07:00
committed by GitHub
parent 262e5f223f
commit 78dee9194f
34 changed files with 2261 additions and 1363 deletions
@@ -36,3 +36,31 @@ describe('should handle view action', () => {
);
});
});
describe('should handle folder view action', () => {
it.each([['folder' as const], ['folders' as const]])('%s', async (viewName) => {
const api = createCardAPI();
const action = new ViewAction(
{},
{
action: 'fire-dom-event',
advanced_camera_card_action: viewName,
folder: 'folder',
},
);
await action.execute(api);
expect(api.getViewManager().setViewByParametersWithNewQuery).toBeCalledWith(
expect.objectContaining({
params: {
view: viewName,
},
queryExecutorOptions: {
folder: 'folder',
},
}),
);
});
});