diff --git a/cypress/helper/FindShadowRoot.cy.ts b/cypress/helper/FindShadowRoot.cy.ts index 046ce4f146..836c66a1b7 100644 --- a/cypress/helper/FindShadowRoot.cy.ts +++ b/cypress/helper/FindShadowRoot.cy.ts @@ -1,12 +1,12 @@ export const findShadowRoot = (routes) => { - const segments = routes.split(">").map((route) => route.trim()); + const segments = routes.split('>').map((route) => route.trim()); let element = cy.get(segments[0]).shadow(); - for (const [idx,segment] of segments.entries()) { + for (const [idx, segment] of segments.entries()) { if (idx === 0) { - continue + continue; } else { element = element.find(segment).shadow(); } } return element; -}; \ No newline at end of file +};