From e1f89c9eab06bcdd7f20916a00bb9e9b668b4425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 24 Nov 2021 10:47:10 +0100 Subject: [PATCH] MOBILE-3810 behat: Improve get header selector to adapt new titles --- tests/behat/app_behat_runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/behat/app_behat_runtime.js b/tests/behat/app_behat_runtime.js index d26f86651..5c1ff5e84 100644 --- a/tests/behat/app_behat_runtime.js +++ b/tests/behat/app_behat_runtime.js @@ -568,7 +568,7 @@ const behatGetHeader = function() { log('Action - Get header'); - let titles = Array.from(document.querySelectorAll('ion-header ion-title, ion-header h1')); + let titles = Array.from(document.querySelectorAll('.ion-page:not(.ion-page-hidden) > ion-header h1')); titles = titles.filter(function(title) { return isElementVisible(title, document.body); });