@@ -31,7 +31,7 @@ class ModerationActionsTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected$defaultTheme='classy';
protected$defaultTheme='stark';
/**
* {@inheritdoc}
@@ -81,16 +81,14 @@ public function testNodeStatusActions($action, $bundle, $warning_appears, $start
if($warning_appears){
if($action=='node_publish_action'){
$this->assertSession()
->elementContains('css','.messages--warning',node_get_type_label($node).' content items were skipped as they are under moderation and may not be directly published.');
$this->assertSession()->statusMessageContains(node_get_type_label($node).' content items were skipped as they are under moderation and may not be directly published.','warning');
}
else{
$this->assertSession()
->elementContains('css','.messages--warning',node_get_type_label($node).' content items were skipped as they are under moderation and may not be directly unpublished.');
$this->assertSession()->statusMessageContains(node_get_type_label($node).' content items were skipped as they are under moderation and may not be directly unpublished.','warning');
// The error message includes the actual file size limit which depends on
// the current environment, so we check for a part of the message.
$this->assertSession()->pageTextContains('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size');
// the maximum file size. The error message includes the actual file size
// limit which depends on the current environment, so we check for a part
// of the message.
$this->assertSession()->statusMessageContainsAfterWait('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size','error');
// Now upload a valid file and check that the error message disappears.