mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 18:18:26 -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", () => {
|
test("It should prevent the second click on the 'submit' button", () => {
|
||||||
helpers.triggerEvent(button, 'click');
|
helpers.triggerEvent(button, 'click');
|
||||||
expect(button.disabled).toBe(true);
|
|
||||||
helpers.triggerEvent(button, 'click');
|
helpers.triggerEvent(button, 'click');
|
||||||
|
|
||||||
expect(button.disabled).toBe(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("It should allow clicks again after 1.5 seconds", () => {
|
test("It should allow clicks again after 1.5 seconds", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user