Skip to content

Commit

Permalink
Add assertion to ensure page title is set correctly, too
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-brm committed Nov 18, 2023
1 parent c7e48de commit 0c82d7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class SiteGeneratationTest extends BaseHtmlTest:

@Test
def sidebarFile() = withGeneratedSite(testDocPath.resolve("sidebar")) {
withHtmlFile("docs/index.html") { content =>
content.assertTextsIn("#leftColumn #docs-nav > div:nth-child(1) > span > a > span", "A Directory Subsection")
}
withHtmlFile("docs/index.html")(
_.assertTextsIn("#leftColumn #docs-nav > div:nth-child(1) > span > a > span", "A Directory Subsection"))
withHtmlFile("docs/directory/index.html")(_.assertTextsIn("title", "A Directory Subsection"))
}

0 comments on commit 0c82d7b

Please sign in to comment.