summaryrefslogtreecommitdiff
path: root/internal/ui/table_test.go
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-21 23:16:30 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-21 23:16:30 +0300
commitd9e09559ad92df8284ac526a8ea4de359a761497 (patch)
tree88cc9f2193833efe0e1a53db3d91c3e6aba01d00 /internal/ui/table_test.go
parent449f343c7da6071599c5c8266f3f9b43e0b0a315 (diff)
Add blinking done effect and update tag hotkey
Diffstat (limited to 'internal/ui/table_test.go')
-rw-r--r--internal/ui/table_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go
index 89e1af6..3bf6f3e 100644
--- a/internal/ui/table_test.go
+++ b/internal/ui/table_test.go
@@ -164,6 +164,10 @@ func TestDoneHotkey(t *testing.T) {
mv, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'D'}})
m = mv.(Model)
+ for i := 0; i < blinkCycles; i++ {
+ mv, _ = m.Update(blinkMsg{})
+ m = mv.(Model)
+ }
data, err := os.ReadFile(doneFile)
if err != nil {
@@ -209,6 +213,10 @@ func TestUndoHotkey(t *testing.T) {
mv, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'D'}})
m = mv.(Model)
+ for i := 0; i < blinkCycles; i++ {
+ mv, _ = m.Update(blinkMsg{})
+ m = mv.(Model)
+ }
mv, _ = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'U'}})
m = mv.(Model)