From c24a1fb1b9efbca52ce68786214d02be2351f7e0 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 29 Oct 2025 22:08:18 +0900 Subject: [PATCH] test: Add test for timeout --- cypress/integration/rendering/icons.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cypress/integration/rendering/icons.spec.ts b/cypress/integration/rendering/icons.spec.ts index 41450beff..5293a7365 100644 --- a/cypress/integration/rendering/icons.spec.ts +++ b/cypress/integration/rendering/icons.spec.ts @@ -188,6 +188,20 @@ flowchart TB `); }); + it('should handle timeouts gracefully', () => { + imgSnapshotTest(`--- +config: + icons: + timeout: 1 + packs: + logos: "@iconify-json/logos@1" +--- +flowchart TB + A[Start] --> B@{ icon: 'logos:aws', label: 'Timeout' } + B --> C[End] +`); + }); + it('should handle missing pack gracefully', () => { imgSnapshotTest(`flowchart TB A[Start] --> B@{ icon: 'missing:icon', label: 'Missing Pack Icon' }