Skip to content

Commit bfac58e

Browse files
authored
test(ui5-daterange-picker): rework tests (SAP#11691)
1 parent 10c0cfd commit bfac58e

File tree

2 files changed

+219
-137
lines changed

2 files changed

+219
-137
lines changed

packages/cypress-ct-ui5-webc/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export function mount(component: JSX.Element, options: Options = {}) {
2121
.should($el => {
2222
const shadowrootsExist = [...$el].every(el => {
2323
if (el.tagName.includes("-") && el.shadowRoot) {
24+
if ("getDomRef" in el) {
25+
// @ts-expect-error
26+
return el.getDomRef();
27+
}
28+
2429
return el.shadowRoot.hasChildNodes();
2530
}
2631

0 commit comments

Comments
 (0)