Comments

internetdevels’s picture

Status: Active » Needs review
StatusFileSize
new1.91 KB

Status: Needs review » Needs work
internetdevels’s picture

Status: Needs work » Needs review
StatusFileSize
new1.91 KB

Status: Needs review » Needs work
internetdevels’s picture

Status: Needs work » Needs review
StatusFileSize
new1.91 KB

New one.

dipen chaudhary’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new1.92 KB

Order of _title matters, tested locally.

Status: Needs review » Needs work

The last submitted patch, 7: 2102479-ajax-test-title-7.patch, failed testing.

dipen chaudhary’s picture

Status: Needs work » Needs review

Not sure why this failed on the testbot, local test shows that it returns the correct title in the command array. Re-queuing to see if its pertinent.

7: 2102479-ajax-test-title-7.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 7: 2102479-ajax-test-title-7.patch, failed testing.

vijaycs85’s picture

@dipen chaudhary, I do remember we used to face this issue with test server before. as we can see both strings are same, but test fails on assertEqual(). Not sure what we did to make it work.

vijaycs85’s picture

Status: Needs work » Needs review

7: 2102479-ajax-test-title-7.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 7: 2102479-ajax-test-title-7.patch, failed testing.

dipen chaudhary’s picture

@Vijay,

The testbot results shows command array to have the title "Home" and not "Ajax Form contents" for some reason, whereas local test shows it to be correct :(

What do we do in such scenarios where there is discrepancy between local test and testbot? My local environment is uptodate.

dipen chaudhary’s picture

StatusFileSize
new2.27 KB
new1.15 KB

After some investigation and looking at some other code found out --

$form['#title'] = t('');

was not the right way to set modal dialog title, _title in routing.yml helped.

vijaycs85’s picture

Yep, if it is static title and not changing inside callback, we can set it in routing file.

+++ b/core/modules/system/tests/modules/ajax_test/lib/Drupal/ajax_test/AjaxTestForm.php
@@ -38,7 +37,7 @@
+    ¶

Minor: Empty spaces or tab character.

dipen chaudhary’s picture

Status: Needs work » Needs review
StatusFileSize
new2.1 KB
new1.04 KB

Removed some unnecessary whitespaces.

The last submitted patch, 17: 2102479-ajax-test-title-16.patch, failed testing.

dawehner’s picture

The last submitted patch, 17: 2102479-ajax-test-title-16.patch, failed testing.

dawehner’s picture

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Good to go. still applies with code base...

catch’s picture

Priority: Normal » Critical
dries’s picture

Status: Reviewed & tested by the community » Fixed

Looks good! Committed to 8.x. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.