Issue #3319325 by mherchel, nod_, alexpott: Olivero: Mobile menu does not work when authenticated and BigPipe enabled(D10 only)

merge-requests/2928/head^2
Lauri Eskola 2022-11-09 15:04:59 +02:00
parent 0cf01a9acb
commit 0b030534d0
No known key found for this signature in database
GPG Key ID: 382FC0F5B0DF53F8
2 changed files with 10 additions and 1 deletions

View File

@ -172,4 +172,13 @@ module.exports = {
.click('[href="#footer"]')
.waitForElementNotVisible(headerNavSelector);
},
'Verify mobile menu works when Big Pipe when authenticated': (browser) => {
browser.drupalInstallModule('big_pipe').drupalLoginAsAdmin(() => {
browser
.drupalRelativeURL('/')
.assert.not.visible(headerNavSelector)
.click(mobileNavButtonSelector)
.waitForElementVisible(headerNavSelector);
});
},
};

View File

@ -140,7 +140,7 @@
const navButton = context.querySelector(
'[data-drupal-selector="mobile-nav-button"]',
);
const body = context.querySelector('body');
const body = document.body;
const overlay = context.querySelector(
'[data-drupal-selector="header-nav-overlay"]',
);