@@ -316,7 +316,9 @@ describe("firewall_blocked_domains.cjs", () => {
316316 const result = generateBlockedDomainsSection ( [ "blocked.example.com" ] , TEMPLATE_PATH ) ;
317317
318318 expect ( result ) . toContain ( "> [!WARNING]" ) ;
319- expect ( result ) . toContain ( "> **⚠️ Firewall blocked 1 domain**" ) ;
319+ expect ( result ) . toContain ( "> <details>" ) ;
320+ expect ( result ) . toContain ( "> <summary>Firewall blocked 1 domain</summary>" ) ;
321+ expect ( result ) . toContain ( "> </details>" ) ;
320322 expect ( result ) . toContain ( "> - `blocked.example.com`" ) ;
321323 expect ( result ) . toContain ( "> The following domain was blocked by the firewall during workflow execution:" ) ;
322324 expect ( result ) . toContain ( '> ```yaml\n> network:\n> allowed:\n> - defaults\n> - "blocked.example.com"\n> ```' ) ;
@@ -328,7 +330,9 @@ describe("firewall_blocked_domains.cjs", () => {
328330 const result = generateBlockedDomainsSection ( domains , TEMPLATE_PATH ) ;
329331
330332 expect ( result ) . toContain ( "> [!WARNING]" ) ;
331- expect ( result ) . toContain ( "> **⚠️ Firewall blocked 3 domains**" ) ;
333+ expect ( result ) . toContain ( "> <details>" ) ;
334+ expect ( result ) . toContain ( "> <summary>Firewall blocked 3 domains</summary>" ) ;
335+ expect ( result ) . toContain ( "> </details>" ) ;
332336 expect ( result ) . toContain ( "> - `alpha.example.com`" ) ;
333337 expect ( result ) . toContain ( "> - `beta.example.com`" ) ;
334338 expect ( result ) . toContain ( "> - `gamma.example.com`" ) ;
@@ -360,7 +364,8 @@ describe("firewall_blocked_domains.cjs", () => {
360364 const result = generateBlockedDomainsSection ( [ "api.github.com" ] , TEMPLATE_PATH ) ;
361365
362366 expect ( result ) . toContain ( "> [!WARNING]" ) ;
363- expect ( result ) . toContain ( "> **⚠️ Firewall blocked 1 domain**" ) ;
367+ expect ( result ) . toContain ( "> <details>" ) ;
368+ expect ( result ) . toContain ( "> <summary>Firewall blocked 1 domain</summary>" ) ;
364369 expect ( result ) . toContain ( "> - `api.github.com`" ) ;
365370 expect ( result ) . toContain ( "`tools.github.mode: gh-proxy`" ) ;
366371 expect ( result ) . toContain ( "> ```yaml\n> tools:\n> github:\n> mode: gh-proxy\n> ```" ) ;
@@ -373,7 +378,8 @@ describe("firewall_blocked_domains.cjs", () => {
373378 const result = generateBlockedDomainsSection ( domains , TEMPLATE_PATH ) ;
374379
375380 expect ( result ) . toContain ( "> [!WARNING]" ) ;
376- expect ( result ) . toContain ( "> **⚠️ Firewall blocked 2 domains**" ) ;
381+ expect ( result ) . toContain ( "> <details>" ) ;
382+ expect ( result ) . toContain ( "> <summary>Firewall blocked 2 domains</summary>" ) ;
377383 expect ( result ) . toContain ( "> - `api.github.com`" ) ;
378384 expect ( result ) . toContain ( "> - `other.example.com`" ) ;
379385 expect ( result ) . toContain ( "> ```yaml\n> tools:\n> github:\n> mode: gh-proxy\n> ```" ) ;
0 commit comments