pinokiod 8.0.64 → 8.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "8.0.64",
3
+ "version": "8.0.65",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1308,7 +1308,6 @@
1308
1308
  }
1309
1309
  };
1310
1310
  eventSource.onerror = () => {
1311
- resetCards();
1312
1311
  loadState();
1313
1312
  };
1314
1313
  }
@@ -582,7 +582,17 @@ test("an empty automatic check briefly confirms completion", async () => {
582
582
  assert.equal(revealTimers.length, revealsBeforeFocusedCompletion + 1)
583
583
  assert.equal(completionTimers.length, timersBeforeFocusedCompletion,
584
584
  "completion dismissal cannot start before its result is revealed")
585
+ eventSources[0].onerror()
586
+ await new Promise((resolve) => nativeSetTimeout(resolve, 0))
587
+ assert.equal(tray.hidden, false,
588
+ "a reconnect cannot erase a pending completion reveal")
589
+ assert.equal(tray.querySelector(".vault-auto-scan-close"), focusedClose)
590
+ assert.equal(tray.querySelector(
591
+ '.vault-auto-scan-row[data-state="complete"]'), null)
585
592
  revealTimers.at(-1).callback()
593
+ const focusedCompleted = tray.querySelector(
594
+ '.vault-auto-scan-row[data-state="complete"]')
595
+ assert.ok(focusedCompleted)
586
596
  assert.equal(completionTimers.length, timersBeforeFocusedCompletion,
587
597
  "completion does not start its timer while focus is already in the card")
588
598
  focusedClose.dispatchEvent(new dom.window.FocusEvent("focusout", {
@@ -590,10 +600,8 @@ test("an empty automatic check briefly confirms completion", async () => {
590
600
  relatedTarget: null
591
601
  }))
592
602
  assert.equal(completionTimers.length, timersBeforeFocusedCompletion + 1)
593
- eventSources[0].onerror()
594
- await new Promise((resolve) => nativeSetTimeout(resolve, 0))
595
- assert.equal(tray.hidden, true,
596
- "a reconnect drops presentation-only completion state")
603
+ completionTimers.at(-1).callback()
604
+ assert.equal(tray.hidden, true)
597
605
 
598
606
  send({
599
607
  enabled: true,