Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 3, 2024
1 parent d9b86fa commit a03fc0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,10 +1139,7 @@ export default class Webform extends NestedDataComponent {
* @returns {*}
*/
/* eslint-disable no-unused-vars */
showErrors(errors, triggerEvent, onChange) {
if (!errors) {
return;
}
showErrors(errors, triggerEvent) {
this.loading = false;
if (!Array.isArray(errors)) {
errors = [errors];
Expand Down
1 change: 1 addition & 0 deletions src/components/editgrid/EditGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,7 @@ export default class EditGridComponent extends NestedArrayComponent {
}
else {
this.alert.clear();
this.alert = null;
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/select/Select.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ describe('Select Component', () => {

assert.equal(searchHasBeenDebounced, true);
done();
}, 50);
}, 200);
}, 500);
}, 300);
}).catch(done);
});

Expand Down Expand Up @@ -988,14 +988,14 @@ describe('Select Component', () => {
select.pristine = false;

setTimeout(() => {
assert(!select.errors.length, 'Select should be valid while changing');
assert(!select.visibleErrors.length, 'Select should be valid while changing');
select.focusableElement.dispatchEvent(new Event('blur'));

setTimeout(() => {
assert(select.errors.length, 'Should set error after Select component was blurred');
assert(select.visibleErrors.length, 'Should set error after Select component was blurred');
done();
}, 500);
}, 200);
}, 300);
}, 300);
}).catch(done);
});

Expand Down

0 comments on commit a03fc0c

Please sign in to comment.