Skip to content

Commit

Permalink
improve the test for replaceFaciaPageCollections
Browse files Browse the repository at this point in the history
  • Loading branch information
cemms1 committed Nov 29, 2024
1 parent 385296e commit 9017da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facia/test/FaciaControllerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ import scala.concurrent.{Await, Future}
val result = faciaController invokePrivate replaceFaciaPageCollections(europePage, europeBetaPage)
val (resultPressedPage, targetedTerritories) = result.get
// The page metadata should remain unchanged
resultPressedPage.id should be("europe")
resultPressedPage.id should not be "europe-beta"
// The collections should come from the replacement page not the original page
resultPressedPage.collections.exists(_ == europeBetaFaciaPageWithTargetedTerritory.collections(0)) should be(true)
resultPressedPage.collections.exists(_ == europeFaciaPage.collections(0)) should be(false)
// The value for targetedTerritories should come from the page with replacement collections
targetedTerritories should be(true)

}
}

0 comments on commit 9017da9

Please sign in to comment.