chore: remove legacy SSR checks and consolidate migration maintenance
This commit is contained in:
@@ -260,40 +260,6 @@ it("matches all 7/10 fixed baseline previews and mounts every shared SFC without
|
||||
expect(error.mock.calls).toEqual([]);
|
||||
});
|
||||
|
||||
it("hydrates initial IDs without mismatches and updates the actual linked panel", async () => {
|
||||
const { createSSRApp } = await import("vue");
|
||||
const { renderToString } = await import("@vue/server-renderer");
|
||||
const html = await renderToString(createSSRApp(BasicTabs));
|
||||
const root = document.createElement("div");
|
||||
root.innerHTML = html;
|
||||
document.body.appendChild(root);
|
||||
const before = Array.from(root.querySelectorAll("[role=tab]")).map(
|
||||
(el) => el.id,
|
||||
);
|
||||
const warn = vi.spyOn(console, "warn").mockImplementation(() => {}),
|
||||
error = vi.spyOn(console, "error").mockImplementation(() => {});
|
||||
const app = createSSRApp(BasicTabs);
|
||||
app.mount(root);
|
||||
await settle();
|
||||
try {
|
||||
expect(
|
||||
Array.from(root.querySelectorAll("[role=tab]")).map((el) => el.id),
|
||||
).toEqual(before);
|
||||
expect(warn.mock.calls).toEqual([]);
|
||||
expect(error.mock.calls).toEqual([]);
|
||||
const last = root.querySelectorAll("[role=tab]")[2] as HTMLElement;
|
||||
last.dispatchEvent(
|
||||
new MouseEvent("mousedown", { bubbles: true, button: 0 }),
|
||||
);
|
||||
await settle();
|
||||
expect(
|
||||
document.getElementById(last.getAttribute("aria-controls")!)?.hidden,
|
||||
).toBe(false);
|
||||
} finally {
|
||||
app.unmount();
|
||||
}
|
||||
});
|
||||
|
||||
it("preserves dynamic caller ARIA through the native slot boundary", async () => {
|
||||
const controls = ref("external"),
|
||||
label = ref("label-one");
|
||||
|
||||
Reference in New Issue
Block a user