about summary refs log tree commit diff stats
path: root/tests/by-name/nv/nvim-neorg/test.desc
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-30 23:10:38 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-30 23:10:38 +0100
commit3d56f37098c21786b327d98a93d0a7d1f2091b74 (patch)
treee673f83a2b0550c3729bfbfa5bfbe2f3afd8057a /tests/by-name/nv/nvim-neorg/test.desc
parentfix(tests/{yambar,nvim-checkhealth}): Update to use `Exec` (diff)
downloadnixos-config-3d56f37098c21786b327d98a93d0a7d1f2091b74.tar.gz
nixos-config-3d56f37098c21786b327d98a93d0a7d1f2091b74.zip
feat(tests/nvim-neorg): Init
Diffstat (limited to 'tests/by-name/nv/nvim-neorg/test.desc')
-rw-r--r--tests/by-name/nv/nvim-neorg/test.desc73
1 files changed, 73 insertions, 0 deletions
diff --git a/tests/by-name/nv/nvim-neorg/test.desc b/tests/by-name/nv/nvim-neorg/test.desc
new file mode 100644
index 00000000..bd7b7312
--- /dev/null
+++ b/tests/by-name/nv/nvim-neorg/test.desc
@@ -0,0 +1,73 @@
+Type nvim
+Sleep 3
+Type Enter
+Sleep 9
+# Remove the spellfile download prompt
+Type C-c
+ExpectNot Warning: Cannot find word list
+Expect Nvim is open source and freely distributable
+
+Type :NeorgStart
+Sleep 1.5
+Type Enter
+Sleep 4
+
+Type :Neorg workspace general
+Sleep 1.5
+Type Enter
+Sleep 4
+
+
+Type 10t
+Sleep 0.5
+
+# Cursor is on the first heading
+Type iMARKER
+Sleep 0.5
+Type Escape
+Sleep 2
+Expect ^11\s*MARKER◉ First heading$
+
+# Now moves to the link to the second
+Type t
+Sleep 0.2
+Type $
+Sleep 0.2
+Type h
+Sleep 0.2
+Type Enter
+Sleep 0.5
+
+# Should be on the second
+Type iMARKER
+Sleep 0.5
+Type Escape
+Sleep 2
+Expect ^15\s*◉ MARKERSecond heading$
+
+# Moves to the references file
+Type t
+Sleep 0.2
+Type $
+Sleep 0.2
+Type h
+Sleep 0.2
+Type Enter
+Sleep 0.5
+
+# Skip another spell file prompt
+Type Enter
+Sleep 0.5
+
+
+Type 10t
+Sleep 0.5
+
+Expect ^11\s*◉ Some other content$
+
+Type :q!
+Sleep 0.5
+Type Enter
+Sleep 1
+
+# vim: ft=tape