Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Jan 31, 2025
1 parent 58a031a commit ec98e79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ describe("control-item renders correctly", () => {
/>
);
const { container } = wrapper;
const controlDisabledLabeled = container.getElementsByClassName("properties-control-label-disabled")[0];
const controlDisabledLabeled = container.getElementsByClassName("properties-label-hidden")[0];

if (controlDisabledLabeled) {
const displayStyle = controlDisabledLabeled.style.display;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe("spinnerControl paramDef render correctly", () => {
});

// Spinner Disabled and Spinner Hidden should not be displayed
const controlDisabledLabeled = container.querySelectorAll(".properties-control-label-disabled");
const controlDisabledLabeled = container.querySelectorAll(".properties-label-hidden");
controlDisabledLabeled.forEach((label) => {
const displayStyle = label.style.display;
expect(displayStyle).to.equal("none");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("uiItemParamDef render correctly when the control label is hidden", ()
const controllabels = wrapper.find("label.properties-control-label");
expect(controllabels).to.have.length(6);

const controlDisabledLabled = controllabels.find(".properties-control-label-disabled");
const controlDisabledLabled = controllabels.find(".properties-label-hidden");
controlDisabledLabled.forEach((label) => {
const displayStyle = label.getDOMNode().style.display;
expect(displayStyle).to.equal("none");
Expand Down

0 comments on commit ec98e79

Please sign in to comment.