fix: 自适应表格高度并改用中文标签
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user