- Issue created by @plopesc
- Merge request !11124Issue #3504722: Navigation Expand/Collapse logic is not working properly in... β (Closed) created by plopesc
- πͺπΈSpain plopesc Valladolid
Created MR where the mentioned if clause is replaced by a check for the element in the context.
Also updated the specific Nightwatch test for this functionality to use big_pipe.Tested manually and at first glance it works well, but a review from more experienced JS developer would be appreciated.
Hi @plopesc,
I followed the same steps you mentioned and performed a fresh setup with the following modules. After installing the modules, the collapse and expand functionality worked as expected for me.
Does this issue occur consistently for you, or is it intermittent? Please let me know if there are any specific steps or configurations you have applied so I can look more effectively.
- π·πΈSerbia finnsky
I suddenly discovered that we don't need context and behavior.
- πͺπΈSpain plopesc Valladolid
Tested manually and it behaves as expected, fixing the reported bug.
However, the JS here is out of my technical knowledge. So I prefer to have the RTBC signoff from a more experienced FE developer.
Thank you!
- πΊπΈUnited States smustgrave
So ran the test-only feature and appears to be passing. Possible it could be something else?
- π·πΈSerbia finnsky
@smustgrave i'm not sure. what you mean? tests green. we need review here
- πΊπΈUnited States smustgrave
Unless nightwatch doesnβt work in the test only feature Iβd expect the test to fail without the fix
- π·πΈSerbia finnsky
Then I would solve the testing problem in the next task. Here we have a critical bug.
I have no idea how the BigPipe works and how well it is handled by Nightwatch. But now the Navigation module does not work at all in Olivero and partly in Claro.
- π·πΈSerbia finnsky
https://www.drupal.org/project/drupal/issues/3506880 π Nightwatch test Expand/Collapse passed with broken Navigation Active
- πΊπΈUnited States smustgrave
Iβll leave for someone else then. But typically see that when tests are pushed to a follow up they usually donβt happen
- πͺπΈSpain plopesc Valladolid
Made some new changes in the Nightwatch test to ensure that cache is cleared before reloading the navigation after installing bigpipe and it failed locally without the JS changes.
However, the test-only job stays green. I don't see whether the specific nightwatch test was executed either. Could it be something wrong with the CI job?
- π¬π§United Kingdom catch
I'm not sure the test only job supports nightwatch at all.
It might be worth a second, test only MR, to show the nightwatch test failing without the fix just to make sure it's not a bigger CI issue.
- Merge request !11227Issue #3504722: Navigation Expand/Collapse logic is not working properly in... TEST ONLY β (Open) created by plopesc
- πͺπΈSpain plopesc Valladolid
Created MR 11227 that demonstrates that test-only changes break the Nightwatch test, while the original MR 11124 is still green.
- π¨π¦Canada m4olivei Grimsby, ON
The code looks great, some nice simplifications while addressing the bug.
I've tested with and without big_pipe. The expand/collapse logic works in both scenarios. I've also tested all of the triggers for expand/collapse, which include the hamburger, close icon, and overlay on mobile as well as the bottom left arrow on desktop. All of those scenarios work as designed.
RTBC for me. Nice work all!
- πͺπΈSpain plopesc Valladolid
@nod_ if I'm not mistaken, this bug was a regression introduced by π Use a placeholder for the navigation toolbar Active to adapt Navigation to π Render the navigation toolbar in a placeholder Active and looks like that none of them were backported to 11.1.x.
Not sure if we need to backport this one to 11.1.x then.
Automatically closed - issue fixed for 2 weeks with no activity.