Skip to content

Commit

Permalink
🎨 e2e: move widget id from nodeTreeItem to label (#4281)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored May 30, 2023
1 parent 29bb9f1 commit 57bba7e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ qx.Class.define("osparc.component.widget.NodeTreeItem", {
});
this.__setNotHoveredStyle();
this.__attachEventHandlers();

osparc.utils.Utils.setIdToWidget(this, "nodeTreeItem");
},

properties: {
Expand Down Expand Up @@ -102,13 +100,15 @@ qx.Class.define("osparc.component.widget.NodeTreeItem", {
__optionsMenu: null,

__applyStudy: function() {
osparc.utils.Utils.setMoreToWidget(this, "root");
const label = this.getChildControl("label");
osparc.utils.Utils.setMoreToWidget(label, "root");

this.getChildControl("delete-button").exclude();
},

__applyNode: function(node) {
osparc.utils.Utils.setMoreToWidget(this, node.getNodeId());
const label = this.getChildControl("label");
osparc.utils.Utils.setMoreToWidget(label, node.getNodeId());

if (node.isDynamic()) {
this.getChildControl("fullscreen-button").show();
Expand Down Expand Up @@ -300,6 +300,7 @@ qx.Class.define("osparc.component.widget.NodeTreeItem", {
// The label
this.addLabel();
const label = this.getChildControl("label");
osparc.utils.Utils.setIdToWidget(label, "nodeTreeItem");
label.set({
allowGrowX: true,
allowShrinkX: true
Expand Down

0 comments on commit 57bba7e

Please sign in to comment.