MOBILE-3810 behat: Improve get header selector to adapt new titles

main
Pau Ferrer Ocaña 2021-11-24 10:47:10 +01:00
parent fc96a23e8a
commit e1f89c9eab
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});