Skip to content

Commit 6eb2aed

Browse files
committed
add unit test
Signed-off-by: Ahalya Radhakrishnan <ahalya.radhakrishnan@ni.com>
1 parent ea284f4 commit 6eb2aed

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/datasources/data-frame/components/v2/DataFrameQueryEditorV2.test.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,5 +4218,16 @@ describe("DataFrameQueryEditorV2", () => {
42184218
});
42194219
});
42204220

4221+
describe("query configuration section", () => {
4222+
it("should render a collapse element with a class containing 'collapse__body'", () => {
4223+
renderComponent();
4224+
4225+
const queryConfigSection = document.querySelector('.query-configuration-section');
4226+
expect(queryConfigSection).toBeInTheDocument();
4227+
4228+
const collapseBody = queryConfigSection!.querySelector('[class*="collapse__body"]');
4229+
expect(collapseBody).not.toBeNull();
4230+
});
4231+
});
42214232
});
42224233

0 commit comments

Comments
 (0)