Merge pull request #31063 from appsmithorg/release

fix: Entity Explorer Test (#31062)
This commit is contained in:
Trisha Anand 2024-02-12 18:58:50 +05:30 committed by GitHub
commit 88cf8874c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,6 +81,13 @@ describe("Entity Explorer tests", () => {
<WidgetsEditorEntityExplorer />
</MockPageDSL>,
);
const widgetsTree: any = component.queryByText("Widgets", {
selector: "div.t--entity-name",
});
act(() => {
fireEvent.click(widgetsTree);
jest.runAllTimers();
});
const tabsWidget = component.queryByText(children[0].widgetName);
expect(tabsWidget).toBeTruthy();
});
@ -106,13 +113,6 @@ describe("Entity Explorer tests", () => {
<WidgetsEditorEntityExplorer />
</MockPageDSL>,
);
const widgetsTree: any = component.queryByText("Widgets", {
selector: "div.t--entity-name",
});
act(() => {
fireEvent.click(widgetsTree);
jest.runAllTimers();
});
const tabsWidget: any = component.queryByText(children[0].widgetName);
act(() => {
fireEvent.click(tabsWidget);