Skip to content

Commit

Permalink
fixing another unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Feb 6, 2025
1 parent e068b56 commit edbba40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/client/src/pages/Editor/IDE/EditorPane/UI/List.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe("Widget List in Explorer tests", () => {
const widgetsTree: Element = await component.findByText(
children[0].widgetName,
{
selector: "div.t--entity-name",
selector: "span.t--entity-name",
},
{ timeout: 3000 },
);
Expand Down Expand Up @@ -346,9 +346,7 @@ describe("Widget List in Explorer tests", () => {

// TODO: Fix this the next time the file is edited
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const collapsible: any = component.container.querySelector(
`.t--entity-collapse-toggle[id="arrow-right-s-line"]`,
);
const collapsible: any = component.getByTestId(`entity-item-expand-icon`);

fireEvent.click(collapsible);

Expand Down

0 comments on commit edbba40

Please sign in to comment.