- Translate LoadingState and EmptyState components (common namespace) - Translate Header navigation labels (navigation namespace) - Translate StatusBadge trade status labels (exchange namespace) - Create navigation.json translation files for es, en, ca - Create exchange.json translation files for status/direction/transfer labels - Update IntlProvider to load navigation and exchange namespaces - Update frontend tests to expect Spanish translations (default language) - Configure Playwright to use English language for e2e tests via storageState - Fix test expectations to match translated strings All frontend and e2e tests passing.
40 lines
1 KiB
TypeScript
40 lines
1 KiB
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,
|
|
// Reduce screenshot/recording overhead
|
|
screenshot: "only-on-failure",
|
|
trace: "retain-on-failure",
|
|
// Set language to English for all e2e tests via localStorage
|
|
// E2E tests should only test in English according to requirements
|
|
storageState: {
|
|
cookies: [],
|
|
origins: [
|
|
{
|
|
origin: "http://localhost:3000",
|
|
localStorage: [
|
|
{
|
|
name: "arbret-locale",
|
|
value: "en",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
});
|