Skip to content
Snippets Groups Projects
Commit 8ae4b704 authored by Pooja Sharma's avatar Pooja Sharma Committed by Stephen Mustgrave
Browse files

Resolve #1926294 "Write block tour integration"

parent b6bc4736
No related branches found
No related tags found
1 merge request!25Resolve #1926294 "Write block tour integration"
Pipeline #249353 passed
langcode: en
status: true
dependencies:
module:
- block_content
id: custom_block_edit
label: 'Custom Block Edit'
routes:
-
route_name: entity.block_content_type.edit_form
tips:
editing-the-block:
id: editing-the-block
plugin: text
label: 'Editing the block'
weight: 1
body: 'Select the displayed tabs to edit the custom block fields, how they are displayed or to delete the custom block. '
revisions:
id: revisions
plugin: text
label: 'Revisions'
weight: 2
selector: .form-item--revision
body: 'Creating new revisions saves each change to a block''s content. It is possible to then roll back to earlier revisions.'
langcode: en
status: true
dependencies:
module:
- block_content
id: custom_blocks_list
label: 'Custom Blocks List'
routes:
-
route_name: entity.block_content_type.collection
tips:
title:
id: title
plugin: text
label: 'Custom blocks'
weight: 1
body: 'Custom block are used to create content that can be displayed in block regions such as sidebars.'
blocks-and-types:
id: blocks-and-types
plugin: text
label: 'Blocks and types'
weight: 2
selector: .button--primary
body: 'Here you can create special types.'
available-custom-blocks:
id: available-custom-blocks
plugin: text
label: 'Available custom blocks'
weight: 3
selector: .block-system-main-block
body: 'Below are the current available custom blocks.'
edit-button:
id: edit-button
plugin: text
label: 'Edit button'
weight: 4
selector: .dropbutton-widget
body: 'By click on dropdown, you will find edit option, can edit block content and how it is displayed via the dropdown links.'
<?php
namespace Drupal\Tests\tour\Functional\Block;
use Drupal\Tests\tour\Functional\TourTestBase;
/**
* Tests the Custom Blocks List tour.
*
* @group tour
*/
class CustomBlocksListTourTest extends TourTestBase {
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = ['block', 'tour', 'block_content'];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser([
'administer block types',
'administer blocks',
'access tour',
]));
$this->drupalPlaceBlock('local_actions_block');
}
/**
* Tests Custom Blocks List tour tip availability.
*/
public function testCustomBlocksListTourTips(): void {
$this->drupalGet('admin/structure/block-content');
$this->assertTourTips();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment