fix: 自适应表格高度并改用中文标签

This commit is contained in:
Nixevol
2026-09-30 15:22:11 +08:00
parent 2b68b6768c
commit 08c0eb09be
13 changed files with 236 additions and 37 deletions
+12 -1
View File
@@ -34,7 +34,7 @@ function wrap(Comp: object) {
});
}
describe("OverviewView 加载失败", () => {
describe("OverviewView", () => {
beforeEach(() => {
setActivePinia(createPinia());
mockApi._setSession();
@@ -68,7 +68,18 @@ describe("OverviewView 加载失败", () => {
await flushPromises();
expect(w.text()).toContain("0.1.0");
expect(w.text()).toContain("其中自助注册");
expect(w.text()).not.toContain("加载失败");
w.unmount();
});
it("成功加载后显示自助注册数", async () => {
const w = mount(wrap(OverviewView), {
global: { plugins: [createPinia()] },
attachTo: document.body,
});
await flushPromises();
expect(w.text()).toContain("其中自助注册");
w.unmount();
});
});