From fdf16a466740c6de51ba782569ee3801a2e5cd9d Mon Sep 17 00:00:00 2001 From: Tim DiLauro Date: Mon, 8 Jan 2024 23:20:09 -0500 Subject: [PATCH] Ensure we're selecting only ToC sub-items. --- test/IFrameNavigatorTests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/IFrameNavigatorTests.ts b/test/IFrameNavigatorTests.ts index a2edede..3a78931 100644 --- a/test/IFrameNavigatorTests.ts +++ b/test/IFrameNavigatorTests.ts @@ -984,7 +984,7 @@ describe("IFrameNavigator", () => { expect(link4.href).to.equal("http://example.com/item-2.html"); expect(link4.text).to.equal("Item 2"); - const sublinks = link1.parentElement.querySelectorAll("ul > li > a"); + const sublinks = link1.parentElement.querySelectorAll("li > ul > li > a"); expect(sublinks.length).to.equal(2); expect(sublinks[0]).to.equal(link2);