Skip to content
Snippets Groups Projects
Commit 0772ae03 authored by Adam G-H's avatar Adam G-H
Browse files

We do not need the content menu, add test coverage

parent 85e45634
No related branches found
No related tags found
1 merge request!218Specify navigation config to remove Help link
Pipeline #347071 failed
langcode: en
status: true
dependencies:
enforced:
module:
- navigation
id: content
label: Content
description: 'Content task links'
locked: true
......@@ -18,6 +18,8 @@ config:
- block.block.gin_page_title
- block.block.gin_primary_local_tasks
- block.block.gin_secondary_local_tasks
navigation:
- system.menu.content
actions:
system.theme:
simpleConfigUpdate:
......
......@@ -26,6 +26,15 @@ class ComponentValidationTest extends BrowserTestBase {
$this->applyRecipe($dir);
// Apply it again to prove that it is idempotent.
$this->applyRecipe($dir);
$account = $this->drupalCreateUser(['access navigation']);
$this->drupalLogin($account);
$assert_session = $this->assertSession();
// The Help module is not installed, so a link to it should not be present
// in the navigation.
$footer = $assert_session->elementExists('css', 'nav > h3:contains("Administrative toolbar footer")')
->getParent();
$assert_session->elementNotExists('named', ['link', 'Help'], $footer);
}
}
langcode: en
status: true
dependencies:
config:
- system.menu.welcome
module:
- layout_builder
- layout_discovery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment