Skip to content

Commit

Permalink
fix: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gee05053 committed Dec 7, 2023
1 parent 4e5aa4a commit 9244b1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/helper/FindShadowRoot.cy.ts
Original file line number Diff line number Diff line change
@@ -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;
};
};

0 comments on commit 9244b1f

Please sign in to comment.