From 0dc89d6c3dd8768e1d67dac00bf246d4a43c2a31 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 18 Aug 2026 05:52:52 +0000 Subject: [PATCH] test(e2e): tick objects before History revert execute Zero ticks is refused after #263 (not whole-schema). The happy-path revert suite still called Execute with an empty tree, so the button stayed disabled. Select all, same as the lossy edge cases. Co-authored-by: huy.phan9 --- apps/e2e/src/tests/schema-revert.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/e2e/src/tests/schema-revert.test.ts b/apps/e2e/src/tests/schema-revert.test.ts index 992a8660..f7f028bd 100644 --- a/apps/e2e/src/tests/schema-revert.test.ts +++ b/apps/e2e/src/tests/schema-revert.test.ts @@ -136,6 +136,7 @@ INSERT INTO customers (id, name, email) VALUES (1, 'Ada', 'ada@example.com'); } }); + await history.selectAllCompareObjects(); await history.executeRevert(); // The file is the source of truth: the index is back. If it is not, the @@ -182,6 +183,7 @@ INSERT INTO customers (id, name, email) VALUES (1, 'Ada', 'ada@example.com'); const forward = await history.migrationSqlText(); expect(forward, forward).toMatch(/DROP INDEX/i); + await history.selectAllCompareObjects(); await history.executeRevert(); await expect .poll(() => schemaText(), { timeout: 30_000 })