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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user