From fa3139872b8f3ce668257d8dd05d810450d58b2b Mon Sep 17 00:00:00 2001 From: alexandraRamanenka <60643585+alexandraRamanenka@users.noreply.github.com> Date: Thu, 11 Apr 2024 13:48:47 +0300 Subject: [PATCH] Update NestedDataComponent.unit.js --- src/components/_classes/nesteddata/NestedDataComponent.unit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/_classes/nesteddata/NestedDataComponent.unit.js b/src/components/_classes/nesteddata/NestedDataComponent.unit.js index 4002a2bf34..795cdcea88 100644 --- a/src/components/_classes/nesteddata/NestedDataComponent.unit.js +++ b/src/components/_classes/nesteddata/NestedDataComponent.unit.js @@ -46,7 +46,7 @@ describe('NestedDataComponent class', () => { ]); setTimeout(() => { - const modalPreviewValues = form.element.querySelector('.open-modal-button tr td input'); + const modalPreviewValues = form.element.querySelectorAll('.open-modal-button tr td input'); assert.equal(modalPreviewValues.length, 2); assert.deepEqual(Array.prototype.map.call(modalPreviewValues, (i) => i.value), ['test', 'test2']); done();