diff --git a/core/modules/menu_ui/config/install/tour.tour.menu-ui.yml b/core/modules/menu_ui/config/install/tour.tour.menu-ui.yml new file mode 100644 index 0000000..d676a5b --- /dev/null +++ b/core/modules/menu_ui/config/install/tour.tour.menu-ui.yml @@ -0,0 +1,30 @@ +id: menu-ui +module: menu_ui +label: 'Menu Listing Page' +langcode: en +routes: + - route_name: entity.menu.collection +tips: + menu-listing: + id: menu-listing + plugin: text + label: 'Menu listing page' + weight: 1 + body: 'View the menus available on your site. Menus are a collection of links arranged in a hierarchy.' + menu-add: + id: menu-add + plugin: text + label: 'Add a menu' + weight: 2 + attributes: + data-class: 'button-action' + body: 'Create a new collection of menu links.' + menu-actions: + id: menu-actions + plugin: text + label: 'Menu actions' + weight: 3 + attributes: + data-class: 'dropbutton-widget' + body: 'Click edit to rearrange links, change the menu name or add links.' + location: 'left' diff --git a/core/modules/menu_ui/config/install/tour.tour.menu_ui.yml b/core/modules/menu_ui/config/install/tour.tour.menu_ui.yml deleted file mode 100644 index 239a31b..0000000 --- a/core/modules/menu_ui/config/install/tour.tour.menu_ui.yml +++ /dev/null @@ -1,30 +0,0 @@ -id: menu_ui -module: menu_ui -label: 'Menu Listing Page' -langcode: en -routes: - - route_name: entity.menu.collection -tips: - menu-listing: - id: menu-listing - plugin: text - label: 'Menu listing page' - weight: 1 - body: 'View the menus available on your site. Menus are a collection of links arranged in a hierarchy.' - menu-add: - id: menu-add - plugin: text - label: 'Add a menu' - weight: 2 - attributes: - data-class: 'button-action' - body: 'Create a new collection of menu links.' - menu-actions: - id: menu-actions - plugin: text - label: 'Menu actions' - weight: 3 - attributes: - data-class: 'dropbutton-widget' - body: 'Click edit to rearrange links, change the menu name or add links.' - location: 'left' diff --git a/core/modules/menu_ui/src/Tests/MenuTourTest.php b/core/modules/menu_ui/src/Tests/MenuTourTest.php index 84d1899..ab39a38 100644 --- a/core/modules/menu_ui/src/Tests/MenuTourTest.php +++ b/core/modules/menu_ui/src/Tests/MenuTourTest.php @@ -24,12 +24,12 @@ class MenuTourTest extends TourTestBasic { protected $adminUser; /** - * The permissions required for a logged in user to test tour tips. + * The permissions required for a logged-in user to test tour tips. * * @var array * A list of permissions. */ - protected $permissions = array('administer menu', 'access tour'); + protected $permissions = array('access tour', 'administer menu'); /** * Modules to enable. @@ -44,28 +44,6 @@ class MenuTourTest extends TourTestBasic { * @var array * A list of pages to test. */ - protected $tips = array( - 'admin/structure/menu' => array( - array('data-class' => 'button-action'), - array('data-class' => 'dropbutton-widget'), - ), - ); - - /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - $this->adminUser = $this->drupalCreateUser(array('administer menu', 'access tour')); - $this->drupalLogin($this->adminUser); - } - - /** - * Tests menu tour tip availability. - */ - public function testMenuOverviewTour() { - $this->drupalGet('admin/structure/menu'); - $this->assertTourTips(); - } + protected $tips = array('admin/structure/menu' => array()); }