1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

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 f65b374622
commit 8defbd1ed2
2 changed files with 1 additions and 2 deletions

View file

@ -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", () => {

View file

@ -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