MOBILE-3947 behat: Don't search elements in hidden containers
parent
abd1a32f63
commit
69fca2f269
|
@ -376,6 +376,11 @@ export class TestingBehatDomUtilsService {
|
||||||
|
|
||||||
containers = containers
|
containers = containers
|
||||||
.filter(container => {
|
.filter(container => {
|
||||||
|
if (!this.isElementVisible(container)) {
|
||||||
|
// Ignore containers not visible.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (container.tagName === 'ION-ALERT') {
|
if (container.tagName === 'ION-ALERT') {
|
||||||
// For some reason, in Behat sometimes alerts aren't removed from DOM, the close animation doesn't finish.
|
// 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.
|
// Filter alerts with pointer-events none since that style is set before the close animation starts.
|
||||||
|
|
Loading…
Reference in New Issue