Remove old and no longer needed component-id data tag applied by styleable helper
This commit is contained in:
parent
10f754a9ad
commit
07e0cbb210
|
@ -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", () => {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue