E5: Dashboard e finestra della cartella dicono il vero sulle copie automatiche

«Riprendi» e «Riprendi tutte» restano attivi mentre lavora una copia
automatica, che cede il passo (risposta 49): li spegne solo un lavoro di
Alberto. «Annulla» di un lavoro automatico dice che i file ripartono da
soli; la risposta a «Interrompi» dice l'ora come il resto («all'1:20»,
«domani alle 0:30»), e «dal» si elide («dall'8 dicembre»). Nella
finestra della cartella «Salva» aspetta il conto dei tipi di adesso, un
conto non riuscito si richiede e il suo errore resta, il fuoco della
tastiera non salta; una nota dice perché «Automatica» è spenta senza
cartelle scrivibili. «Riprendi ora» torna attivo se la richiesta
fallisce. Il conto dei file che aspettano si condivide fra letture e non
si fa per la scheda di un account senza cartella sua; sul telefono i
pulsanti della tabella delle cartelle vanno a capo. Prove nuove: chiusura
che ferma prima il lavoratore, percorso troppo lungo, attesa di due
minuti dall'ultimo file e tetto di un quarto d'ora.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-04 20:07:48 +01:00
1 parent 3c48582067
commit 9c7f2f1ad5
16 files changed
+334 -69

No files matched your search

@@ -2,6 +2,7 @@ using System.Diagnostics;
using Febe.Core.Export;
using Febe.Tests.Desktop.Support;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Febe.Tests.Desktop;
@@ -20,10 +21,14 @@ public sealed class AutoExportCompositionTests
{
var ct = TestContext.CancellationToken;
AutoExportWorker worker;
bool? runningWhenTheInterfaceStops = null;
await using (var bed = await DesktopTestBed.StartAsync())
{
Assert.IsEmpty(bed.App.Problems);
Assert.IsTrue(bed.App.AutoExportStarted);
worker = bed.App.Web.Services.GetRequiredService<AutoExportWorker>();
var seen = worker;
bed.App.Web.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping.Register(() => runningWhenTheInterfaceStops = seen.Running);
var watch = Stopwatch.StartNew();
while ((await worker.StatusAsync(ct)).LastRound is null)
{
@@ -38,6 +43,7 @@ public sealed class AutoExportCompositionTests
}
Assert.IsFalse(worker.Running, "the stop ends the worker");
Assert.IsFalse(runningWhenTheInterfaceStops ?? true, "the worker is stopped first, before the interface and the engine");
}
[TestMethod]
@@ -46,8 +52,8 @@ public sealed class AutoExportCompositionTests
{
await using var bed = await DesktopTestBed.StartAsync(shell: new FakeDesktopShell { RuntimeVersion = null });
Assert.IsNotEmpty(bed.App.Problems);
Assert.IsFalse(bed.App.AutoExportStarted, "the composition does not start it");
var worker = bed.App.Web.Services.GetRequiredService<AutoExportWorker>();
await Task.Delay(200, TestContext.CancellationToken);
Assert.IsFalse(worker.Running);
Assert.IsNull((await worker.StatusAsync(TestContext.CancellationToken)).LastRound);
}