test correction about autocomplete (oruga) #1910 / #1815

This commit is contained in:
Laurent GAY
2025-12-10 18:36:45 +01:00
parent c8dd8b6e7f
commit 35a4dae309
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { beforeEach, describe, it, expect } from "vitest";
import { beforeEach, describe, it, expect, vi } from "vitest";
import { enUS } from "date-fns/locale";
import { routes } from "@/router";
import { createRouter, createWebHistory, Router } from "vue-router";
@@ -132,6 +132,9 @@ describe("FullAddressAutoComplete", () => {
await wrapper.vm.$nextTick();
await flushPromises();
await vi.waitFor(() => {
expect(requestHandlers.handle_0).toHaveBeenCalledTimes(1);
});
expect(htmlRemoveId(wrapper.html())).toMatchSnapshot();
await input.trigger("keydown", { key: "Down" });