@@ -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 { enUS } from "date-fns/locale";
|
||||||
import { routes } from "@/router";
|
import { routes } from "@/router";
|
||||||
import { createRouter, createWebHistory, Router } from "vue-router";
|
import { createRouter, createWebHistory, Router } from "vue-router";
|
||||||
@@ -132,6 +132,9 @@ describe("FullAddressAutoComplete", () => {
|
|||||||
|
|
||||||
await wrapper.vm.$nextTick();
|
await wrapper.vm.$nextTick();
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
await vi.waitFor(() => {
|
||||||
|
expect(requestHandlers.handle_0).toHaveBeenCalledTimes(1);
|
||||||
|
});
|
||||||
expect(htmlRemoveId(wrapper.html())).toMatchSnapshot();
|
expect(htmlRemoveId(wrapper.html())).toMatchSnapshot();
|
||||||
|
|
||||||
await input.trigger("keydown", { key: "Down" });
|
await input.trigger("keydown", { key: "Down" });
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ exports[`FullAddressAutoComplete > Show list 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</transition-stub>
|
</transition-stub>
|
||||||
<!--teleport end-->
|
<!--teleport end-->
|
||||||
</div><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button o-button--disabled reset-area !h-auto" disabled="" title="Clear address field"><span class="o-button__wrapper"><span data-oruga="icon" class="o-icon o-button__icon o-button__icon-left"><i class="mdi mdi-close mdi-24px"></i></span>
|
</div><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button reset-area !h-auto" title="Clear address field"><span class="o-button__wrapper"><span data-oruga="icon" class="o-icon o-button__icon o-button__icon-left"><i class="mdi mdi-close mdi-24px"></i></span>
|
||||||
<!---->
|
<!---->
|
||||||
<!----></span>
|
<!----></span>
|
||||||
</button>
|
</button>
|
||||||
@@ -89,7 +89,7 @@ exports[`FullAddressAutoComplete > Show list 2`] = `
|
|||||||
</div>
|
</div>
|
||||||
</transition-stub>
|
</transition-stub>
|
||||||
<!--teleport end-->
|
<!--teleport end-->
|
||||||
</div><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button o-button--disabled reset-area !h-auto" disabled="" title="Clear address field"><span class="o-button__wrapper"><span data-oruga="icon" class="o-icon o-button__icon o-button__icon-left"><i class="mdi mdi-close mdi-24px"></i></span>
|
</div><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button reset-area !h-auto" title="Clear address field"><span class="o-button__wrapper"><span data-oruga="icon" class="o-icon o-button__icon o-button__icon-left"><i class="mdi mdi-close mdi-24px"></i></span>
|
||||||
<!---->
|
<!---->
|
||||||
<!----></span>
|
<!----></span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user