commit
9e22fb7d1c
|
@ -190,10 +190,15 @@ export class TestingBehatRuntimeService {
|
||||||
closePopup(): string {
|
closePopup(): string {
|
||||||
this.log('Action - Close popup');
|
this.log('Action - Close popup');
|
||||||
|
|
||||||
const backdrops = Array
|
const backdrops = [
|
||||||
.from(document.querySelectorAll('ion-popover, ion-modal'))
|
...Array
|
||||||
.map(popover => popover.shadowRoot?.querySelector('ion-backdrop'))
|
.from(document.querySelectorAll('ion-popover, ion-modal'))
|
||||||
.filter(backdrop => !!backdrop);
|
.map(popover => popover.shadowRoot?.querySelector('ion-backdrop'))
|
||||||
|
.filter(backdrop => !!backdrop),
|
||||||
|
...Array
|
||||||
|
.from(document.querySelectorAll('ion-backdrop'))
|
||||||
|
.filter(backdrop => !!backdrop.offsetParent),
|
||||||
|
];
|
||||||
|
|
||||||
if (!backdrops.length) {
|
if (!backdrops.length) {
|
||||||
return 'ERROR: Could not find backdrop';
|
return 'ERROR: Could not find backdrop';
|
||||||
|
|
Loading…
Reference in New Issue