Commit cb9a096
test(gui): fix FindingDetail test assertions for dynamic dialog title
Fix frontend test failures in FindingDetail.test.tsx by updating text
assertions to match the actual dynamic dialog title format. The component
renders "Finding Details: {service} on {host}:{port}" but tests were
expecting just "Finding Details".
Changes:
- Replace exact text match with regex pattern (/Finding Details:/) in two
test cases to accommodate the dynamic title format
- Ensures tests pass in CI/CD workflows while maintaining coverage
Fixes 2 test failures in GUI CI workflow (121 tests now pass)
Technical Details:
- Tests affected: "renders finding details correctly" and "calls onClose
when dialog is dismissed"
- Root cause: Component uses more specific title than original test
expectations
- Solution: Use flexible regex matching instead of exact string matching
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 186b321 commit cb9a096
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments