fix(editor): stabilize SQL run-statement gutter width
This commit is contained in:
1 parent
0862e63389
commit
c398a07573
4 files changed
+14
-24
No files matched your search
@@ -4,10 +4,9 @@ import { describe, expect, it } from "vitest";
|
||||
import { createStatementGutterMarkerDom, shouldShowStatementGutter } from "@/lib/editor/codemirrorStatementGutter";
|
||||
|
||||
describe("CodeMirror statement gutter marker", () => {
|
||||
it("omits the gutter when run buttons and status markers are absent", () => {
|
||||
expect(shouldShowStatementGutter(false, 0)).toBe(false);
|
||||
expect(shouldShowStatementGutter(true, 0)).toBe(true);
|
||||
expect(shouldShowStatementGutter(false, 1)).toBe(true);
|
||||
it("keeps gutter visibility controlled by the run-button preference", () => {
|
||||
expect(shouldShowStatementGutter(false)).toBe(false);
|
||||
expect(shouldShowStatementGutter(true)).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps execution status inside the run button column", () => {
|
||||
|
||||
Reference in new issue
Block a user