The agreed_price depends on trade direction (buy/sell) and must be calculated on the frontend. Returning a buy-side-only agreed_price from the API was misleading and unused. Frontend already calculates the direction-aware price correctly.
21 lines
524 B
TypeScript
21 lines
524 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
// Run tests sequentially to avoid database conflicts
|
|
workers: 1,
|
|
// Ensure tests within a file run in order
|
|
fullyParallel: false,
|
|
// Test timeout (per test)
|
|
timeout: 10000,
|
|
webServer: {
|
|
command: "npm run dev",
|
|
url: "http://localhost:3000",
|
|
reuseExistingServer: true,
|
|
},
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
// Action timeout (clicks, fills, etc.)
|
|
actionTimeout: 5000,
|
|
},
|
|
});
|