MOBILE-3947 behat: Don't search elements in hidden containers

main
Dani Palou 2024-03-08 12:09:14 +01:00
parent abd1a32f63
commit 69fca2f269
1 changed files with 5 additions and 0 deletions

View File

@ -376,6 +376,11 @@ export class TestingBehatDomUtilsService {
containers = containers
.filter(container => {
if (!this.isElementVisible(container)) {
// Ignore containers not visible.
return false;
}
if (container.tagName === 'ION-ALERT') {
// For some reason, in Behat sometimes alerts aren't removed from DOM, the close animation doesn't finish.
// Filter alerts with pointer-events none since that style is set before the close animation starts.