docs: enterprise refactor plan with ralph specs
This commit is contained in:
53
dist/core/ExplorationConfig.js
vendored
Normal file
53
dist/core/ExplorationConfig.js
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
/**
|
||||
* ExplorationConfig — defines scope, auth, fuzzing, multi-browser, a11y,
|
||||
* performance, visual regression, and network chaos settings for a session.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DEFAULT_EXPLORATION_CONFIG = exports.NETWORK_PROFILES = void 0;
|
||||
exports.NETWORK_PROFILES = {
|
||||
'fast-3g': { downloadKbps: 1500, uploadKbps: 750, latencyMs: 40, offline: false },
|
||||
'slow-3g': { downloadKbps: 400, uploadKbps: 150, latencyMs: 400, offline: false },
|
||||
'2g': { downloadKbps: 50, uploadKbps: 30, latencyMs: 800, offline: false },
|
||||
'offline': { downloadKbps: 0, uploadKbps: 0, latencyMs: 0, offline: true },
|
||||
'none': null,
|
||||
};
|
||||
exports.DEFAULT_EXPLORATION_CONFIG = {
|
||||
allowedDomains: [],
|
||||
maxStates: 50,
|
||||
maxDepth: 5,
|
||||
actionDelayMs: 500,
|
||||
sessionTimeoutMs: 300000,
|
||||
excludedPaths: [],
|
||||
excludedSelectors: [],
|
||||
auth: null,
|
||||
fuzzingEnabled: true,
|
||||
fuzzingIntensity: 'medium',
|
||||
browsers: ['chromium'],
|
||||
mobileDevice: 'none',
|
||||
viewport: null,
|
||||
accessibility: {
|
||||
enabled: true,
|
||||
minImpact: 'serious',
|
||||
wcagLevel: 'AA',
|
||||
},
|
||||
performance: {
|
||||
enabled: true,
|
||||
lcpThresholdMs: 4000,
|
||||
clsThreshold: 0.25,
|
||||
inpThresholdMs: 500,
|
||||
ttfbThresholdMs: 1800,
|
||||
},
|
||||
visualRegression: {
|
||||
enabled: false,
|
||||
threshold: 0.001,
|
||||
screenshotFullPage: false,
|
||||
ignoreSelectors: [],
|
||||
},
|
||||
networkChaos: {
|
||||
enabled: false,
|
||||
profile: 'none',
|
||||
blockedEndpoints: [],
|
||||
slowEndpoints: [],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user