🧪 Add additional nextTick calls in BaseModal unit tests to ensure proper DOM updates

This commit is contained in:
2026-01-28 22:25:10 +00:00
parent 155a3d3985
commit 61fe7c6594

View File

@@ -348,6 +348,7 @@ describe('BaseModal', () => {
await wrapper.setProps({ modelValue: true }); await wrapper.setProps({ modelValue: true });
await nextTick(); await nextTick();
await nextTick();
expect(document.body.style.overflow).toBe('hidden'); expect(document.body.style.overflow).toBe('hidden');
}); });
@@ -359,6 +360,7 @@ describe('BaseModal', () => {
} }
}); });
await nextTick();
await nextTick(); await nextTick();
expect(document.body.style.overflow).toBe('hidden'); expect(document.body.style.overflow).toBe('hidden');