@@ -49,6 +49,49 @@ if (-not $SkipTauriDriver) {
4949 Write-Host " `n Installing tauri-driver..." - ForegroundColor Yellow
5050 cargo install tauri- driver -- locked
5151 Write-Host " Done" - ForegroundColor Green
52+
53+ # Windows: Install Edge WebDriver (required for tauri-driver)
54+ if ($IsWindows -or $env: OS -eq " Windows_NT" ) {
55+ Write-Host " `n Installing Edge WebDriver..." - ForegroundColor Yellow
56+
57+ # Get Edge version
58+ $edgePath = " C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
59+ if (-not (Test-Path $edgePath )) {
60+ $edgePath = " C:\Program Files\Microsoft\Edge\Application\msedge.exe"
61+ }
62+
63+ if (Test-Path $edgePath ) {
64+ $edgeVersion = (Get-Item $edgePath ).VersionInfo.ProductVersion
65+ $majorVersion = $edgeVersion.Split (' .' )[0 ]
66+ Write-Host " Edge version: $edgeVersion " - ForegroundColor Cyan
67+
68+ # Download matching Edge WebDriver
69+ $driverUrl = " https://msedgedriver.azureedge.net/$edgeVersion /edgedriver_win64.zip"
70+ $driverZip = " $env: TEMP \edgedriver.zip"
71+ $driverDir = " $env: LOCALAPPDATA \EdgeDriver"
72+
73+ try {
74+ Write-Host " Downloading Edge WebDriver..." - ForegroundColor Cyan
75+ Invoke-WebRequest - Uri $driverUrl - OutFile $driverZip - UseBasicParsing
76+
77+ # Extract
78+ if (Test-Path $driverDir ) { Remove-Item - Recurse - Force $driverDir }
79+ Expand-Archive - Path $driverZip - DestinationPath $driverDir - Force
80+ Remove-Item $driverZip
81+
82+ # Add to PATH for this session
83+ $env: PATH = " $driverDir ;$env: PATH "
84+
85+ Write-Host " Edge WebDriver installed to: $driverDir " - ForegroundColor Green
86+ Write-Host " Add to PATH: $driverDir " - ForegroundColor Yellow
87+ } catch {
88+ Write-Host " Warning: Could not download Edge WebDriver" - ForegroundColor Yellow
89+ Write-Host " Download manually from: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/" - ForegroundColor Yellow
90+ }
91+ } else {
92+ Write-Host " Warning: Edge not found. Tauri E2E tests won't work." - ForegroundColor Yellow
93+ }
94+ }
5295}
5396
5497# Install cargo-nextest for faster Rust tests
@@ -62,7 +105,10 @@ Write-Host "`n=== Setup Complete ===" -ForegroundColor Cyan
62105Write-Host " "
63106Write-Host " You can now run:"
64107Write-Host " pnpm dev - Start development server"
65- Write-Host " pnpm test - Run all tests"
66- Write-Host " pnpm test:e2e:web - Run web E2E tests (Playwright)"
67- Write-Host " pnpm test:e2e - Run full Tauri E2E tests (requires built app)"
108+ Write-Host " pnpm test - Run all tests (Rust + TypeScript)"
109+ Write-Host " pnpm test:e2e:web - Run web E2E tests (Playwright) - RECOMMENDED"
110+ Write-Host " "
111+ Write-Host " Full Tauri E2E (advanced, requires build):"
112+ Write-Host " pnpm build - Build the app first"
113+ Write-Host " pnpm test:e2e - Run Tauri E2E tests"
68114Write-Host " "
0 commit comments