Skip to content

Commit

Permalink
Issue #428: Add class to active link in book trees
Browse files Browse the repository at this point in the history
  • Loading branch information
lkmorlan committed Apr 15, 2024
1 parent 246e4c7 commit ee7ae86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@ public function test(): void {

// Child page.
$this->drupalGet($child_url);
// Child page has book navigation block in sidebar.
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "region-sidebar-second")]/div[@id = "block-dc-theme-booknavigation"]');
// Child page has book navigation block in sidebar with class on active.
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "region-sidebar-second")]/div[@id = "block-dc-theme-booknavigation"]/ul/li[@class = "active"]/ul/li[not(@class)]');
// Child page does not have list of child pages.
$this->assertSession()->elementNotExists('xpath', '//nav[@class = "book-navigation"]/ul[not(@aria-label)]');
// Child page has a table of contents from toc_filter.
Expand Down

0 comments on commit ee7ae86

Please sign in to comment.