From 9858fc40d20914d7bbf556b9eeb9d1ee635d196a Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Fri, 5 Jun 2026 18:31:53 +0800 Subject: [PATCH] feat(tests): add currentWhereInput to various test cases --- packages/app-tests/dataGridEditor.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/app-tests/dataGridEditor.test.ts b/packages/app-tests/dataGridEditor.test.ts index 1978563f4..f0381a66d 100644 --- a/packages/app-tests/dataGridEditor.test.ts +++ b/packages/app-tests/dataGridEditor.test.ts @@ -122,6 +122,7 @@ test("row data helper reuses unchanged rows and clones dirty rows only", () => { searchText: ref(""), whereFilterInput: ref(""), orderByInput: ref(""), + currentWhereInput: computed(() => undefined), rowStatusFilter: ref("all"), getRowItem: () => undefined, pageSize: ref(100), @@ -170,6 +171,7 @@ test("cloning a row copies non-generated primary key values without executing sa searchText: ref(""), whereFilterInput: ref(""), orderByInput: ref(""), + currentWhereInput: computed(() => undefined), rowStatusFilter, pageSize: ref(100), currentPage: ref(1), @@ -246,6 +248,7 @@ test("cloning a row clears auto-generated key columns", async () => { searchText: ref(""), whereFilterInput: ref(""), orderByInput: ref(""), + currentWhereInput: computed(() => undefined), rowStatusFilter, pageSize: ref(100), currentPage: ref(1), @@ -299,6 +302,7 @@ test("saving deleted rows reloads current table data", async () => { searchText: ref("ada"), whereFilterInput: ref("name ILIKE '%a%'"), orderByInput: ref("id DESC"), + currentWhereInput: computed(() => "name ILIKE '%a%'"), rowStatusFilter, pageSize: ref(50), currentPage: ref(3), @@ -357,6 +361,7 @@ test("saving inserted rows reloads current table data", async () => { searchText: ref("linus"), whereFilterInput: ref("name ILIKE '%l%'"), orderByInput: ref("id DESC"), + currentWhereInput: computed(() => "name ILIKE '%l%'"), rowStatusFilter, pageSize: ref(50), currentPage: ref(2), @@ -404,6 +409,7 @@ test("saving edited rows without deletes does not reload table data", async () = searchText: ref(""), whereFilterInput: ref(""), orderByInput: ref(""), + currentWhereInput: computed(() => undefined), rowStatusFilter, pageSize: ref(50), currentPage: ref(1), @@ -460,6 +466,7 @@ test("saving manually typed JSON from a MySQL grid normalizes smart quotes", asy searchText: ref(""), whereFilterInput: ref(""), orderByInput: ref(""), + currentWhereInput: computed(() => undefined), rowStatusFilter, pageSize: ref(50), currentPage: ref(1), @@ -537,6 +544,7 @@ test("failed table data save records a failed history entry", async () => { sql: computed(() => "SELECT id, title FROM pp_questions"), searchText: ref(""), whereFilterInput: ref(""), + currentWhereInput: computed(() => undefined), orderByInput: ref(""), rowStatusFilter, pageSize: ref(50),