@@ -1224,13 +1224,11 @@ async function startFailedRequests() {
12241224 const requestCount = parseInt ( document . getElementById ( 'failedRequestCount' ) . value ) || 10 ;
12251225
12261226 const startBtn = document . getElementById ( 'btnStartFailedRequests' ) ;
1227- const stopBtn = document . getElementById ( 'btnStopFailedRequests' ) ;
12281227
12291228 try {
12301229 logEvent ( 'failedrequests' , `Generating ${ requestCount } HTTP 500 errors...` ) ;
12311230
12321231 startBtn . disabled = true ;
1233- stopBtn . disabled = false ;
12341232
12351233 const response = await fetch ( `${ CONFIG . apiBaseUrl } /failedrequest/start` , {
12361234 method : 'POST' ,
@@ -1251,21 +1249,20 @@ async function startFailedRequests() {
12511249 const error = await response . json ( ) ;
12521250 logEvent ( 'failedrequests' , `Failed to start: ${ error . message || error . title || 'Unknown error' } ` ) ;
12531251 startBtn . disabled = false ;
1254- stopBtn . disabled = true ;
12551252 }
12561253 } catch ( err ) {
12571254 logEvent ( 'failedrequests' , `Request failed: ${ err . message } ` ) ;
12581255 startBtn . disabled = false ;
1259- stopBtn . disabled = true ;
12601256 }
12611257}
12621258
12631259/**
12641260 * Stops the failed request simulator.
1261+ * Note: Stop button removed from UI - requests complete too quickly to intervene.
1262+ * This function retained for API compatibility.
12651263 */
12661264async function stopFailedRequests ( ) {
12671265 const startBtn = document . getElementById ( 'btnStartFailedRequests' ) ;
1268- const stopBtn = document . getElementById ( 'btnStopFailedRequests' ) ;
12691266
12701267 try {
12711268 logEvent ( 'failedrequests' , 'Stopping failed request simulator...' ) ;
@@ -1286,7 +1283,6 @@ async function stopFailedRequests() {
12861283 logEvent ( 'failedrequests' , `Request failed: ${ err . message } ` ) ;
12871284 } finally {
12881285 startBtn . disabled = false ;
1289- stopBtn . disabled = true ;
12901286 }
12911287}
12921288
@@ -1295,7 +1291,6 @@ async function stopFailedRequests() {
12951291 */
12961292async function pollFailedRequestStatus ( ) {
12971293 const startBtn = document . getElementById ( 'btnStartFailedRequests' ) ;
1298- const stopBtn = document . getElementById ( 'btnStopFailedRequests' ) ;
12991294
13001295 try {
13011296 const response = await fetch ( `${ CONFIG . apiBaseUrl } /failedrequest/status` ) ;
@@ -1308,7 +1303,6 @@ async function pollFailedRequestStatus() {
13081303 } else {
13091304 // Simulation ended
13101305 startBtn . disabled = false ;
1311- stopBtn . disabled = true ;
13121306 removeSimulationsByType ( 'failedrequest' ) ;
13131307
13141308 if ( status . requestsCompleted > 0 ) {
@@ -1319,7 +1313,6 @@ async function pollFailedRequestStatus() {
13191313 } catch ( err ) {
13201314 // Connection lost - probably a restart
13211315 startBtn . disabled = false ;
1322- stopBtn . disabled = true ;
13231316 }
13241317}
13251318
@@ -1659,11 +1652,9 @@ document.addEventListener('DOMContentLoaded', async () => {
16591652 document . getElementById ( 'btnStartSlowRequests' ) . addEventListener ( 'click' , startSlowRequests ) ;
16601653 document . getElementById ( 'btnStopSlowRequests' ) . addEventListener ( 'click' , stopSlowRequests ) ;
16611654 document . getElementById ( 'btnStartFailedRequests' ) . addEventListener ( 'click' , startFailedRequests ) ;
1662- document . getElementById ( 'btnStopFailedRequests' ) . addEventListener ( 'click' , stopFailedRequests ) ;
16631655
16641656 // Initialize slow request Stop button as disabled
16651657 document . getElementById ( 'btnStopSlowRequests' ) . disabled = true ;
1666- document . getElementById ( 'btnStopFailedRequests' ) . disabled = true ;
16671658
16681659 // Wire up side panel toggle
16691660 initializeSidePanel ( ) ;
0 commit comments