Skip to content

Commit

Permalink
tests: Refactor utility test bed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaraivanov committed Dec 12, 2024
1 parent c5b1ee5 commit 097096f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/common/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class FormAssociatedTestBed<T extends IgcFormControl> {
public submit(): FormData {
let data = initialFormData;

// let data = new FormData();
this.form.addEventListener(
'submit',
(e) => {
Expand All @@ -104,7 +103,7 @@ class FormAssociatedTestBed<T extends IgcFormControl> {
*/
public async setProperties(
props: { [K in keyof T]?: T[K] | string },
waitForUpdate = true
waitForUpdate = false
): Promise<void> {
Object.assign(this.element, props);
if (waitForUpdate) {
Expand All @@ -121,7 +120,7 @@ class FormAssociatedTestBed<T extends IgcFormControl> {
*/
public async setAttributes(
attributes: { [K in keyof T]?: T[K] | string },
waitForUpdate = true
waitForUpdate = false
): Promise<void> {
for (const [attr, value] of Object.entries(attributes)) {
this.element.setAttribute(attr, `${value}`);
Expand Down

0 comments on commit 097096f

Please sign in to comment.