Refactor: Remove multi-run option from UI and logic

This commit is contained in:
2025-12-28 21:22:41 +11:00
parent 4208e79a58
commit 097109b3e9
2 changed files with 3 additions and 35 deletions

13
main.js
View File

@@ -69,7 +69,7 @@ async function runTest() {
body: JSON.stringify({
url: url,
isMobile: currentDevice === 'mobile',
runs: parseInt(document.getElementById('run-count').value),
runs: 1,
captureFilmstrip: captureFilmstrip
})
});
@@ -77,16 +77,7 @@ async function runTest() {
if (!response.ok) throw new Error('Test failed to start');
const data = await response.json();
// Handle multi-run immediate response
if (data.status === 'running' && data.suiteId) {
// Show progress for multi-run
document.getElementById('multi-run-progress').style.display = 'block';
pollSuiteStatus(data.suiteId, data.runs);
// Clear previous single result if any
document.getElementById('results-area').classList.remove('visible');
} else {
displayResults(data);
}
displayResults(data);
loadHistory(); // Refresh history