@echo off
REM 测试Python环境管理页面

echo 🧪 Testing Python Environment Manager Page...
echo.

echo 📋 Test Steps:
echo 1. Start the Tauri application
echo 2. Navigate to Python Environment Manager page
echo 3. Check if the page loads without errors
echo 4. Test basic functionality
echo.

echo 🚀 Starting Tauri application...
echo.

REM 切换到项目根目录
cd /d "%~dp0.."

REM 启动应用
cargo tauri dev

echo.
echo ✅ If the application started successfully:
echo 1. Click "Python环境" in the left sidebar
echo 2. Or navigate to /python-env-manager
echo 3. The page should load and show Python environment status
echo.
echo 🔍 What to check:
echo - Page loads without JavaScript errors
echo - Environment status cards are displayed
echo - Package list is shown (may be empty initially)
echo - Install package button works
echo - Refresh button works
echo.

pause
