Remove old and no longer needed component-id data tag applied by styleable helper

This commit is contained in:
Andrew Kingston 2021-09-20 12:20:34 +01:00
parent 10f754a9ad
commit 07e0cbb210
2 changed files with 1 additions and 2 deletions

View File

@ -145,7 +145,7 @@ Cypress.Commands.add("getComponent", componentId => {
.its("body") .its("body")
.should("not.be.null") .should("not.be.null")
.then(cy.wrap) .then(cy.wrap)
.find(`[data-component-id=${componentId}]`) .find(`[data-id=${componentId}]`)
}) })
Cypress.Commands.add("navigateToFrontend", () => { Cypress.Commands.add("navigateToFrontend", () => {

View File

@ -52,7 +52,6 @@ export const styleable = (node, styles = {}) => {
// Applies a style string to a DOM node // Applies a style string to a DOM node
const applyStyles = styleString => { const applyStyles = styleString => {
node.style = `${baseString}${styleString}` node.style = `${baseString}${styleString}`
node.dataset.componentId = componentId
} }
// Applies the "normal" style definition // Applies the "normal" style definition