Merge pull request #31063 from appsmithorg/release
fix: Entity Explorer Test (#31062)
This commit is contained in:
commit
88cf8874c3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user