From dde1a4d1541d234a5c7f50d57413fb062dd42cbe Mon Sep 17 00:00:00 2001 From: Andras Sarro Date: Wed, 7 Aug 2024 14:34:06 +0200 Subject: [PATCH] test(predict): fix contact values in the integration tests SUITEDEV-36367 Co-authored-by: LasOri <24588073+LasOri@users.noreply.github.com> Co-authored-by: megamegax --- .../androidTest/java/com/emarsys/PredictIntegrationTest.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/emarsys-sdk/src/androidTest/java/com/emarsys/PredictIntegrationTest.kt b/emarsys-sdk/src/androidTest/java/com/emarsys/PredictIntegrationTest.kt index 1f1b1af9..58398f3f 100644 --- a/emarsys-sdk/src/androidTest/java/com/emarsys/PredictIntegrationTest.kt +++ b/emarsys-sdk/src/androidTest/java/com/emarsys/PredictIntegrationTest.kt @@ -51,7 +51,7 @@ class PredictIntegrationTest : AnnotationSpec() { val connectionRule = ConnectionRule(application) companion object { - private const val CONTACT_FIELD_ID = 3 + private const val CONTACT_FIELD_ID = 62470 private const val MERCHANT_ID = "1428C8EE286EC34B" private const val OTHER_MERCHANT_ID = "test_1428C8EE286EC34B" const val ITEM1 = "12800" @@ -509,8 +509,7 @@ class PredictIntegrationTest : AnnotationSpec() { clientStateStorage.set("predict-integration-test") } - - Emarsys.setContact(CONTACT_FIELD_ID, "test@test.com") + Emarsys.setContact(CONTACT_FIELD_ID, "test2@test.com") testMultipleInvocations() } @@ -518,7 +517,7 @@ class PredictIntegrationTest : AnnotationSpec() { fun testConfig_changeMerchantId() { val originalMerchantId = Emarsys.config.merchantId Emarsys.config.changeMerchantId(OTHER_MERCHANT_ID) - originalMerchantId shouldNotBe Emarsys.config.applicationCode + originalMerchantId shouldNotBe Emarsys.config.merchantId Emarsys.config.merchantId shouldBe OTHER_MERCHANT_ID }