diff --git a/sdk/src/androidTest/java/ly/count/android/sdk/ModuleEventsTests.java b/sdk/src/androidTest/java/ly/count/android/sdk/ModuleEventsTests.java index 5dc755d56..0cd842301 100644 --- a/sdk/src/androidTest/java/ly/count/android/sdk/ModuleEventsTests.java +++ b/sdk/src/androidTest/java/ly/count/android/sdk/ModuleEventsTests.java @@ -807,8 +807,8 @@ public void recordEvent_visibilityTracking_onlyAddingItToViewsAndEvents() throws countly.events().recordEvent(ModuleFeedback.RATING_EVENT_KEY, TestUtils.map()); validateEventInRQ(ModuleFeedback.RATING_EVENT_KEY, TestUtils.map(), 1, 0.0d, 0.0d, 4); - countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map()); - validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 0), 1, 0.0d, 0.0d, 5); + countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1)); + validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 0, "visit", 1), 1, 0.0d, 0.0d, 5); countly.events().recordEvent(ModuleViews.ORIENTATION_EVENT_KEY, TestUtils.map()); validateEventInRQ(ModuleViews.ORIENTATION_EVENT_KEY, TestUtils.map(), 1, 0.0d, 0.0d, 6); @@ -835,7 +835,7 @@ public void recordEvent_visibilityTracking_bgFgSwitch() throws JSONException { countly.onStart(Mockito.mock(Activity.class)); //foreground countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1)); - validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 1), 1, 0.0d, 0.0d, 2); + validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 1, "visit", 1), 1, 0.0d, 0.0d, 2); countly.events().recordEvent("fg", TestUtils.map()); validateEventInRQ("fg", TestUtils.map("cly_v", 1), 1, 0.0d, 0.0d, 3); @@ -843,7 +843,7 @@ public void recordEvent_visibilityTracking_bgFgSwitch() throws JSONException { countly.onStop(); //background countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1)); - validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 0), 1, 0.0d, 0.0d, 5); + validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("cly_v", 0, "visit", 1), 1, 0.0d, 0.0d, 5); countly.events().recordEvent("bg", TestUtils.map()); validateEventInRQ("bg", TestUtils.map("cly_v", 0), 1, 0.0d, 0.0d, 6); @@ -865,7 +865,7 @@ public void recordEvent_visibilityTracking_notEnabled() throws JSONException { countly.onStart(Mockito.mock(Activity.class)); //foreground countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1)); - validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map(), 1, 0.0d, 0.0d, 2); + validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1), 1, 0.0d, 0.0d, 2); countly.events().recordEvent("fg", TestUtils.map()); validateEventInRQ("fg", TestUtils.map(), 1, 0.0d, 0.0d, 3); @@ -873,7 +873,7 @@ public void recordEvent_visibilityTracking_notEnabled() throws JSONException { countly.onStop(); //background countly.events().recordEvent(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1)); - validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map(), 1, 0.0d, 0.0d, 5); + validateEventInRQ(ModuleViews.VIEW_EVENT_KEY, TestUtils.map("visit", 1), 1, 0.0d, 0.0d, 5); countly.events().recordEvent("bg", TestUtils.map()); validateEventInRQ("bg", TestUtils.map(), 1, 0.0d, 0.0d, 6);