@@ -128,55 +128,6 @@ import test.{ConfiguredTestSuite, WithMaterializer, WithTestContentApiClient, Wi
128128 subnav shouldBe Some (FlatSubnav (auCulturePillar.children))
129129 }
130130
131- " On `/football`, the subnav" should " promote World Cup 2026 above the Football self-link" in {
132- val edition = Uk
133- val root = NavMenu .navRoot(edition)
134- val maybeNavLink = NavMenu .findDescendantByUrl(" /football" , edition, root.children, root.otherLinks)
135- val parent = maybeNavLink.flatMap(link => NavMenu .findParent(link, edition, root.children, root.otherLinks))
136- val pillar = NavMenu .getPillar(parent, edition, root.children, root.otherLinks)
137- val subnav = NavMenu .getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
138-
139- subnav match {
140- case Some (FlatSubnav (links)) =>
141- links.map(_.title).take(2 ) shouldBe List (" World Cup 2026" , " Football" )
142- links.map(_.url) should contain(" /football" )
143- links.map(_.url) should contain(" /football/world-cup-2026" )
144- case other => fail(s " Expected FlatSubnav with promoted World Cup, got $other" )
145- }
146- }
147-
148- " On `/football/tables`, the subnav" should " also promote World Cup 2026 above the Football self-link" in {
149- val edition = Uk
150- val root = NavMenu .navRoot(edition)
151- val maybeNavLink = NavMenu .findDescendantByUrl(" /football/tables" , edition, root.children, root.otherLinks)
152- val parent = maybeNavLink.flatMap(link => NavMenu .findParent(link, edition, root.children, root.otherLinks))
153- val pillar = NavMenu .getPillar(parent, edition, root.children, root.otherLinks)
154- val subnav = NavMenu .getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
155-
156- subnav match {
157- case Some (FlatSubnav (links)) =>
158- links.map(_.title).take(2 ) shouldBe List (" World Cup 2026" , " Football" )
159- case other => fail(s " Expected FlatSubnav with promoted World Cup, got $other" )
160- }
161- }
162-
163- " On `/us/soccer`, the subnav" should " promote World Cup 2026 above the Soccer self-link" in {
164- val edition = Us
165- val root = NavMenu .navRoot(edition)
166- val maybeNavLink = NavMenu .findDescendantByUrl(" /us/soccer" , edition, root.children, root.otherLinks)
167- val parent = maybeNavLink.flatMap(link => NavMenu .findParent(link, edition, root.children, root.otherLinks))
168- val pillar = NavMenu .getPillar(parent, edition, root.children, root.otherLinks)
169- val subnav = NavMenu .getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
170-
171- subnav match {
172- case Some (FlatSubnav (links)) =>
173- links.map(_.title).take(2 ) shouldBe List (" World Cup 2026" , " Soccer" )
174- links.map(_.url) should contain(" /us/soccer" )
175- links.map(_.url) should contain(" /football/world-cup-2026" )
176- case other => fail(s " Expected FlatSubnav with promoted World Cup, got $other" )
177- }
178- }
179-
180131 " The section `Indigenous Australians`" should " still be in the pillar News in the Uk edition" in {
181132 val edition = Uk
182133 val root = NavMenu .navRoot(edition)
0 commit comments