🧪 Add additional nextTick calls in BaseModal unit tests to ensure proper DOM updates
This commit is contained in:
@@ -348,6 +348,7 @@ describe('BaseModal', () => {
|
||||
|
||||
await wrapper.setProps({ modelValue: true });
|
||||
await nextTick();
|
||||
await nextTick();
|
||||
|
||||
expect(document.body.style.overflow).toBe('hidden');
|
||||
});
|
||||
@@ -359,6 +360,7 @@ describe('BaseModal', () => {
|
||||
}
|
||||
});
|
||||
|
||||
await nextTick();
|
||||
await nextTick();
|
||||
expect(document.body.style.overflow).toBe('hidden');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user