fix(assets): 素材库 - 修复主题按钮并新增批量全选 (#193)
This commit is contained in:
1 parent
97641f85d9
commit
1084fdef9f
4 files changed
+42
-5
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
describe("assets page batch toolbar", () => {
|
||||
test("places select all before cancel selection", () => {
|
||||
const source = readFileSync(resolve(import.meta.dir, "../src/pages/assets/index.tsx"), "utf8");
|
||||
const selectAllIndex = source.indexOf(">全选</Button>");
|
||||
const clearSelectionIndex = source.indexOf(">取消选择</Button>");
|
||||
|
||||
expect(selectAllIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(clearSelectionIndex).toBeGreaterThanOrEqual(0);
|
||||
expect(selectAllIndex).toBeLessThan(clearSelectionIndex);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user