- 🇩🇪Germany Anybody Porta Westfalica
#76 works for Drupal 10.0 - thanks @bnjmnm!
- Status changed to Needs review
over 1 year ago 11:00am 21 April 2023 - last update
over 1 year ago 29,300 pass - Status changed to Needs work
over 1 year ago 4:44pm 23 April 2023 - 🇺🇸United States smustgrave
Removing the needs follow up as it seems the todo mentioned in #57 is being addressed.
Think the issue summary could use some love though.
- Status changed to Needs review
over 1 year ago 10:34am 11 July 2023 - last update
over 1 year ago 29,807 pass - 🇫🇮Finland lauriii Finland
Here's a rerolled version for 11.x. Also updated the issue summary.
- Status changed to RTBC
over 1 year ago 10:28pm 18 July 2023 - last update
over 1 year ago Custom Commands Failed - 🇺🇸United States smustgrave
Tested this using the module provided dialog_renderer_test
Went to /dialog_renderer-test-links (like the test)
Verified Auto buttons default! and Auto buttons false! both contained .ui-dialog-buttonpane without the fixWith the fix only the first link contained .ui-dialog-buttonpane.
- Status changed to Needs work
over 1 year ago 8:02pm 20 July 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
This basically looks good, but I see a risk of introducing an intermittent test failure. Lets get that addressed and I bet this is good to go. It's simple enough that if the person who addresses it is comfortable with the change they can self-switch this back to RTBC.
+++ b/core/modules/system/tests/src/FunctionalJavascript/ModalRendererTest.php @@ -74,6 +74,29 @@ public function testModalRenderer() { + $this->clickLink('Auto buttons default!'); + $session_assert->assertWaitOnAjaxRequest(); + $session_assert->elementExists('css', '.ui-dialog-buttonpane .ui-dialog-buttonset .js-form-submit'); + + // When the drupalAutoButtons option is false, buttons SHOULD NOT be moved + // into the 'ui-dialog-buttonpane' container. + $this->drupalGet('/dialog_renderer-test-links'); + $this->clickLink('Auto buttons false!'); + $session_assert->assertWaitOnAjaxRequest(); + $session_assert->elementExists('css', '.form-actions'); + $session_assert->elementNotExists('css', '.ui-dialog-buttonpane'); + + // When the drupalAutoButtons option is true, buttons SHOULD be moved + // into the 'ui-dialog-buttonpane' container. + $this->drupalGet('/dialog_renderer-test-links'); + $this->clickLink('Auto buttons true!'); + $session_assert->assertWaitOnAjaxRequest(); + $session_assert->elementExists('css', '.ui-dialog-buttonpane .ui-dialog-buttonset .js-form-submit');
assertWaitOnAjaxRequest
to wait on a modal opening risks intermittent test failures. jQuery UI can continue to manipulate the elements after Drupal AJAX is done. For a simple use like this there isn't that much risk.. but given the number of test runs that happen daily it's best to be cautious. If this can insteadwaitForEementExists
on whatever element needs to appear for testing to continue, then it should be fine. - Status changed to Needs review
11 months ago 2:04pm 22 January 2024 - 🇩🇪Germany Grevil
Rerolled on current 11.x and switched out
$session_assert->assertWaitOnAjaxRequest()
in favour of$this->assertNotNull($session_assert->waitForElement()
as suggested in #86 🐛 Dialog drupalAutoButtons option should be respected on initial load Needs review .Let's see if tests still succeed.
- last update
11 months ago Build Successful - last update
11 months ago Build Successful - last update
11 months ago 26,070 pass, 1,812 fail - last update
11 months ago Build Successful - Merge request !6288Issue #2793343 by justin2pin, Anybody, mglaman, bnjmnm, Gauravvvv, lauriii, gints.erglis, Suresh Prabhu Parkala, paulocs, ranjith_kumar_k_u, beunerd, selva.swamy@gmail.com, nod_, Bram Linssen, naveenvalecha, Daniel Kulbe: Dialog drupalAutoButtons option s → (Closed) created by Grevil
- 🇩🇪Germany Grevil
No idea, why my patch did not pass tests, created another branch and MR with patch #87 applied here: https://git.drupalcode.org/project/drupal/-/merge_requests/6288
Let's see what the tests from the gitlab-ci are saying.
- 🇷🇸Serbia finnsky
@Grevil
https://www.drupal.org/project/drupal/issues/3401988 🐛 Spell-checking job fails with "Argument list too long" when too many files are changed Active
you need to update fork 11.x
- 🇩🇪Germany Grevil
@finnsky thanks! The fork doesn't even have 11.x haha, going to update it ASAP.
- Status changed to RTBC
11 months ago 1:32pm 23 January 2024 - 🇩🇪Germany Grevil
All green!
From #86 🐛 Dialog drupalAutoButtons option should be respected on initial load Needs review :
It's simple enough that if the person who addresses it is comfortable with the change they can self-switch this back to RTBC.
->Done
- Status changed to Fixed
11 months ago 3:18pm 23 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.