Revert "fix(KB-166): revert mobile board flex layout from KB-164"

This reverts commit 042cddcb7a281e9886be21ee47b42d50d75a7706.
This commit is contained in:
Dustin Byrne
2026-03-28 10:01:36 -04:00
parent 27f40d20ac
commit 96f1070108
3 changed files with 346 additions and 103 deletions

View File

@@ -52,4 +52,23 @@ describe("Board", () => {
expect(screen.getByTestId(`column-${col}`)).toBeDefined();
}
});
it("renders all 5 columns as direct children of .board (CSS selector target)", () => {
renderBoard();
const board = screen.getByRole("main");
// The mock Column renders <div data-testid="column-{col}" />, which are direct children
const directChildren = Array.from(board.children);
expect(directChildren).toHaveLength(COLUMNS.length);
// Each direct child should be one of the column test-id elements
for (const col of COLUMNS) {
const colEl = screen.getByTestId(`column-${col}`);
expect(colEl.parentElement).toBe(board);
}
});
it("renders the board element as a <main> tag (semantic structure)", () => {
renderBoard();
const board = screen.getByRole("main");
expect(board.tagName).toBe("MAIN");
});
});