Unverified Commit 032661ed authored by alexpott's avatar alexpott
Browse files

Issue #2151001 by thalles, ridhimaabrol24, paulocs, pankaj.singh, kim.pepper,...

Issue #2151001 by thalles, ridhimaabrol24, paulocs, pankaj.singh, kim.pepper, alexpott: Write a tour for block layout page
parent 0345c337
langcode: en
status: true
dependencies:
module:
- block
id: block-layout
label: 'Block Layout Page'
module: block
routes:
- route_name: block.admin_display
tips:
block-layout:
id: block-layout
plugin: text
label: 'Block Layout'
body: 'Blocks are boxes of content rendered into an area, or region, of a web page that can be displayed in regions (such as footer or sidebar) on your page.'
weight: 1
place-block:
id: place-block
plugin: text
label: 'Place Blocks'
body: 'Any custom or contributed block can be added to a particular region by clicking on a button Place block. A new block can also be created by clicking on Place Block'
weight: 2
attributes:
data-class: button--small
block-region:
id: block-region
plugin: text
label: 'Block Region'
body: 'Assign or change the region of a block by clicking here. A dropdown list with all the regions will appear.You can place one block in multiple regions.'
weight: 3
attributes:
data-class: block-region-select
configure-block:
id: configure-block
plugin: text
label: 'Configure Block'
body: 'By Clicking on "Configure" you can go ahead and edit the contents of the block, deal with the visibility settings and even change the placement of where it is on your theme.'
weight: 4
attributes:
data-class: dropbutton-widget
custom-block-library:
id: custom-block-library
plugin: text
label: 'Custom Block Library'
body: 'The block management screen also has an another tab on the top which is used to add Custom blocks. The name of the tab is "Custom block library". This tab ultimately provides a link to add custom blocks.'
weight: 5
<?php
namespace Drupal\Tests\block\Functional;
use Drupal\Tests\tour\Functional\TourTestBase;
/**
* Tests the Block Layout tour.
*
* @group block
*/
class BlockLayoutTourTest extends TourTestBase {
/**
* An admin user with administrative permissions for Blocks.
*
* @var \Drupal\user\UserInterface
*/
protected $adminUser;
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = ['block', 'tour'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser(['administer blocks', 'access tour']);
$this->drupalLogin($this->adminUser);
$this->drupalPlaceBlock('local_actions_block');
}
/**
* Tests Block Layout tour tip availability.
*/
public function testBlockLayoutTourTips() {
$this->drupalGet('admin/structure/block');
$this->assertTourTips();
}
}
......@@ -102,7 +102,7 @@ protected function getEntityCounts() {
'path_alias' => 8,
'taxonomy_term' => 15,
'taxonomy_vocabulary' => 7,
'tour' => 5,
'tour' => 6,
'user' => 7,
'user_role' => 6,
'menu_link_content' => 10,
......
......@@ -104,7 +104,7 @@ protected function getEntityCounts() {
'taxonomy_term' => 24,
'taxonomy_vocabulary' => 7,
'path_alias' => 8,
'tour' => 5,
'tour' => 6,
'user' => 4,
'user_role' => 3,
'menu_link_content' => 12,
......
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