()
| 77 | |
| 78 | // Helper function to wait for Vue reactivity |
| 79 | async function waitForVueUpdate() { |
| 80 | await nextTick() |
| 81 | // Additional small delay to ensure collection updates are processed |
| 82 | await new Promise((resolve) => setTimeout(resolve, 50)) |
| 83 | } |
| 84 | |
| 85 | // Helper function to poll for a condition until it passes or times out |
| 86 | async function waitFor(fn: () => void, timeout = 2000, interval = 20) { |