File size: 536 Bytes
d401095
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# Non-interactive setup script for Hugging Face Spaces
echo "🚀 Starting UI Regression Testing Setup..."

# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt

# Install Playwright browsers into a local writable directory
export PLAYWRIGHT_BROWSERS_PATH=$(pwd)/.playwright-browsers
mkdir -p $PLAYWRIGHT_BROWSERS_PATH
pip install playwright
python -m playwright install chromium

# Create output directories
mkdir -p reports data/figma data/website data/comparisons

echo "✅ Setup Complete!"