Skip to content

Commit

Permalink
e2e: set osparc-test-id attribute to iframes (ITISFoundation#5692)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Apr 18, 2024
1 parent 89bbbc5 commit 18ad294
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1028,7 +1028,7 @@ qx.Class.define("osparc.data.model.Node", {
this.__initLoadingPage();

const iframe = new osparc.widget.PersistentIframe();
osparc.utils.Utils.setIdToWidget(iframe, "iframe_"+this.getNodeId());
osparc.utils.Utils.setIdToWidget(iframe.getIframe(), "iframe_"+this.getNodeId());
if (osparc.product.Utils.isProduct("s4llite")) {
iframe.setShowToolbar(false);
}
Original file line number Diff line number Diff line change
@@ -198,6 +198,10 @@ qx.Class.define("osparc.widget.PersistentIframe", {
return standin;
},

getIframe: function() {
return this.__iframe;
},

getDiskUsageIndicator: function() {
return this.__diskUsageIndicator;
},
@@ -283,6 +287,7 @@ qx.Class.define("osparc.widget.PersistentIframe", {
this.__iframe.release();
}
},

destruct: function() {
this.__iframe.exclude();
this.__iframe.dispose();

0 comments on commit 18ad294

Please sign in to comment.