We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08ad872 + da6018f commit 7224c97Copy full SHA for 7224c97
cypress-action/cypress/e2e/e2e/loadDesign.js
@@ -70,17 +70,22 @@ const removeWidgets = () => {
70
"kanvas-bottom-dock",
71
"left-navigation-bar",
72
"top-navigation-bar",
73
+ "hide-from-design-snapshot",
74
];
75
- ids.forEach((className) => {
76
- try {
77
- cy.get(`#${className}`).invoke("remove");
78
- } catch (error) {
79
- console.log(`Error removing ${className}`);
80
- }
+ ids.forEach((id) => {
+ cy.get(`#${id}`, { timeout: 0 }).then(($el) => {
+ if ($el.length) {
+ $el.remove();
+ }
81
+ }).catch(() => {
82
+ // Element not found, do nothing
83
+ console.log(`Element #${id} not found`);
84
+ });
85
});
86
};
87
88
+
89
["light", "dark"].forEach((theme) => {
90
InfraShot(theme);
91
0 commit comments