Skip to content
Snippets Groups Projects
Commit d362dcfb authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #2040375 by wiifm, ridhimaabrol24, cindytwilliams, mkostrzewa, lisarex,...

Issue #2040375 by wiifm, ridhimaabrol24, cindytwilliams, mkostrzewa, lisarex, nick_schuch, DrupalMattS, xtfer, Gauravvvv, clemens.tolboom, smustgrave: Write tour integration for Appearance pages
parent 28763c04
No related branches found
No related tags found
No related merge requests found
Pipeline #164537 failed
langcode: en
status: true
dependencies:
module:
- system
id: appearance
label: 'Appearance'
module: system
routes:
- route_name: system.themes_page
tips:
page-overview:
id: page-overview
plugin: text
label: 'Site appearance'
body: "Your site's appearance is controlled by themes. They control the design, layout, structure, and other visual elements."
weight: 1
default-theme:
id: default-theme
plugin: text
label: 'Default theme'
body: 'The default theme is the primary user-facing theme that is shown to visitors of your website.'
weight: 2
selector: '.theme-default'
theme-settings:
id: theme-settings
plugin: text
label: 'Theme settings'
body: "Different themes provide different configurable options. For instance, some allow you to choose your own colors, some have settings specific to responsive (mobile) layouts, and others allow you to choose different style variations."
weight: 3
selector: '.theme-default .operations a'
disabled-themes:
id: disabled-themes
plugin: text
label: 'Change the theme'
body: 'Change the appearance of your site by enabling a new theme and setting it as the default. You can download additional contributed themes from <a href="https://www.drupal.org/project/project_theme">Drupal.org</a>.'
weight: 4
selector: '.system-themes-list--uninstalled'
admin-theme:
id: admin-theme
plugin: text
label: 'Admin theme'
body: 'The admin theme has a different look and layout from the default theme, and is used primarily on site administration pages.'
weight: 5
selector: '.theme-admin'
set-admin-theme:
id: set-admin-theme
plugin: text
label: 'Change the admin theme'
body: 'Choose the theme that will be used for all administration pages and optionally for content creation and editing pages.'
weight: 6
location: 'bottom'
selector: '#edit-admin-theme--2'
<?php
namespace Drupal\Tests\system\Functional;
use Drupal\Tests\tour\Functional\TourTestBase;
use Drupal\user\UserInterface;
/**
* Tests tour functionality.
*
* @group user
*/
class SystemPageTourTests extends TourTestBase {
/**
* An admin user with administrative permissions for views.
*
* @var \Drupal\user\UserInterface
*/
protected UserInterface $adminUser;
/**
* Modules to enable.
*
* @var array
*/
protected static $modules = ['block', 'tour', 'system'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'administer themes',
'access tour',
]);
$this->drupalLogin($this->adminUser);
$this->drupalPlaceBlock('local_actions_block');
}
/**
* Test tips appear for various system pages.
*/
public function testUserRelatedPages(): void {
$this->testAppearanceTour();
}
/**
* Tests appear tour tip availability.
*/
protected function testAppearanceTour(): void {
$this->drupalGet('appearance');
$this->assertTourTips();
}
}
......@@ -24,7 +24,7 @@ class UserAdminTourTest extends TourTestBase {
*
* @var array
*/
protected static $modules = ['block', 'tour', 'user', 'views'];
protected static $modules = ['block', 'tour', 'user'];
/**
* {@inheritdoc}
......
......@@ -64,3 +64,10 @@ function tour_update_10301(): void {
import_new_tour_config('user-create');
import_new_tour_config('user-edit');
}
/**
* Import appearance tour configuration.
*/
function tour_update_10302(): void {
import_new_tour_config('appearance');
}
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