This commit is contained in:
Beverly Nguyen
2025-03-14 13:54:20 -07:00
parent 02a188a080
commit 10fb9f9b35

View File

@@ -46,10 +46,8 @@ describe('Prevent duplicate form submissions', () => {
test("It should prevent the second click on the 'submit' button", () => {
helpers.triggerEvent(button, 'click');
expect(button.disabled).toBe(true);
helpers.triggerEvent(button, 'click');
expect(button.disabled).toBe(true);
});
test("It should allow clicks again after 1.5 seconds", () => {