Commit d1a04fb7 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2938800 by markconroy, David_Rothstein, ckrina, smaz, Eli-T, cehfisher,...

Issue #2938800 by markconroy, David_Rothstein, ckrina, smaz, Eli-T, cehfisher, larowlan: Finalize wording for Toolbar warning message
parent 554e251d
......@@ -46,7 +46,7 @@ function demo_umami_toolbar() {
$items['experimental-profile-warning']['#type'] = 'toolbar_item';
$items['experimental-profile-warning']['tab'] = [
'#type' => 'inline_template',
'#template' => '<a class="toolbar-warning" href="{{ more_info_link }}">This installation is for demonstration purposes only.</a>',
'#template' => '<a class="toolbar-warning" href="{{ more_info_link }}">This site is intended for demonstration purposes.</a>',
'#context' => [
'more_info_link' => 'https://www.drupal.org/node/2941833',
],
......
......@@ -140,27 +140,27 @@ public function testDemonstrationWarningMessage() {
// Check when editing a node, the warning is visible.
$this->drupalGet($recipe_node->toUrl('edit-form'));
$web_assert->statusCodeEquals('200');
$web_assert->pageTextContains('This installation is for demonstration purposes only.');
$web_assert->pageTextContains('This site is intended for demonstration purposes.');
// Check when adding a node, the warning is visible.
$this->drupalGet('node/add/recipe');
$web_assert->statusCodeEquals('200');
$web_assert->pageTextContains('This installation is for demonstration purposes only.');
$web_assert->pageTextContains('This site is intended for demonstration purposes.');
// Check when looking at admin/content, the warning is visible.
$this->drupalGet('admin/content');
$web_assert->statusCodeEquals('200');
$web_assert->pageTextContains('This installation is for demonstration purposes only.');
$web_assert->pageTextContains('This site is intended for demonstration purposes.');
// Check when viewing a node, the warning is not visible.
$this->drupalGet($recipe_node->toUrl());
$web_assert->statusCodeEquals('200');
$web_assert->pageTextNotContains('This installation is for demonstration purposes only.');
$web_assert->pageTextNotContains('This site is intended for demonstration purposes.');
// Check when viewing the homepage, the warning is not visible.
$this->drupalGet('<front>');
$web_assert->statusCodeEquals('200');
$web_assert->pageTextNotContains('This installation is for demonstration purposes only.');
$web_assert->pageTextNotContains('This site is intended for demonstration purposes.');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment