From 8defbd1ed236ef222d2eed1ba4993232c5637232 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 20 Sep 2021 12:20:34 +0100 Subject: [PATCH] Remove old and no longer needed component-id data tag applied by styleable helper --- packages/builder/cypress/support/commands.js | 2 +- packages/client/src/utils/styleable.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index ea6ca81e66..dbfabeda3f 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -145,7 +145,7 @@ Cypress.Commands.add("getComponent", componentId => { .its("body") .should("not.be.null") .then(cy.wrap) - .find(`[data-component-id=${componentId}]`) + .find(`[data-id=${componentId}]`) }) Cypress.Commands.add("navigateToFrontend", () => { diff --git a/packages/client/src/utils/styleable.js b/packages/client/src/utils/styleable.js index 899854ecc9..3fce1bcf26 100644 --- a/packages/client/src/utils/styleable.js +++ b/packages/client/src/utils/styleable.js @@ -52,7 +52,6 @@ export const styleable = (node, styles = {}) => { // Applies a style string to a DOM node const applyStyles = styleString => { node.style = `${baseString}${styleString}` - node.dataset.componentId = componentId } // Applies the "normal" style definition