@@ -26,200 +26,197 @@ sentryTest('should have the correct default privacy settings', async ({ getLocal
26
26
27
27
await page . goto ( url ) ;
28
28
const replayPayload = envelopeRequestParser < RecordingEvent [ ] > ( await reqPromise0 , 5 ) ;
29
- const checkoutEvent = replayPayload . find ( ( { type} ) => type === EventType . FullSnapshot ) ;
29
+ const checkoutEvent = replayPayload . find ( ( { type } ) => type === EventType . FullSnapshot ) ;
30
30
31
- expect ( checkoutEvent ?. data ) . toMatchObject (
32
- {
33
- 'initialOffset' : {
34
- 'left' : 0 ,
35
- 'top' : 0 ,
36
- } ,
37
- 'node' : {
38
- 'childNodes' : [
39
- {
40
- 'id' : 2 ,
41
- 'name' : 'html' ,
42
- 'publicId' : '' ,
43
- 'systemId' : '' ,
44
- 'type' : 1 ,
45
- } ,
46
- {
47
- 'attributes' : { } ,
48
- 'childNodes' : [
49
- {
50
- 'attributes' : { } ,
51
- 'childNodes' : [
52
- {
53
- 'attributes' : {
54
- 'charset' : 'utf-8' ,
55
- } ,
56
- 'childNodes' : [ ] ,
57
- 'id' : 5 ,
58
- 'tagName' : 'meta' ,
59
- 'type' : 2 ,
60
- } ,
61
- ] ,
62
- 'id' : 4 ,
63
- 'tagName' : 'head' ,
64
- 'type' : 2 ,
65
- } ,
66
- {
67
- 'id' : 6 ,
68
- 'textContent' : '\n ' ,
69
- 'type' : 3 ,
70
- } ,
71
- {
72
- 'attributes' : { } ,
73
- 'childNodes' : [
74
- {
75
- 'id' : 8 ,
76
- 'textContent' : '\n ' ,
77
- 'type' : 3 ,
78
- } ,
79
- {
80
- 'attributes' : {
81
- 'aria-label' : 'Click me' ,
82
- 'onclick' : "console.log('Test log')" ,
83
- } ,
84
- 'childNodes' : [
85
- {
86
- 'id' : 10 ,
87
- 'textContent' : '***** **' ,
88
- 'type' : 3 ,
89
- } ,
90
- ] ,
91
- 'id' : 9 ,
92
- 'tagName' : 'button' ,
93
- 'type' : 2 ,
94
- } ,
95
- {
96
- 'id' : 11 ,
97
- 'textContent' : '\n ' ,
98
- 'type' : 3 ,
99
- } ,
100
- {
101
- 'attributes' : { } ,
102
- 'childNodes' : [
103
- {
104
- 'id' : 13 ,
105
- 'textContent' : '**** ****** ** ****** ** *******' ,
106
- 'type' : 3 ,
107
- } ,
108
- ] ,
109
- 'id' : 12 ,
110
- 'tagName' : 'div' ,
111
- 'type' : 2 ,
112
- } ,
113
- {
114
- 'id' : 14 ,
115
- 'textContent' : '\n ' ,
116
- 'type' : 3 ,
117
- } ,
118
- {
119
- 'attributes' : {
120
- 'data-sentry-unmask' : '' ,
121
- } ,
122
- 'childNodes' : [
123
- {
124
- 'id' : 16 ,
125
- 'textContent' : 'This should be unmasked due to data attribute' ,
126
- 'type' : 3 ,
127
- } ,
128
- ] ,
129
- 'id' : 15 ,
130
- 'tagName' : 'div' ,
131
- 'type' : 2 ,
132
- } ,
133
- {
134
- 'id' : 17 ,
135
- 'textContent' : '\n ' ,
136
- 'type' : 3 ,
137
- } ,
138
- {
139
- 'attributes' : {
140
- 'placeholder' : 'Placeholder should be masked' ,
141
- } ,
142
- 'childNodes' : [ ] ,
143
- 'id' : 18 ,
144
- 'tagName' : 'input' ,
145
- 'type' : 2 ,
146
- } ,
147
- {
148
- 'id' : 19 ,
149
- 'textContent' : '\n ' ,
150
- 'type' : 3 ,
151
- } ,
152
- {
153
- 'attributes' : {
154
- 'title' : 'Title should be masked' ,
155
- } ,
156
- 'childNodes' : [
157
- {
158
- 'id' : 21 ,
159
- 'textContent' : '***** ****** ** ******' ,
160
- 'type' : 3 ,
161
- } ,
162
- ] ,
163
- 'id' : 20 ,
164
- 'tagName' : 'div' ,
165
- 'type' : 2 ,
166
- } ,
167
- {
168
- 'id' : 22 ,
169
- 'textContent' : '\n ' ,
170
- 'type' : 3 ,
171
- } ,
172
- {
173
- 'attributes' : {
174
- 'rr_height' : '1264px' ,
175
- 'rr_width' : '1264px' ,
176
- } ,
177
- 'childNodes' : [ ] ,
178
- 'id' : 23 ,
179
- 'isSVG' : true ,
180
- 'tagName' : 'svg' ,
181
- 'type' : 2 ,
31
+ expect ( checkoutEvent ?. data ) . toMatchObject ( {
32
+ initialOffset : {
33
+ left : 0 ,
34
+ top : 0 ,
35
+ } ,
36
+ node : {
37
+ childNodes : [
38
+ {
39
+ id : 2 ,
40
+ name : 'html' ,
41
+ publicId : '' ,
42
+ systemId : '' ,
43
+ type : 1 ,
44
+ } ,
45
+ {
46
+ attributes : { } ,
47
+ childNodes : [
48
+ {
49
+ attributes : { } ,
50
+ childNodes : [
51
+ {
52
+ attributes : {
53
+ charset : 'utf-8' ,
54
+ } ,
55
+ childNodes : [ ] ,
56
+ id : 5 ,
57
+ tagName : 'meta' ,
58
+ type : 2 ,
59
+ } ,
60
+ ] ,
61
+ id : 4 ,
62
+ tagName : 'head' ,
63
+ type : 2 ,
64
+ } ,
65
+ {
66
+ id : 6 ,
67
+ textContent : '\n ' ,
68
+ type : 3 ,
69
+ } ,
70
+ {
71
+ attributes : { } ,
72
+ childNodes : [
73
+ {
74
+ id : 8 ,
75
+ textContent : '\n ' ,
76
+ type : 3 ,
77
+ } ,
78
+ {
79
+ attributes : {
80
+ 'aria-label' : 'Click me' ,
81
+ onclick : "console.log('Test log')" ,
82
+ } ,
83
+ childNodes : [
84
+ {
85
+ id : 10 ,
86
+ textContent : '***** **' ,
87
+ type : 3 ,
182
88
} ,
183
- {
184
- 'id' : 24 ,
185
- 'textContent' : '\n ' ,
186
- 'type' : 3 ,
89
+ ] ,
90
+ id : 9 ,
91
+ tagName : 'button' ,
92
+ type : 2 ,
93
+ } ,
94
+ {
95
+ id : 11 ,
96
+ textContent : '\n ' ,
97
+ type : 3 ,
98
+ } ,
99
+ {
100
+ attributes : { } ,
101
+ childNodes : [
102
+ {
103
+ id : 13 ,
104
+ textContent : '**** ****** ** ****** ** *******' ,
105
+ type : 3 ,
187
106
} ,
188
- {
189
- 'attributes' : {
190
- 'rr_height' : '0px' ,
191
- 'rr_width' : '0px' ,
192
- } ,
193
- 'childNodes' : [ ] ,
194
- 'id' : 25 ,
195
- 'tagName' : 'img' ,
196
- 'type' : 2 ,
107
+ ] ,
108
+ id : 12 ,
109
+ tagName : 'div' ,
110
+ type : 2 ,
111
+ } ,
112
+ {
113
+ id : 14 ,
114
+ textContent : '\n ' ,
115
+ type : 3 ,
116
+ } ,
117
+ {
118
+ attributes : {
119
+ 'data-sentry-unmask' : '' ,
120
+ } ,
121
+ childNodes : [
122
+ {
123
+ id : 16 ,
124
+ textContent : 'This should be unmasked due to data attribute' ,
125
+ type : 3 ,
197
126
} ,
198
- {
199
- 'id' : 26 ,
200
- 'textContent' : '\n ' ,
201
- 'type' : 3 ,
202
- } ,
203
- {
204
- 'id' : 27 ,
205
- 'textContent' : '\n\n' ,
206
- 'type' : 3 ,
207
- } ,
208
- ] ,
209
- 'id' : 7 ,
210
- 'tagName' : 'body' ,
211
- 'type' : 2 ,
212
- } ,
213
- ] ,
214
- 'id' : 3 ,
215
- 'tagName' : 'html' ,
216
- 'type' : 2 ,
217
- } ,
218
- ] ,
219
- 'id' : 1 ,
220
- 'type' : 0 ,
221
- } ,
222
- }
223
-
224
- ) ;
127
+ ] ,
128
+ id : 15 ,
129
+ tagName : 'div' ,
130
+ type : 2 ,
131
+ } ,
132
+ {
133
+ id : 17 ,
134
+ textContent : '\n ' ,
135
+ type : 3 ,
136
+ } ,
137
+ {
138
+ attributes : {
139
+ placeholder : 'Placeholder should be masked' ,
140
+ } ,
141
+ childNodes : [ ] ,
142
+ id : 18 ,
143
+ tagName : 'input' ,
144
+ type : 2 ,
145
+ } ,
146
+ {
147
+ id : 19 ,
148
+ textContent : '\n ' ,
149
+ type : 3 ,
150
+ } ,
151
+ {
152
+ attributes : {
153
+ title : 'Title should be masked' ,
154
+ } ,
155
+ childNodes : [
156
+ {
157
+ id : 21 ,
158
+ textContent : '***** ****** ** ******' ,
159
+ type : 3 ,
160
+ } ,
161
+ ] ,
162
+ id : 20 ,
163
+ tagName : 'div' ,
164
+ type : 2 ,
165
+ } ,
166
+ {
167
+ id : 22 ,
168
+ textContent : '\n ' ,
169
+ type : 3 ,
170
+ } ,
171
+ {
172
+ attributes : {
173
+ rr_height : '1264px' ,
174
+ rr_width : '1264px' ,
175
+ } ,
176
+ childNodes : [ ] ,
177
+ id : 23 ,
178
+ isSVG : true ,
179
+ tagName : 'svg' ,
180
+ type : 2 ,
181
+ } ,
182
+ {
183
+ id : 24 ,
184
+ textContent : '\n ' ,
185
+ type : 3 ,
186
+ } ,
187
+ {
188
+ attributes : {
189
+ rr_height : '0px' ,
190
+ rr_width : '0px' ,
191
+ } ,
192
+ childNodes : [ ] ,
193
+ id : 25 ,
194
+ tagName : 'img' ,
195
+ type : 2 ,
196
+ } ,
197
+ {
198
+ id : 26 ,
199
+ textContent : '\n ' ,
200
+ type : 3 ,
201
+ } ,
202
+ {
203
+ id : 27 ,
204
+ textContent : '\n\n' ,
205
+ type : 3 ,
206
+ } ,
207
+ ] ,
208
+ id : 7 ,
209
+ tagName : 'body' ,
210
+ type : 2 ,
211
+ } ,
212
+ ] ,
213
+ id : 3 ,
214
+ tagName : 'html' ,
215
+ type : 2 ,
216
+ } ,
217
+ ] ,
218
+ id : 1 ,
219
+ type : 0 ,
220
+ } ,
221
+ } ) ;
225
222
} ) ;
0 commit comments