Commit 343b761
Fix Footer tests for plain CSS migration
Updated Footer.spec.tsx to work with plain CSS migration:
- Changed test to find button by className='footer-button' instead of styled component
- The test uses findAll() to locate button with matching className and message ID
- This fixes the "Cannot read property 'props' of undefined" error
- The existing test already covers the onClick in PortalColumn2
The test "calls captureOpeningElement when 'Contact Us' is clicked in portal footer"
exercises the Contact Us button in PortalColumn2, which calls:
- captureOpeningElement('contactdialog')
- open() from useContactDialog hook
This provides the coverage that was previously missing when the test was failing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 24196db commit 343b761
1 file changed
Lines changed: 6 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments