chore(e2e-test): fix snapshot pixel ratio + try to reuse cargo build to reduce cpu consumption

This commit is contained in:
Edouard Vanbelle
2026-05-05 01:30:25 +02:00
parent 10f43e00a3
commit ddf6104749
2 changed files with 20 additions and 5 deletions
+4 -1
View File
@@ -13,6 +13,9 @@ export default defineConfig({
use: {
baseURL: 'http://localhost:8087',
trace: 'on-first-retry',
},
expect: {
toHaveScreenshot: { maxDiffPixelRatio: 0.02 },
},
@@ -28,7 +31,7 @@ export default defineConfig({
],
webServer: {
command: 'cargo run',
command: process.env.CI ? `${process.env.GITHUB_WORKSPACE}/target/debug/oxicloud` : 'cargo run',
url: 'http://localhost:8087',
timeout: 600_000,
reuseExistingServer: false,