Skip to content

Commit e00cb04

Browse files
authored
feat(replay): Extend default list for masking with aria-label (#16192)
1 parent 58bdecd commit e00cb04

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ sentryTest(
104104
nodeId: expect.any(Number),
105105
node: {
106106
attributes: {
107-
'aria-label': 'An Error in aria-label',
107+
'aria-label': '** ***** ** **********',
108108
class: 'btn btn-error',
109109
id: 'error',
110110
role: 'button',

dev-packages/browser-integration-tests/suites/replay/privacyBlock/test.ts-snapshots/privacy-chromium.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyBlock/test.ts-snapshots/privacy-firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyBlock/test.ts-snapshots/privacy-webkit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyBlock/test.ts-snapshots/privacy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-chromium.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy-webkit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

dev-packages/browser-integration-tests/suites/replay/privacyDefault/test.ts-snapshots/privacy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"type": 2,
6363
"tagName": "button",
6464
"attributes": {
65-
"aria-label": "Click me",
65+
"aria-label": "***** **",
6666
"onclick": "console.log('Test log')"
6767
},
6868
"childNodes": [

packages/replay-internal/src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class Replay implements Integration {
9595
networkResponseHeaders = [],
9696

9797
mask = [],
98-
maskAttributes = ['title', 'placeholder'],
98+
maskAttributes = ['title', 'placeholder', 'aria-label'],
9999
unmask = [],
100100
block = [],
101101
unblock = [],

0 commit comments

Comments
 (0)