mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-03 16:09:06 -04:00
jest
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user