diff --git a/instrumented/integration/src/androidTest/assets/session_replay_payloads/consent_granted_sr_test_payload.json b/instrumented/integration/src/androidTest/assets/session_replay_payloads/consent_granted_sr_test_payload.json index 5f9bcf76b1..315710cc7a 100644 --- a/instrumented/integration/src/androidTest/assets/session_replay_payloads/consent_granted_sr_test_payload.json +++ b/instrumented/integration/src/androidTest/assets/session_replay_payloads/consent_granted_sr_test_payload.json @@ -1,90 +1,96 @@ -[{ - "type": 4, - "data": { - "width": 411, - "height": 914 - } -}, { - "type": 6, - "data": { - "has_focus": true - } -}, { - "type": 10, - "data": { - "wireframes": [ - { - "width": 411, - "height": 914, - "shapeStyle": { - "backgroundColor": "#303030ff", - "opacity": 1.0 - }, - "type": "shape" - }, - { - "width": 172, - "height": 19, - "type": "text", - "text": "Welcome to Session Replay", - "textStyle": { - "family": "roboto, sans-serif", - "size": 14, - "color": "#00ddffff" +[ + { + "type": 4, + "data": { + "width": 411, + "height": 914 + } + }, + { + "type": 6, + "data": { + "has_focus": true + } + }, + { + "type": 10, + "data": { + "wireframes": [ + { + "width": 411, + "height": 914, + "shapeStyle": { + "backgroundColor": "#303030ff", + "opacity": 1.0 + }, + "type": "shape" }, - "textPosition": { - "padding": { - "top": 0, - "bottom": 0, - "left": 0, - "right": 0 + { + "width": 172, + "height": 19, + "type": "text", + "text": "Welcome to Session Replay", + "textStyle": { + "family": "roboto, sans-serif", + "size": 14, + "color": "#00ddffff" }, - "alignment": { - "horizontal": "left", - "vertical": "top" + "textPosition": { + "padding": { + "top": 0, + "bottom": 0, + "left": 0, + "right": 0 + }, + "alignment": { + "horizontal": "left", + "vertical": "top" + } } - } - }, - { - "width": 88, - "height": 48, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 88, - "height": 48, - "border": { - "color": "#000000ff", - "width": 1 }, - "type": "text", - "text": "Click Me", - "textStyle": { - "family": "roboto, sans-serif", - "size": 14, - "color": "#ffffffff" + { + "width": 88, + "height": 48, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "textPosition": { - "padding": { - "top": 14, - "bottom": 14, - "left": 11, - "right": 11 + { + "width": 88, + "height": 48, + "border": { + "color": "#000000ff", + "width": 1 }, - "alignment": { - "horizontal": "center", - "vertical": "center" + "type": "text", + "text": "Click Me", + "textStyle": { + "family": "roboto, sans-serif", + "size": 14, + "color": "#ffffffff" + }, + "textPosition": { + "padding": { + "top": 14, + "bottom": 14, + "left": 11, + "right": 11 + }, + "alignment": { + "horizontal": "center", + "vertical": "center" + } } + }, + { + "width": 411, + "height": 56, + "type": "placeholder", + "label": "Toolbar" } - }, - { - "width": 411, - "height": 56, - "type": "placeholder", - "label": "Toolbar" - } - ] + ] + } } -}] \ No newline at end of file +] \ No newline at end of file diff --git a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_allow_payload.json b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_allow_payload.json index 69db4997be..c844ecb96d 100644 --- a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_allow_payload.json +++ b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_allow_payload.json @@ -1,93 +1,103 @@ -[{ - "type": 4, - "data": { - "width": 411, - "height": 914 - } -}, { - "type": 6, - "data": { - "has_focus": true - } -}, { - "type": 10, - "data": { - "wireframes": [ - { - "width": 411, - "height": 914, - "shapeStyle": { - "backgroundColor": "#303030ff", - "opacity": 1.0 +[ + { + "type": 4, + "data": { + "width": 411, + "height": 914 + } + }, + { + "type": 6, + "data": { + "has_focus": true + } + }, + { + "type": 10, + "data": { + "wireframes": [ + { + "width": 411, + "height": 914, + "shapeStyle": { + "backgroundColor": "#303030ff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "shape" - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 411, - "height": 56, - "type": "placeholder", - "label": "Toolbar" - } - ] + { + "width": 411, + "height": 56, + "type": "placeholder", + "label": "Toolbar" + } + ] + } } -}] \ No newline at end of file +] \ No newline at end of file diff --git a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_payload.json b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_payload.json index 69db4997be..c844ecb96d 100644 --- a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_payload.json +++ b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_payload.json @@ -1,93 +1,103 @@ -[{ - "type": 4, - "data": { - "width": 411, - "height": 914 - } -}, { - "type": 6, - "data": { - "has_focus": true - } -}, { - "type": 10, - "data": { - "wireframes": [ - { - "width": 411, - "height": 914, - "shapeStyle": { - "backgroundColor": "#303030ff", - "opacity": 1.0 +[ + { + "type": 4, + "data": { + "width": 411, + "height": 914 + } + }, + { + "type": 6, + "data": { + "has_focus": true + } + }, + { + "type": 10, + "data": { + "wireframes": [ + { + "width": 411, + "height": 914, + "shapeStyle": { + "backgroundColor": "#303030ff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "shape" - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 411, - "height": 56, - "type": "placeholder", - "label": "Toolbar" - } - ] + { + "width": 411, + "height": 56, + "type": "placeholder", + "label": "Toolbar" + } + ] + } } -}] \ No newline at end of file +] \ No newline at end of file diff --git a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_user_input_payload.json b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_user_input_payload.json index 69db4997be..c844ecb96d 100644 --- a/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_user_input_payload.json +++ b/instrumented/integration/src/androidTest/assets/session_replay_payloads/sr_image_buttons_mask_user_input_payload.json @@ -1,93 +1,103 @@ -[{ - "type": 4, - "data": { - "width": 411, - "height": 914 - } -}, { - "type": 6, - "data": { - "has_focus": true - } -}, { - "type": 10, - "data": { - "wireframes": [ - { - "width": 411, - "height": 914, - "shapeStyle": { - "backgroundColor": "#303030ff", - "opacity": 1.0 +[ + { + "type": 4, + "data": { + "width": 411, + "height": 914 + } + }, + { + "type": 6, + "data": { + "has_focus": true + } + }, + { + "type": 10, + "data": { + "wireframes": [ + { + "width": 411, + "height": 914, + "shapeStyle": { + "backgroundColor": "#303030ff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" + }, + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false + }, + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "shape" - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 80, + "shapeStyle": { + "backgroundColor": "#5a595bff", + "opacity": 1.0 + }, + "type": "shape" }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 80, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 80, - "height": 84, - "clip": { - "top": 2, - "bottom": 2, - "left": 0, - "right": 0 + { + "width": 80, + "height": 84, + "clip": { + "top": 2, + "bottom": 2, + "left": 0, + "right": 0 + }, + "type": "image", + "mimeType": "image/webp", + "isEmpty": false }, - "type": "image", - "mimeType": "image/webp", - "isEmpty": false - }, - { - "width": 411, - "height": 56, - "type": "placeholder", - "label": "Toolbar" - } - ] + { + "width": 411, + "height": 56, + "type": "placeholder", + "label": "Toolbar" + } + ] + } } -}] \ No newline at end of file +] \ No newline at end of file diff --git a/instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/sessionreplay/imagebuttons/SrImageButtonsAllowTest.kt b/instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/sessionreplay/imagebuttons/SrImageButtonsAllowTest.kt index abc5726b56..ba5d691fa0 100644 --- a/instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/sessionreplay/imagebuttons/SrImageButtonsAllowTest.kt +++ b/instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/sessionreplay/imagebuttons/SrImageButtonsAllowTest.kt @@ -31,6 +31,7 @@ internal class SrImageButtonsAllowTest : runInstrumentationScenario() assessSrPayload(EXPECTED_PAYLOAD_FILE_NAME, rule) } + companion object { const val EXPECTED_PAYLOAD_FILE_NAME = "sr_image_buttons_allow_payload.json" }