mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-12-05 14:44:41 -05:00
feat(ui): Session-aware live timing enhancements
This commit is contained in:
1 parent
c3ad7743e6
commit
8d5ab4d7a7
17 files changed
+311
-102
No files matched your search
@@ -176,10 +176,10 @@ describe('TimingTower', () => {
|
||||
expect(lecRow).toHaveClass('pinned-row')
|
||||
})
|
||||
|
||||
it('toggles a pin when a row is clicked', () => {
|
||||
it('toggles a pin when the pin button is clicked', () => {
|
||||
const onTogglePin = vi.fn()
|
||||
render(<TimingTower rows={rows} onTogglePin={onTogglePin} />)
|
||||
fireEvent.click(screen.getByText('NOR').closest('tr')!)
|
||||
fireEvent.click(screen.getByText('NOR').closest('tr')!.querySelector('.pin-btn')!)
|
||||
expect(onTogglePin).toHaveBeenCalledWith('4')
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user