@openreplay/tracker 11.0.1 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/app/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/modules/Network/fetchProxy.js +4 -2
- package/coverage/clover.xml +829 -560
- package/coverage/coverage-final.json +9 -8
- package/coverage/lcov-report/index.html +39 -39
- package/coverage/lcov-report/main/app/canvas.ts.html +1 -1
- package/coverage/lcov-report/main/app/guards.ts.html +1 -1
- package/coverage/lcov-report/main/app/index.html +9 -9
- package/coverage/lcov-report/main/app/index.ts.html +859 -37
- package/coverage/lcov-report/main/app/logger.ts.html +1 -1
- package/coverage/lcov-report/main/app/messages.gen.ts.html +1 -1
- package/coverage/lcov-report/main/app/nodes.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/iframe_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/iframe_offsets.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/index.html +1 -1
- package/coverage/lcov-report/main/app/observer/shadow_root_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/observer/top_observer.ts.html +1 -1
- package/coverage/lcov-report/main/app/sanitizer.ts.html +1 -1
- package/coverage/lcov-report/main/app/session.ts.html +1 -1
- package/coverage/lcov-report/main/app/ticker.ts.html +1 -1
- package/coverage/lcov-report/main/index.html +9 -9
- package/coverage/lcov-report/main/index.ts.html +247 -100
- package/coverage/lcov-report/main/modules/Network/beaconProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/fetchProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/index.html +1 -1
- package/coverage/lcov-report/main/modules/Network/index.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/networkMessage.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/utils.ts.html +1 -1
- package/coverage/lcov-report/main/modules/Network/xhrProxy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/attributeSender.ts.html +1 -1
- package/coverage/lcov-report/main/modules/axiosSpy.ts.html +1 -1
- package/coverage/lcov-report/main/modules/conditionsManager.ts.html +799 -0
- package/coverage/lcov-report/main/modules/connection.ts.html +1 -1
- package/coverage/lcov-report/main/modules/console.ts.html +1 -1
- package/coverage/lcov-report/main/modules/constructedStyleSheets.ts.html +1 -1
- package/coverage/lcov-report/main/modules/cssrules.ts.html +1 -1
- package/coverage/lcov-report/main/modules/exception.ts.html +1 -1
- package/coverage/lcov-report/main/modules/featureFlags.ts.html +10 -7
- package/coverage/lcov-report/main/modules/focus.ts.html +1 -1
- package/coverage/lcov-report/main/modules/fonts.ts.html +1 -1
- package/coverage/lcov-report/main/modules/img.ts.html +1 -1
- package/coverage/lcov-report/main/modules/index.html +27 -12
- package/coverage/lcov-report/main/modules/input.ts.html +1 -1
- package/coverage/lcov-report/main/modules/mouse.ts.html +1 -1
- package/coverage/lcov-report/main/modules/network.ts.html +1 -1
- package/coverage/lcov-report/main/modules/performance.ts.html +1 -1
- package/coverage/lcov-report/main/modules/scroll.ts.html +1 -1
- package/coverage/lcov-report/main/modules/selection.ts.html +1 -1
- package/coverage/lcov-report/main/modules/tabs.ts.html +1 -1
- package/coverage/lcov-report/main/modules/timing.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/SignalManager.ts.html +89 -80
- package/coverage/lcov-report/main/modules/userTesting/dnd.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/index.html +37 -37
- package/coverage/lcov-report/main/modules/userTesting/index.ts.html +24 -21
- package/coverage/lcov-report/main/modules/userTesting/recorder.ts.html +1 -1
- package/coverage/lcov-report/main/modules/userTesting/styles.ts.html +56 -56
- package/coverage/lcov-report/main/modules/userTesting/utils.ts.html +27 -24
- package/coverage/lcov-report/main/modules/viewport.ts.html +1 -1
- package/coverage/lcov-report/main/utils.ts.html +1 -1
- package/coverage/lcov-report/webworker/BatchWriter.ts.html +1 -1
- package/coverage/lcov-report/webworker/MessageEncoder.gen.ts.html +1 -1
- package/coverage/lcov-report/webworker/PrimitiveEncoder.ts.html +1 -1
- package/coverage/lcov-report/webworker/QueueSender.ts.html +1 -1
- package/coverage/lcov-report/webworker/index.html +5 -5
- package/coverage/lcov-report/webworker/index.ts.html +15 -9
- package/coverage/lcov.info +1517 -993
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/Network/fetchProxy.js +4 -2
- package/package.json +2 -2
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>0/41</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/10</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/6</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>0/39</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -155,10 +155,13 @@
|
|
|
155
155
|
<a name='L90'></a><a href='#L90'>90</a>
|
|
156
156
|
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
157
|
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
|
-
<a name='L93'></a><a href='#L93'>93</a
|
|
158
|
+
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
|
+
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
+
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
+
<a name='L96'></a><a href='#L96'>96</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
159
162
|
<span class="cline-any cline-neutral"> </span>
|
|
160
|
-
<span class="cline-any cline-
|
|
161
|
-
<span class="cline-any cline-
|
|
163
|
+
<span class="cline-any cline-no"> </span>
|
|
164
|
+
<span class="cline-any cline-no"> </span>
|
|
162
165
|
<span class="cline-any cline-neutral"> </span>
|
|
163
166
|
<span class="cline-any cline-neutral"> </span>
|
|
164
167
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -167,40 +170,43 @@
|
|
|
167
170
|
<span class="cline-any cline-neutral"> </span>
|
|
168
171
|
<span class="cline-any cline-neutral"> </span>
|
|
169
172
|
<span class="cline-any cline-neutral"> </span>
|
|
170
|
-
<span class="cline-any cline-
|
|
171
|
-
<span class="cline-any cline-
|
|
172
|
-
<span class="cline-any cline-
|
|
173
|
-
<span class="cline-any cline-
|
|
174
|
-
<span class="cline-any cline-
|
|
175
|
-
<span class="cline-any cline-
|
|
176
|
-
<span class="cline-any cline-
|
|
177
|
-
<span class="cline-any cline-
|
|
178
|
-
<span class="cline-any cline-
|
|
173
|
+
<span class="cline-any cline-no"> </span>
|
|
174
|
+
<span class="cline-any cline-no"> </span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
176
|
+
<span class="cline-any cline-no"> </span>
|
|
177
|
+
<span class="cline-any cline-no"> </span>
|
|
178
|
+
<span class="cline-any cline-no"> </span>
|
|
179
|
+
<span class="cline-any cline-no"> </span>
|
|
180
|
+
<span class="cline-any cline-no"> </span>
|
|
181
|
+
<span class="cline-any cline-no"> </span>
|
|
179
182
|
<span class="cline-any cline-neutral"> </span>
|
|
180
|
-
<span class="cline-any cline-
|
|
183
|
+
<span class="cline-any cline-no"> </span>
|
|
184
|
+
<span class="cline-any cline-no"> </span>
|
|
185
|
+
<span class="cline-any cline-no"> </span>
|
|
181
186
|
<span class="cline-any cline-neutral"> </span>
|
|
182
187
|
<span class="cline-any cline-neutral"> </span>
|
|
183
|
-
<span class="cline-any cline-yes">5x</span>
|
|
184
|
-
<span class="cline-any cline-yes">1x</span>
|
|
185
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
|
+
<span class="cline-any cline-no"> </span>
|
|
190
|
+
<span class="cline-any cline-no"> </span>
|
|
186
191
|
<span class="cline-any cline-neutral"> </span>
|
|
187
|
-
<span class="cline-any cline-yes">5x</span>
|
|
188
192
|
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
189
194
|
<span class="cline-any cline-neutral"> </span>
|
|
190
195
|
<span class="cline-any cline-neutral"> </span>
|
|
191
196
|
<span class="cline-any cline-neutral"> </span>
|
|
192
197
|
<span class="cline-any cline-neutral"> </span>
|
|
193
198
|
<span class="cline-any cline-neutral"> </span>
|
|
194
|
-
<span class="cline-any cline-yes">1x</span>
|
|
195
|
-
<span class="cline-any cline-yes">1x</span>
|
|
196
199
|
<span class="cline-any cline-neutral"> </span>
|
|
200
|
+
<span class="cline-any cline-no"> </span>
|
|
201
|
+
<span class="cline-any cline-no"> </span>
|
|
197
202
|
<span class="cline-any cline-neutral"> </span>
|
|
198
|
-
<span class="cline-any cline-
|
|
199
|
-
<span class="cline-any cline-
|
|
200
|
-
<span class="cline-any cline-
|
|
201
|
-
<span class="cline-any cline-
|
|
202
|
-
<span class="cline-any cline-
|
|
203
|
-
<span class="cline-any cline-
|
|
203
|
+
<span class="cline-any cline-neutral"> </span>
|
|
204
|
+
<span class="cline-any cline-no"> </span>
|
|
205
|
+
<span class="cline-any cline-no"> </span>
|
|
206
|
+
<span class="cline-any cline-no"> </span>
|
|
207
|
+
<span class="cline-any cline-no"> </span>
|
|
208
|
+
<span class="cline-any cline-no"> </span>
|
|
209
|
+
<span class="cline-any cline-no"> </span>
|
|
204
210
|
<span class="cline-any cline-neutral"> </span>
|
|
205
211
|
<span class="cline-any cline-neutral"> </span>
|
|
206
212
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -217,22 +223,22 @@
|
|
|
217
223
|
<span class="cline-any cline-neutral"> </span>
|
|
218
224
|
<span class="cline-any cline-neutral"> </span>
|
|
219
225
|
<span class="cline-any cline-neutral"> </span>
|
|
220
|
-
<span class="cline-any cline-
|
|
221
|
-
<span class="cline-any cline-
|
|
222
|
-
<span class="cline-any cline-
|
|
223
|
-
<span class="cline-any cline-
|
|
224
|
-
<span class="cline-any cline-
|
|
225
|
-
<span class="cline-any cline-
|
|
226
|
-
<span class="cline-any cline-
|
|
226
|
+
<span class="cline-any cline-no"> </span>
|
|
227
|
+
<span class="cline-any cline-no"> </span>
|
|
228
|
+
<span class="cline-any cline-no"> </span>
|
|
229
|
+
<span class="cline-any cline-no"> </span>
|
|
230
|
+
<span class="cline-any cline-no"> </span>
|
|
231
|
+
<span class="cline-any cline-no"> </span>
|
|
232
|
+
<span class="cline-any cline-no"> </span>
|
|
227
233
|
<span class="cline-any cline-neutral"> </span>
|
|
228
234
|
<span class="cline-any cline-no"> </span>
|
|
229
235
|
<span class="cline-any cline-no"> </span>
|
|
230
236
|
<span class="cline-any cline-no"> </span>
|
|
231
237
|
<span class="cline-any cline-neutral"> </span>
|
|
232
|
-
<span class="cline-any cline-
|
|
233
|
-
<span class="cline-any cline-
|
|
238
|
+
<span class="cline-any cline-no"> </span>
|
|
239
|
+
<span class="cline-any cline-no"> </span>
|
|
234
240
|
<span class="cline-any cline-neutral"> </span>
|
|
235
|
-
<span class="cline-any cline-
|
|
241
|
+
<span class="cline-any cline-no"> </span>
|
|
236
242
|
<span class="cline-any cline-neutral"> </span>
|
|
237
243
|
<span class="cline-any cline-neutral"> </span>
|
|
238
244
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -247,10 +253,10 @@
|
|
|
247
253
|
<span class="cline-any cline-neutral"> </span>
|
|
248
254
|
<span class="cline-any cline-neutral"> </span>
|
|
249
255
|
<span class="cline-any cline-neutral"> </span>
|
|
250
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { TEST_START, TASK_IND, SESSION_ID } from './utils.js'
|
|
256
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><span class="cstat-no" title="statement not covered" >import { TEST_START, TASK_IND, SESSION_ID } from './utils.js'</span>
|
|
251
257
|
|
|
252
|
-
export default class
|
|
253
|
-
private readonly durations = {
|
|
258
|
+
<span class="cstat-no" title="statement not covered" >export default class S</span>ignalManager {
|
|
259
|
+
private readonly <span class="cstat-no" title="statement not covered" >durations = {</span>
|
|
254
260
|
testStart: 0,
|
|
255
261
|
tasks: [] as unknown as {
|
|
256
262
|
taskId: number
|
|
@@ -258,41 +264,44 @@ export default class SignalManager {
|
|
|
258
264
|
}[],
|
|
259
265
|
}
|
|
260
266
|
|
|
261
|
-
constructor(
|
|
262
|
-
private readonly ingestPoint: string
|
|
263
|
-
private readonly getTimestamp: () => number
|
|
264
|
-
private readonly token: string
|
|
265
|
-
private readonly testId:
|
|
266
|
-
private readonly storageKey: string
|
|
267
|
-
private readonly setStorageKey: (key: string, value: string) => void
|
|
268
|
-
private readonly removeStorageKey: (key: string) => void
|
|
269
|
-
private readonly getStorageKey: (key: string) => string | null
|
|
270
|
-
private readonly getSessionId: () => string
|
|
267
|
+
<span class="fstat-no" title="function not covered" > constructor(</span>
|
|
268
|
+
private readonly <span class="cstat-no" title="statement not covered" >ingestPoint: string,</span>
|
|
269
|
+
private readonly <span class="cstat-no" title="statement not covered" >getTimestamp: () => number,</span>
|
|
270
|
+
private readonly <span class="cstat-no" title="statement not covered" >token: string,</span>
|
|
271
|
+
private readonly <span class="cstat-no" title="statement not covered" >testId: number,</span>
|
|
272
|
+
private readonly <span class="cstat-no" title="statement not covered" >storageKey: string,</span>
|
|
273
|
+
private readonly <span class="cstat-no" title="statement not covered" >setStorageKey: (key: string, value: string) => void,</span>
|
|
274
|
+
private readonly <span class="cstat-no" title="statement not covered" >removeStorageKey: (key: string) => void,</span>
|
|
275
|
+
private readonly <span class="cstat-no" title="statement not covered" >getStorageKey: (key: string) => string | null,</span>
|
|
276
|
+
private readonly <span class="cstat-no" title="statement not covered" >getSessionId: () => string | undefined,</span>
|
|
271
277
|
) {
|
|
272
|
-
|
|
278
|
+
const possibleStart = <span class="cstat-no" title="statement not covered" >this.getStorageKey(TEST_START)</span>
|
|
279
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (possibleStart) {</span>
|
|
280
|
+
<span class="cstat-no" title="statement not covered" > this.durations.testStart = parseInt(possibleStart, 10)</span>
|
|
281
|
+
}
|
|
273
282
|
}
|
|
274
283
|
|
|
275
|
-
getDurations = ()
|
|
276
|
-
return this.durations
|
|
284
|
+
<span class="cstat-no" title="statement not covered" > getDurations = <span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
285
|
+
<span class="cstat-no" title="statement not covered" > return this.durations</span>
|
|
277
286
|
}
|
|
278
287
|
|
|
279
|
-
setDurations = (
|
|
288
|
+
<span class="cstat-no" title="statement not covered" > setDurations = <span class="fstat-no" title="function not covered" >(d</span>urations: {</span>
|
|
280
289
|
testStart: number
|
|
281
290
|
tasks: {
|
|
282
291
|
taskId: number
|
|
283
292
|
started: number
|
|
284
293
|
}[]
|
|
285
294
|
}) => {
|
|
286
|
-
this.durations.testStart = durations.testStart
|
|
287
|
-
this.durations.tasks = durations.tasks
|
|
295
|
+
<span class="cstat-no" title="statement not covered" > this.durations.testStart = durations.testStart</span>
|
|
296
|
+
<span class="cstat-no" title="statement not covered" > this.durations.tasks = durations.tasks</span>
|
|
288
297
|
}
|
|
289
298
|
|
|
290
|
-
signalTask = (
|
|
291
|
-
if (!taskId) return console.error('User Testing: No Task ID Given')
|
|
292
|
-
const taskStart = this.durations.tasks.find((t) => t.taskId === taskId)
|
|
293
|
-
const timestamp = this.getTimestamp()
|
|
294
|
-
const duration =
|
|
295
|
-
return fetch(`${this.ingestPoint}/v1/web/uxt/signals/task`, {
|
|
299
|
+
<span class="cstat-no" title="statement not covered" > signalTask = <span class="fstat-no" title="function not covered" >(t</span>askId: number, status: 'begin' | 'done' | 'skipped', taskAnswer?: string) => {</span>
|
|
300
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (!taskId) <span class="cstat-no" title="statement not covered" >return console.error('User Testing: No Task ID Given')</span></span>
|
|
301
|
+
const taskStart = <span class="cstat-no" title="statement not covered" >this.durations.tasks.find(<span class="fstat-no" title="function not covered" >(t</span>) => <span class="cstat-no" title="statement not covered" >t.taskId === taskId)</span></span>
|
|
302
|
+
const timestamp = <span class="cstat-no" title="statement not covered" >this.getTimestamp()</span>
|
|
303
|
+
const duration = <span class="cstat-no" title="statement not covered" >taskStart ? timestamp - taskStart.started : 0</span>
|
|
304
|
+
<span class="cstat-no" title="statement not covered" > return fetch(`${this.ingestPoint}/v1/web/uxt/signals/task`, {</span>
|
|
296
305
|
method: 'POST',
|
|
297
306
|
headers: {
|
|
298
307
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
@@ -309,22 +318,22 @@ export default class SignalManager {
|
|
|
309
318
|
})
|
|
310
319
|
}
|
|
311
320
|
|
|
312
|
-
signalTest = (
|
|
313
|
-
const timestamp = this.getTimestamp()
|
|
314
|
-
if (status === 'begin' && this.testId) {
|
|
315
|
-
const sessionId = this.getSessionId()
|
|
316
|
-
this.setStorageKey(SESSION_ID, sessionId as unknown as string)
|
|
317
|
-
this.setStorageKey(this.storageKey, this.testId.toString())
|
|
318
|
-
this.setStorageKey(TEST_START, timestamp.toString())
|
|
319
|
-
} else
|
|
321
|
+
<span class="cstat-no" title="statement not covered" > signalTest = <span class="fstat-no" title="function not covered" >(s</span>tatus: 'begin' | 'done' | 'skipped') => {</span>
|
|
322
|
+
const timestamp = <span class="cstat-no" title="statement not covered" >this.getTimestamp()</span>
|
|
323
|
+
<span class="cstat-no" title="statement not covered" > if (status === 'begin' && this.testId) {</span>
|
|
324
|
+
const sessionId = <span class="cstat-no" title="statement not covered" >this.getSessionId()</span>
|
|
325
|
+
<span class="cstat-no" title="statement not covered" > this.setStorageKey(SESSION_ID, sessionId as unknown as string)</span>
|
|
326
|
+
<span class="cstat-no" title="statement not covered" > this.setStorageKey(this.storageKey, this.testId.toString())</span>
|
|
327
|
+
<span class="cstat-no" title="statement not covered" > this.setStorageKey(TEST_START, timestamp.toString())</span>
|
|
328
|
+
} else {
|
|
320
329
|
<span class="cstat-no" title="statement not covered" > this.removeStorageKey(this.storageKey)</span>
|
|
321
330
|
<span class="cstat-no" title="statement not covered" > this.removeStorageKey(TASK_IND)</span>
|
|
322
331
|
<span class="cstat-no" title="statement not covered" > this.removeStorageKey(TEST_START)</span>
|
|
323
332
|
}
|
|
324
|
-
const start = this.durations.testStart || timestamp
|
|
325
|
-
const duration = timestamp - start
|
|
333
|
+
const start = <span class="cstat-no" title="statement not covered" >this.durations.testStart || timestamp</span>
|
|
334
|
+
const duration = <span class="cstat-no" title="statement not covered" >timestamp - start</span>
|
|
326
335
|
|
|
327
|
-
return fetch(`${this.ingestPoint}/v1/web/uxt/signals/test`, {
|
|
336
|
+
<span class="cstat-no" title="statement not covered" > return fetch(`${this.ingestPoint}/v1/web/uxt/signals/test`, {</span>
|
|
328
337
|
method: 'POST',
|
|
329
338
|
headers: {
|
|
330
339
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
@@ -346,7 +355,7 @@ export default class SignalManager {
|
|
|
346
355
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
347
356
|
Code coverage generated by
|
|
348
357
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
349
|
-
at 2023-12-
|
|
358
|
+
at 2023-12-15T15:55:44.965Z
|
|
350
359
|
</div>
|
|
351
360
|
<script src="../../../prettify.js"></script>
|
|
352
361
|
<script>
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
206
206
|
Code coverage generated by
|
|
207
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
208
|
-
at 2023-12-
|
|
208
|
+
at 2023-12-15T15:55:44.965Z
|
|
209
209
|
</div>
|
|
210
210
|
<script src="../../../prettify.js"></script>
|
|
211
211
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>0/473</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/179</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/75</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>0/459</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
82
|
+
<td class="file low" data-value="SignalManager.ts"><a href="SignalManager.ts.html">SignalManager.ts</a></td>
|
|
83
|
+
<td data-value="0" class="pic low">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="6" class="abs
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
86
|
+
<td data-value="0" class="pct low">0%</td>
|
|
87
|
+
<td data-value="41" class="abs low">0/41</td>
|
|
88
|
+
<td data-value="0" class="pct low">0%</td>
|
|
89
|
+
<td data-value="10" class="abs low">0/10</td>
|
|
90
|
+
<td data-value="0" class="pct low">0%</td>
|
|
91
|
+
<td data-value="6" class="abs low">0/6</td>
|
|
92
|
+
<td data-value="0" class="pct low">0%</td>
|
|
93
|
+
<td data-value="39" class="abs low">0/39</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
115
115
|
</td>
|
|
116
116
|
<td data-value="0" class="pct low">0%</td>
|
|
117
|
-
<td data-value="
|
|
117
|
+
<td data-value="291" class="abs low">0/291</td>
|
|
118
118
|
<td data-value="0" class="pct low">0%</td>
|
|
119
|
-
<td data-value="
|
|
119
|
+
<td data-value="148" class="abs low">0/148</td>
|
|
120
120
|
<td data-value="0" class="pct low">0%</td>
|
|
121
|
-
<td data-value="
|
|
121
|
+
<td data-value="45" class="abs low">0/45</td>
|
|
122
122
|
<td data-value="0" class="pct low">0%</td>
|
|
123
|
-
<td data-value="
|
|
123
|
+
<td data-value="284" class="abs low">0/284</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
@@ -139,33 +139,33 @@
|
|
|
139
139
|
</tr>
|
|
140
140
|
|
|
141
141
|
<tr>
|
|
142
|
-
<td class="file
|
|
143
|
-
<td data-value="
|
|
144
|
-
<div class="chart"><div class="cover-fill
|
|
142
|
+
<td class="file low" data-value="styles.ts"><a href="styles.ts.html">styles.ts</a></td>
|
|
143
|
+
<td data-value="0" class="pic low">
|
|
144
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
145
145
|
</td>
|
|
146
|
-
<td data-value="
|
|
147
|
-
<td data-value="25" class="abs
|
|
146
|
+
<td data-value="0" class="pct low">0%</td>
|
|
147
|
+
<td data-value="25" class="abs low">0/25</td>
|
|
148
148
|
<td data-value="100" class="pct high">100%</td>
|
|
149
149
|
<td data-value="0" class="abs high">0/0</td>
|
|
150
150
|
<td data-value="100" class="pct high">100%</td>
|
|
151
151
|
<td data-value="0" class="abs high">0/0</td>
|
|
152
|
-
<td data-value="
|
|
153
|
-
<td data-value="25" class="abs
|
|
152
|
+
<td data-value="0" class="pct low">0%</td>
|
|
153
|
+
<td data-value="25" class="abs low">0/25</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
<tr>
|
|
157
157
|
<td class="file low" data-value="utils.ts"><a href="utils.ts.html">utils.ts</a></td>
|
|
158
|
-
<td data-value="
|
|
159
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
158
|
+
<td data-value="0" class="pic low">
|
|
159
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
160
160
|
</td>
|
|
161
|
-
<td data-value="
|
|
162
|
-
<td data-value="43" class="abs low">
|
|
161
|
+
<td data-value="0" class="pct low">0%</td>
|
|
162
|
+
<td data-value="43" class="abs low">0/43</td>
|
|
163
163
|
<td data-value="0" class="pct low">0%</td>
|
|
164
164
|
<td data-value="2" class="abs low">0/2</td>
|
|
165
165
|
<td data-value="0" class="pct low">0%</td>
|
|
166
166
|
<td data-value="5" class="abs low">0/5</td>
|
|
167
|
-
<td data-value="
|
|
168
|
-
<td data-value="42" class="abs low">
|
|
167
|
+
<td data-value="0" class="pct low">0%</td>
|
|
168
|
+
<td data-value="42" class="abs low">0/42</td>
|
|
169
169
|
</tr>
|
|
170
170
|
|
|
171
171
|
</tbody>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
177
|
Code coverage generated by
|
|
178
178
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
179
|
-
at 2023-12-
|
|
179
|
+
at 2023-12-15T15:55:44.965Z
|
|
180
180
|
</div>
|
|
181
181
|
<script src="../../../prettify.js"></script>
|
|
182
182
|
<script>
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/291</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/148</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/45</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/284</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -670,7 +670,8 @@
|
|
|
670
670
|
<a name='L605'></a><a href='#L605'>605</a>
|
|
671
671
|
<a name='L606'></a><a href='#L606'>606</a>
|
|
672
672
|
<a name='L607'></a><a href='#L607'>607</a>
|
|
673
|
-
<a name='L608'></a><a href='#L608'>608</a
|
|
673
|
+
<a name='L608'></a><a href='#L608'>608</a>
|
|
674
|
+
<a name='L609'></a><a href='#L609'>609</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
674
675
|
<span class="cline-any cline-no"> </span>
|
|
675
676
|
<span class="cline-any cline-no"> </span>
|
|
676
677
|
<span class="cline-any cline-no"> </span>
|
|
@@ -724,6 +725,7 @@
|
|
|
724
725
|
<span class="cline-any cline-no"> </span>
|
|
725
726
|
<span class="cline-any cline-no"> </span>
|
|
726
727
|
<span class="cline-any cline-no"> </span>
|
|
728
|
+
<span class="cline-any cline-no"> </span>
|
|
727
729
|
<span class="cline-any cline-neutral"> </span>
|
|
728
730
|
<span class="cline-any cline-neutral"> </span>
|
|
729
731
|
<span class="cline-any cline-no"> </span>
|
|
@@ -738,7 +740,6 @@
|
|
|
738
740
|
<span class="cline-any cline-no"> </span>
|
|
739
741
|
<span class="cline-any cline-no"> </span>
|
|
740
742
|
<span class="cline-any cline-no"> </span>
|
|
741
|
-
<span class="cline-any cline-no"> </span>
|
|
742
743
|
<span class="cline-any cline-neutral"> </span>
|
|
743
744
|
<span class="cline-any cline-neutral"> </span>
|
|
744
745
|
<span class="cline-any cline-no"> </span>
|
|
@@ -765,14 +766,14 @@
|
|
|
765
766
|
<span class="cline-any cline-no"> </span>
|
|
766
767
|
<span class="cline-any cline-no"> </span>
|
|
767
768
|
<span class="cline-any cline-neutral"> </span>
|
|
769
|
+
<span class="cline-any cline-no"> </span>
|
|
768
770
|
<span class="cline-any cline-neutral"> </span>
|
|
769
771
|
<span class="cline-any cline-neutral"> </span>
|
|
770
772
|
<span class="cline-any cline-neutral"> </span>
|
|
771
|
-
<span class="cline-any cline-
|
|
772
|
-
<span class="cline-any cline-
|
|
773
|
-
<span class="cline-any cline-
|
|
774
|
-
<span class="cline-any cline-
|
|
775
|
-
<span class="cline-any cline-neutral"> </span>
|
|
773
|
+
<span class="cline-any cline-no"> </span>
|
|
774
|
+
<span class="cline-any cline-no"> </span>
|
|
775
|
+
<span class="cline-any cline-no"> </span>
|
|
776
|
+
<span class="cline-any cline-no"> </span>
|
|
776
777
|
<span class="cline-any cline-neutral"> </span>
|
|
777
778
|
<span class="cline-any cline-no"> </span>
|
|
778
779
|
<span class="cline-any cline-no"> </span>
|
|
@@ -883,6 +884,7 @@
|
|
|
883
884
|
<span class="cline-any cline-no"> </span>
|
|
884
885
|
<span class="cline-any cline-no"> </span>
|
|
885
886
|
<span class="cline-any cline-no"> </span>
|
|
887
|
+
<span class="cline-any cline-no"> </span>
|
|
886
888
|
<span class="cline-any cline-neutral"> </span>
|
|
887
889
|
<span class="cline-any cline-no"> </span>
|
|
888
890
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1328,6 +1330,7 @@ interface Test {
|
|
|
1328
1330
|
private <span class="cstat-no" title="statement not covered" >taskSection: HTMLElement | null = null</span>
|
|
1329
1331
|
private <span class="cstat-no" title="statement not covered" >endSection: HTMLElement | null = null</span>
|
|
1330
1332
|
private <span class="cstat-no" title="statement not covered" >stopButton: HTMLElement | null = null</span>
|
|
1333
|
+
private <span class="cstat-no" title="statement not covered" >stopButtonContainer: HTMLElement | null = null</span>
|
|
1331
1334
|
private <span class="cstat-no" title="statement not covered" >test: Test | null = null</span>
|
|
1332
1335
|
private <span class="cstat-no" title="statement not covered" >testId: number | null = null</span>
|
|
1333
1336
|
private <span class="cstat-no" title="statement not covered" >signalManager: SignalManager | null = null</span>
|
|
@@ -1339,7 +1342,6 @@ interface Test {
|
|
|
1339
1342
|
<span class="cstat-no" title="statement not covered" > this.userRecorder = new Recorder(app)</span>
|
|
1340
1343
|
const sessionId = <span class="cstat-no" title="statement not covered" >this.app.getSessionID()</span>
|
|
1341
1344
|
const savedSessionId = <span class="cstat-no" title="statement not covered" >this.app.localStorage.getItem(SESSION_ID)</span>
|
|
1342
|
-
<span class="cstat-no" title="statement not covered" > console.log(sessionId, savedSessionId)</span>
|
|
1343
1345
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (sessionId !== savedSessionId) {</span>
|
|
1344
1346
|
<span class="cstat-no" title="statement not covered" > this.app.localStorage.removeItem(this.storageKey)</span>
|
|
1345
1347
|
<span class="cstat-no" title="statement not covered" > this.app.localStorage.removeItem(SESSION_ID)</span>
|
|
@@ -1372,14 +1374,14 @@ interface Test {
|
|
|
1372
1374
|
<span class="cstat-no" title="statement not covered" > this.test = test</span>
|
|
1373
1375
|
<span class="cstat-no" title="statement not covered" > this.signalManager = new SignalManager(</span>
|
|
1374
1376
|
this.app.options.ingestPoint,
|
|
1375
|
-
this.app.timestamp
|
|
1377
|
+
<span class="fstat-no" title="function not covered" > () =</span>> <span class="cstat-no" title="statement not covered" >this.app.timestamp(),</span>
|
|
1376
1378
|
token,
|
|
1377
|
-
id
|
|
1379
|
+
id,
|
|
1378
1380
|
this.storageKey,
|
|
1379
|
-
this.app.localStorage.setItem,
|
|
1380
|
-
this.app.localStorage.removeItem
|
|
1381
|
-
this.app.localStorage.getItem
|
|
1382
|
-
|
|
1381
|
+
<span class="fstat-no" title="function not covered" > (k</span>: string, v: string) => <span class="cstat-no" title="statement not covered" >this.app.localStorage.setItem(k, v),</span>
|
|
1382
|
+
<span class="fstat-no" title="function not covered" > (k</span>) => <span class="cstat-no" title="statement not covered" >this.app.localStorage.removeItem(k),</span>
|
|
1383
|
+
<span class="fstat-no" title="function not covered" > (k</span>) => <span class="cstat-no" title="statement not covered" >this.app.localStorage.getItem(k),</span>
|
|
1384
|
+
<span class="fstat-no" title="function not covered" > () =</span>> <span class="cstat-no" title="statement not covered" >this.app.getSessionID(),</span>
|
|
1383
1385
|
)
|
|
1384
1386
|
<span class="cstat-no" title="statement not covered" > this.createGreeting(test.title, test.reqMic, test.reqCamera)</span>
|
|
1385
1387
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (inProgress) {</span>
|
|
@@ -1485,6 +1487,7 @@ interface Test {
|
|
|
1485
1487
|
<span class="cstat-no" title="statement not covered" > this.taskSection = tasksSection</span>
|
|
1486
1488
|
<span class="cstat-no" title="statement not covered" > this.descriptionSection = descriptionSection</span>
|
|
1487
1489
|
<span class="cstat-no" title="statement not covered" > this.stopButton = stopButton</span>
|
|
1490
|
+
<span class="cstat-no" title="statement not covered" > this.stopButtonContainer = stopContainer</span>
|
|
1488
1491
|
<span class="cstat-no" title="statement not covered" > stopButton.onclick = <span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
1489
1492
|
<span class="cstat-no" title="statement not covered" > this.userRecorder.discard()</span>
|
|
1490
1493
|
<span class="cstat-no" title="statement not covered" > void this.signalManager?.signalTest('skipped')</span>
|
|
@@ -1870,8 +1873,8 @@ interface Test {
|
|
|
1870
1873
|
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.descriptionSection) {</span>
|
|
1871
1874
|
<span class="cstat-no" title="statement not covered" > this.container.removeChild(this.descriptionSection)</span>
|
|
1872
1875
|
}
|
|
1873
|
-
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.stopButton) {</span>
|
|
1874
|
-
<span class="cstat-no" title="statement not covered" > this.container.removeChild(this.
|
|
1876
|
+
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (this.stopButton && this.stopButtonContainer) {</span>
|
|
1877
|
+
<span class="cstat-no" title="statement not covered" > this.container.removeChild(this.stopButtonContainer)</span>
|
|
1875
1878
|
}
|
|
1876
1879
|
|
|
1877
1880
|
<span class="cstat-no" title="statement not covered" > button.onclick = <span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
@@ -1891,7 +1894,7 @@ interface Test {
|
|
|
1891
1894
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1892
1895
|
Code coverage generated by
|
|
1893
1896
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1894
|
-
at 2023-12-
|
|
1897
|
+
at 2023-12-15T15:55:44.965Z
|
|
1895
1898
|
</div>
|
|
1896
1899
|
<script src="../../../prettify.js"></script>
|
|
1897
1900
|
<script>
|
|
@@ -415,7 +415,7 @@ export const <span class="cstat-no" title="statement not covered" >Quality = {</
|
|
|
415
415
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
416
416
|
Code coverage generated by
|
|
417
417
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
418
|
-
at 2023-12-
|
|
418
|
+
at 2023-12-15T15:55:44.965Z
|
|
419
419
|
</div>
|
|
420
420
|
<script src="../../../prettify.js"></script>
|
|
421
421
|
<script>
|