Skip to content

Commit

Permalink
fix(bottom-dock-and-action-toolbar): remove bottom dock and action to…
Browse files Browse the repository at this point in the history
…olbar from screenshot

Signed-off-by: jerensl <[email protected]>
  • Loading branch information
jerensl committed Sep 24, 2024
1 parent bf8d566 commit ee370b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress-action/cypress/e2e/e2e/loadDesign.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,19 @@ const captureSnapshot = ({ window, designId, theme }) => {

const removeWidgets = () => {
const classes = ["MuiToolbar-root", "MuiDrawer-paperAnchorDockedLeft", "MuiSpeedDial-root"] ;
const ids = ["action-toolbar", "kanvas-bottom-dock"] ;

classes.forEach((className) => {
cy.get(`.${className}`).each(($el) => {
cy.wrap($el).invoke('remove');
});
});

ids.forEach((className) => {
cy.get(`#${className}`).each(($el) => {
cy.wrap($el).invoke('remove');
});
});
};

["light", "dark"].forEach((theme) => {
Expand Down

0 comments on commit ee370b5

Please sign in to comment.