Files
linea-monorepo/bridge-ui/playwright.config.ts
kyzooghost 399f2ffbbe [Fix] Bridge UI test method approveTokenPermission (#840)
* new describe

* fix

* hi

* fix

* new approve impl

* try

* try fix

* try

* try

* rewrite

* rewrite

* different flake test

* different flake test

* different flake test

* different flake test

* different flake test

* different flake test

* do flakiness test

* Revert "do flakiness test"

This reverts commit e06e5dc0d55b6fef08e8b24243940c1044eaaf96.
2025-04-10 20:34:38 +10:00

35 lines
1.0 KiB
TypeScript

import { defineConfig, devices } from "@playwright/test";
import "dotenv/config";
export default defineConfig({
testDir: ".",
testMatch: "**/*.spec.ts",
// Timeout for tests that don't involve blockchain transactions
timeout: 40_000,
fullyParallel: true,
maxFailures: process.env.CI ? 1 : 0,
// To consider - cannot really run E2E tests involving blockchain tx in parallel. There is a high risk of reusing the same tx nonce -> leading to dropped transactions
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI
? [
["html", { open: "never", outputFolder: `playwright-report-${process.env.HEADLESS ? "headless" : "headful"}` }],
["list"],
]
: [["html"], ["list"]],
use: {
baseURL: "http://localhost:3000",
trace: process.env.CI ? "on" : "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: {
command: "pnpm run start",
url: "http://localhost:3000",
reuseExistingServer: true,
},
});