Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
layout_builder.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Oct 2019 at 15:48 UTC
Updated:
23 Jul 2020 at 13:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tim.plunkettThe FAIL patch adds just the assert, which will only find the first form on the page, not the one being loaded in the off-canvas.
Comment #4
tim.plunkettWhile #2 will catch the failure, it will be hard to debug. Asserts within closures interfere with the display of error messages.
Here's one that moves the assert out of the closure.
Comment #6
tim.plunkettBump.
Comment #8
tedbowIt seems like it would simpler to not use
waitFor()at all.We could just use
And then change the
$form_id_elementbased off that.Comment #9
deepak goyal commentedComment #10
deepak goyal commentedHi @tedbow
Made changes please review.
Comment #12
tedbow$off_canvas is not for id element. We still need the logic from the previous patch to get that
$off_canvas->find('hidden_field_selector', ['hidden_field', 'form_id'])'
And then basically the last 3 lines from the previous patch
Comment #13
Lal_Comment #14
tedbowSince this is private function and no caller was using
$timeoutwe can remove this here 🎉Nit: needs work for the extra line at the end of the docblock
The actual wait time does not change because
\Drupal\FunctionalJavascriptTests\JSWebAssert::waitForElementVisible()defaults to 10000 milliseconds.But nothing was ever returned from this function and the callers never relied on return value.
We should update this but I guess strictly speaking it should be another issue.
I say we fix it in a follow up and don't fix in this issue but if I committer wants to say it should just be fixed here I would glad to have it done here.
Needs work for the nit in 1)
Comment #15
ravi.shankar commentedHere I have made changes as mentioned in comment #14
Comment #16
tedbowThanks everyone! Looks good 🎉
Comment #17
alexpottCommitted 700a6ab and pushed to 9.1.x. Thanks!
Comment #21
alexpottBackported to 8.9.x and 9.0.x