Issue #1848210 by dysrama, David_Rothstein, kid_icarus, YesCT, Gábor Hojtsy:...
Issue #1848210 by dysrama, David_Rothstein, kid_icarus, YesCT, Gábor Hojtsy: Fixed [Regression] Submitting a form in Overlay shows content + dsm() for a split second before redirecting to front-end theme.
// Make sure a bare minimum HTML page is displayed that contains the
// JavaScript necessary to close the overlay.
$this->assertRaw('<body class="overlay"></body>','An empty body tag is present on the page request after a node is created inside the overlay.');
$this->assertRaw('"closeOverlay":true','The JavaScript setting for closing the overlay is present on the page request after a node is created inside the overlay.');
// Visit another page and make sure that we now see the message saying the
// node was created (i.e., that it does not appear inside the overlay where
// no one would have time to read it before the overlay closes).
$this->drupalGet('');
$this->assertRaw(t('!post %title has been created.',array('!post'=>'Test content type','%title'=>'Test node title')),'Message about the node being created is displayed on the next page request after the overlay is closed.');