Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: add reset button to form fixture success state

Marioc8f29b6be1bd
diff --git a/tests/tools/fixtures/form.html b/tests/tools/fixtures/form.html
index e49a53c0..488911f9 100644
--- a/tests/tools/fixtures/form.html
+++ b/tests/tools/fixtures/form.html
@@ -86,6 +86,7 @@
<h2>Form Submitted Successfully!</h2>
<p class="verification-text">VERIFY_FORM_SUBMITTED_SUCCESS</p>
<div id="submitted-data"></div>
+ <button type="button" id="reset-form-btn" onclick="resetForm()">Reset Form</button>
</div>
</main>
@@ -147,6 +148,13 @@
`;
form.style.display = 'none';
});
+
+ function resetForm() {
+ const form = document.getElementById('contact-form');
+ form.reset();
+ form.style.display = '';
+ document.getElementById('form-result').style.display = 'none';
+ }
</script>
</body>
</html>