feat(docs): align documentation shell with HeroUI baseline

This commit is contained in:
maoyingjie
2026-10-24 07:18:36 +08:00
parent 406497a20f
commit b2246f0058
33 changed files with 2499 additions and 1540 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { mount, flushPromises } from "@vue/test-utils";
import { mount, flushPromises, DOMWrapper } from "@vue/test-utils";
import { createSSRApp, defineComponent, h, ref } from "vue";
import { renderToString } from "@vue/server-renderer";
import {
@@ -620,7 +620,7 @@ describe("Select async demo lifecycle", () => {
'[data-slot="select-popover"] button',
),
].find((button) => button.textContent?.includes("加载更多"))!;
more.click();
await new DOMWrapper(more).trigger("click");
await flushPromises();
expect(w.get("select").text()).toContain("bulbasaur");
const retry = [
@@ -629,7 +629,7 @@ describe("Select async demo lifecycle", () => {
),
].find((button) => button.textContent?.includes("重试"))!;
expect(retry).toBeTruthy();
retry.click();
await new DOMWrapper(retry).trigger("click");
await flushPromises();
await vi.waitFor(() =>
expect(w.get("select").text()).toContain("ivysaur"),