MOBILE-3810 behat: Improve get header selector to adapt new titles
parent
fc96a23e8a
commit
e1f89c9eab
|
@ -568,7 +568,7 @@
|
||||||
const behatGetHeader = function() {
|
const behatGetHeader = function() {
|
||||||
log('Action - Get header');
|
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) {
|
titles = titles.filter(function(title) {
|
||||||
return isElementVisible(title, document.body);
|
return isElementVisible(title, document.body);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue