test: integrate playwright cache navigation spec
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
const { defineConfig } = require('@playwright/test');
|
||||
|
||||
const baseURL = process.env.TARGET_URL || 'http://127.0.0.1:8011';
|
||||
|
||||
module.exports = defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
timeout: 45000,
|
||||
fullyParallel: false,
|
||||
retries: 0,
|
||||
reporter: 'list',
|
||||
use: {
|
||||
baseURL,
|
||||
headless: true,
|
||||
serviceWorkers: 'block'
|
||||
},
|
||||
webServer: {
|
||||
command: 'python3 -m uvicorn main:app --host 127.0.0.1 --port 8011',
|
||||
url: baseURL,
|
||||
reuseExistingServer: true,
|
||||
timeout: 30000
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user