Skip to content

Commit f44c85c

Browse files
committed
test(confluence): add explicit regression for the exact reported <br> repro
Formalizes an explicit test for the exact <br>-separated string Greptile's review cited as broken (verified manually not to reproduce, but wasn't directly asserted in the suite before this).
1 parent a395b5f commit f44c85c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

apps/sim/connectors/confluence/confluence.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,14 @@ describe('preserveConfluenceCallouts', () => {
287287
expect(result).toContain('[CALLOUT] [CALLOUT: Inner title] inner body')
288288
}
289289
)
290+
291+
it.concurrent('does not fuse text on either side of a <br> line break', () => {
292+
const html =
293+
'<div class="confluence-information-macro confluence-information-macro-warning">' +
294+
'<div class="confluence-information-macro-body"><p>Do NOT use this form for:<br>GitLab</p></div>' +
295+
'</div>'
296+
const result = preserveConfluenceCallouts(html)
297+
expect(result).not.toContain('for:GitLab')
298+
expect(result).toContain('[WARNING] Do NOT use this form for: GitLab')
299+
})
290300
})

0 commit comments

Comments
 (0)