Skip to content

Commit 14389f8

Browse files
fix: pass fixed uuid to toHtml in Styler.hide test to prevent flaky failures
The auto-generated table id (tsb-<random base-36>) could randomly contain "r0" or "r1", causing the not.toContain assertions to fail intermittently (~1% of runs). Passing a fixed uuid "x" makes the test deterministic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4d175f3 commit 14389f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/stats/style.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ describe("Styler.setCaption", () => {
391391
describe("Styler.hide", () => {
392392
test("hide index removes index column", () => {
393393
const df = makeNumericDf();
394-
const html = dataFrameStyle(df).hide(0).toHtml();
394+
const html = dataFrameStyle(df).hide(0).toHtml("x");
395395
expect(html).not.toContain("r0");
396396
expect(html).not.toContain("r1");
397397
});

0 commit comments

Comments
 (0)