chore(e2e-test): fix snapshot pixel ratio + try to reuse cargo build to reduce cpu consumption
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user