From 097096f0c115c5904cb08537e8bd441d51cb59aa Mon Sep 17 00:00:00 2001 From: Radoslav Karaivanov Date: Thu, 12 Dec 2024 08:38:22 +0200 Subject: [PATCH] tests: Refactor utility test bed methods --- src/components/common/utils.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/common/utils.spec.ts b/src/components/common/utils.spec.ts index 4303ff61c..4d15fa254 100644 --- a/src/components/common/utils.spec.ts +++ b/src/components/common/utils.spec.ts @@ -81,7 +81,6 @@ class FormAssociatedTestBed { public submit(): FormData { let data = initialFormData; - // let data = new FormData(); this.form.addEventListener( 'submit', (e) => { @@ -104,7 +103,7 @@ class FormAssociatedTestBed { */ public async setProperties( props: { [K in keyof T]?: T[K] | string }, - waitForUpdate = true + waitForUpdate = false ): Promise { Object.assign(this.element, props); if (waitForUpdate) { @@ -121,7 +120,7 @@ class FormAssociatedTestBed { */ public async setAttributes( attributes: { [K in keyof T]?: T[K] | string }, - waitForUpdate = true + waitForUpdate = false ): Promise { for (const [attr, value] of Object.entries(attributes)) { this.element.setAttribute(attr, `${value}`);