Skip to content

Commit fc75ea9

Browse files
committed
add debug output
1 parent 4f95c26 commit fc75ea9

File tree

2 files changed

+365
-20
lines changed

2 files changed

+365
-20
lines changed

test-ci.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
# CI Simulation Test Script
4+
# This script simulates the GitHub Actions CI environment for debugging test issues
5+
6+
set -e
7+
8+
echo "🔧 CI Simulation Test Script"
9+
echo "=============================="
10+
11+
# Set CI environment variables to simulate GitHub Actions
12+
export CI=true
13+
export TEST_HEADLESS=1
14+
15+
echo "📋 Environment Variables:"
16+
echo "CI=$CI"
17+
echo "TEST_HEADLESS=$TEST_HEADLESS"
18+
echo ""
19+
20+
echo "🏗️ Installing dependencies..."
21+
npm install
22+
23+
echo ""
24+
echo "🧪 Running tests in CI simulation mode..."
25+
echo "This will run tests with:"
26+
echo "- Headless Chrome"
27+
echo "- CI timeout settings (wait=500ms, testWait=10000ms)"
28+
echo "- 30 second test timeout"
29+
echo "- Comprehensive debug output"
30+
echo ""
31+
32+
# Run the tests with verbose output
33+
npm test
34+
35+
echo ""
36+
echo "✅ CI simulation completed!"
37+
echo ""
38+
echo "If tests failed, check the debug output above for:"
39+
echo "- Browser initialization time"
40+
echo "- DataTable ready time"
41+
echo "- Test completion time"
42+
echo "- Any timeout warnings"
43+
echo "- JavaScript errors in browser logs"

0 commit comments

Comments
 (0)