From 9017da90810ffb6734f029668b31fc339f433b4e Mon Sep 17 00:00:00 2001 From: Charlotte Date: Fri, 29 Nov 2024 12:36:16 +0000 Subject: [PATCH] improve the test for replaceFaciaPageCollections --- facia/test/FaciaControllerTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facia/test/FaciaControllerTest.scala b/facia/test/FaciaControllerTest.scala index a750fb9f6316..b69f76367b30 100644 --- a/facia/test/FaciaControllerTest.scala +++ b/facia/test/FaciaControllerTest.scala @@ -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) - } }