Files
lazygitclj/test/e2e/setup-cursor-test.sh
Adam Jeniski f0c65dedf5 Fix e2e tests and clean up debug artifacts
- Remove nested test/e2e/test/ directory (bad debug data)
- Fix run-all.sh to run VHS from repo root, preventing nested output
- Fix cursor-navigation.tape to use setup script instead of inline shell
- Add setup-cursor-test.sh for cursor navigation tests
- Regenerate all test outputs without FileNotFoundException errors
- Add debug tape/output files to .gitignore
- Remove debug.tape from test suite (for local debugging only)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 12:20:26 -05:00

27 lines
513 B
Bash
Executable File

#!/bin/bash
# Setup test repo with many files for cursor navigation tests
REPO=/tmp/lazygitclj-e2e-cursor
rm -rf "$REPO"
mkdir -p "$REPO"
cd "$REPO"
git init -b main
git config user.email 'test@test.com'
git config user.name 'Test'
# Create 20 files
for i in $(seq 1 20); do
echo "content $i" > "file$i.txt"
done
git add .
git commit -m 'Initial'
# Modify all files to create unstaged changes
for i in $(seq 1 20); do
echo "modified $i" >> "file$i.txt"
done
echo "Cursor test repo created at $REPO"