mirror of
https://codeberg.org/Kankys/doxa.git
synced 2026-11-11 06:44:36 +01:00
new-doxa-monorepo
This commit is contained in:
1 parent
b4401527a3
commit
5eacbb0182
162 files changed
+21820
-2
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests',
|
||||
fullyParallel: true,
|
||||
reporter: 'html',
|
||||
use: {
|
||||
// Pokud v terminálu nastavíš BASE_URL, použije ho. Jinak použije localhost.
|
||||
baseURL: process.env.BASE_URL || 'http://localhost:8080',
|
||||
trace: 'on-first-retry',
|
||||
},
|
||||
webServer: {
|
||||
// WebServer se spustí pouze tehdy, pokud NENÍ nastavena jiná BASE_URL
|
||||
// (nechceme spouštět lokální server, když testujeme produkci)
|
||||
command: process.env.BASE_URL ? undefined : 'npx http-server ../../ -p 8080',
|
||||
url: process.env.BASE_URL || 'http://localhost:8080',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user