|
|
@@ -33,6 +33,54 @@ module.exports = function (config) {
|
|
|
captureTimeout: 60000,
|
|
|
browserDisconnectTimeout: 60000,
|
|
|
browserDisconnectTolerance: 3,
|
|
|
- browserNoActivityTimeout: 60000
|
|
|
+ browserNoActivityTimeout: 60000,
|
|
|
+
|
|
|
+ // Custom launcher configurations ajoutées pour Jenkins CI
|
|
|
+ customLaunchers: {
|
|
|
+ ChromeHeadlessCustom: {
|
|
|
+ base: 'ChromeHeadless',
|
|
|
+ flags: [
|
|
|
+ '--no-sandbox',
|
|
|
+ '--disable-web-security',
|
|
|
+ '--disable-features=VizDisplayCompositor',
|
|
|
+ '--disable-gpu',
|
|
|
+ '--disable-canvas-aa',
|
|
|
+ '--disable-3d-apis',
|
|
|
+ '--disable-extensions',
|
|
|
+ '--disable-dev-shm-usage',
|
|
|
+ '--disable-translate',
|
|
|
+ '--disable-logging',
|
|
|
+ '--disable-background-timer-throttling',
|
|
|
+ '--disable-backgrounding-occluded-windows',
|
|
|
+ '--disable-renderer-backgrounding',
|
|
|
+ '--remote-debugging-port=9222'
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ ChromeHeadlessCI: {
|
|
|
+ base: 'ChromeHeadless',
|
|
|
+ flags: [
|
|
|
+ '--no-sandbox', // CRUCIAL pour Docker/Jenkins
|
|
|
+ '--disable-web-security',
|
|
|
+ '--disable-features=VizDisplayCompositor',
|
|
|
+ '--disable-gpu',
|
|
|
+ '--disable-canvas-aa',
|
|
|
+ '--disable-3d-apis',
|
|
|
+ '--disable-extensions',
|
|
|
+ '--disable-dev-shm-usage', // Important pour les environnements Docker
|
|
|
+ '--disable-translate',
|
|
|
+ '--disable-logging',
|
|
|
+ '--disable-background-timer-throttling',
|
|
|
+ '--disable-backgrounding-occluded-windows',
|
|
|
+ '--disable-renderer-backgrounding',
|
|
|
+ '--remote-debugging-port=9222',
|
|
|
+ '--headless',
|
|
|
+ '--disable-ipc-flooding-protection',
|
|
|
+ '--disable-hang-monitor',
|
|
|
+ '--disable-prompt-on-repost',
|
|
|
+ '--disable-default-apps',
|
|
|
+ '--virtual-time-budget=5000' // Timeout virtuel pour CI
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
-};
|
|
|
+};
|