- Issue created by @fathershawn
- Merge request !12467Issue #3532159: Behaviors with certain swap strategies β (Closed) created by fathershawn
- πΊπΈUnited States fathershawn New York
New test cases fail using beforestart and afterend
- πΊπΈUnited States fathershawn New York
New tests now pass after adjusting
big_pipe.js
. - πΊπΈUnited States nicxvan
One question on the wait time haven't finished the review, but test only passes.
- πΊπΈUnited States fathershawn New York
Fixed @nicxvan concern about wait time
- Merge request !12492Draft: Resolve #3532159 "Htmx behavior attachment tests only" β (Closed) created by fathershawn
- πΊπΈUnited States fathershawn New York
Nightwatch tests were not visible in the "test only" job. I created a draft MR without the fix. Tests in that MR fail as expected.
- πΊπΈUnited States smustgrave
Been a fly on the wall for all this HTMX stuff and very neat stuff.
Came here from the request in the maintainer slack channel.
And yes unfortunately test-only with nightwatch does not work, probably because nightwatch decides when it wants to work.
Posting the failure from the draft MR
οΈTEST FAILURE (2m 5s): - 2 assertions failed; 1406 passed β 1) htmx/htmxTest β Swap Before (2.382s) β β NightwatchAssertError Timed out while waiting for element <.ajax-content[data-once="htmx-init"]> to be present for 1100 milliseconds. - expected "visible" but got: "not found" (1526ms) Error location: /builds/issue/drupal-3532159/core/tests/Drupal/Nightwatch/Tests/htmx/htmxTest.js:68 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 66 | .click('[name="replace"]') 67 | .waitForElementVisible(elementSelector, 1100) 68 | .waitForElementVisible(elementInitSelector, 1100) 69 | .assert.elementPresent(scriptSelector) 70 | .assert.elementPresent(cssSelector); ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β Swap After (2.382s) β β NightwatchAssertError Timed out while waiting for element <.ajax-content[data-once="htmx-init"]> to be present for 1100 milliseconds. - expected "visible" but got: "not found" (1524ms) Error location: /builds/issue/drupal-3532159/core/tests/Drupal/Nightwatch/Tests/htmx/htmxTest.js:91 ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 89 | .click('[name="replace"]') 90 | .waitForElementVisible(elementSelector, 1100) 91 | .waitForElementVisible(elementInitSelector, 1100) 92 | .assert.elementPresent(scriptSelector) 93 | .assert.elementPresent(cssSelector); ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Summary is complete
Will go on a limb since the change is small and seems to work. - π«π·France nod_ Lille
Committed and pushed 7cf609309d5 to 11.x and ac36d01e3f1 to 11.2.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.