From 983120d945459ca687ef924cb13d7bd175ada134 Mon Sep 17 00:00:00 2001 From: darshanr0107 Date: Wed, 5 Nov 2025 17:18:34 +0530 Subject: [PATCH] fix: add test case for C4Context diagram with ComponentQueue_Ext on-behalf-of: @Mermaid-Chart --- cypress/integration/rendering/c4.spec.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/cypress/integration/rendering/c4.spec.js b/cypress/integration/rendering/c4.spec.js index 00e71adec..92b834d41 100644 --- a/cypress/integration/rendering/c4.spec.js +++ b/cypress/integration/rendering/c4.spec.js @@ -114,4 +114,28 @@ describe('C4 diagram', () => { {} ); }); + it('C4.6 should render C4Context diagram with ComponentQueue_Ext', () => { + imgSnapshotTest( + ` + C4Context + title System Context diagram with ComponentQueue_Ext + + Enterprise_Boundary(b0, "BankBoundary0") { + Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.") + + System(SystemAA, "Internet Banking System", "Allows customers to view information about their bank accounts, and make payments.") + + Enterprise_Boundary(b1, "BankBoundary") { + ComponentQueue_Ext(msgQueue, "Message Queue", "RabbitMQ", "External message queue system for processing banking transactions") + System_Ext(SystemC, "E-mail system", "The internal Microsoft Exchange e-mail system.") + } + } + + BiRel(customerA, SystemAA, "Uses") + Rel(SystemAA, msgQueue, "Sends messages to") + Rel(SystemAA, SystemC, "Sends e-mails", "SMTP") + `, + {} + ); + }); });