fix(KB-657): fix test bugs and add InlineCreateCard CSS styles

- Fix QuickEntryBox test missing props destructuring
- Fix QuickEntryBox test using wrong initial state expectation
- Add .inline-create-toggle CSS styles for toggle button
- Add .inline-create-card--collapsed/.expanded modifier classes
- Add .inline-create-main-row layout styles
This commit is contained in:
gsxdsm
2026-04-02 09:33:05 -07:00
parent 72ab0acdba
commit e95ca2c0ec
2 changed files with 60 additions and 2 deletions

View File

@@ -246,7 +246,7 @@ describe("QuickEntryBox", () => {
});
it("maintains the collapsed and expanded styling contract on the root container", () => {
renderQuickEntryBox();
renderQuickEntryBox({}, { startCollapsed: true });
const box = screen.getByTestId("quick-entry-box");
expect(box.classList.contains("quick-entry-box--collapsed")).toBe(true);
@@ -1306,7 +1306,7 @@ describe("QuickEntryBox", () => {
});
it("clicking save button persists to localStorage", async () => {
renderQuickEntryBox({}, { startCollapsed: true });
const { props } = renderQuickEntryBox({}, { startCollapsed: true });
// Component starts with disclosure expanded by default
expandQuickEntry();
const textarea = screen.getByTestId("quick-entry-input");