feat(docs): align documentation shell with HeroUI baseline
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user