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:
1 parent
3c48582067
commit
9c7f2f1ad5
16 files changed
+334
-69
No files matched your search
@@ -76,12 +76,12 @@ public sealed partial class ExportInterfaceTests
|
||||
await SaveFolderDialogAsync(ui);
|
||||
await ui.WaitAsync(Shown("Automatica accesa: da adesso si copiano da soli i file nuovi."), "l'avviso dell'accensione");
|
||||
await ui.WaitAsync($"{GeneralFolder}.then((g) => g.automatic === true && g.automaticSince !== null)", "automatica sul server, con l'istante");
|
||||
await ui.WaitAsync($"({GeneralDescription}).includes('· Automatica dal ')", "«Automatica dal …» sotto la cartella");
|
||||
await ui.WaitAsync($"({GeneralDescription}).includes('· Automatica dal')", "«Automatica dal …» sotto la cartella");
|
||||
|
||||
// Opened again: on, the same folder: it says since when and asks nothing.
|
||||
await OpenGeneralDialogAsync(ui);
|
||||
Assert.IsTrue((await ui.EvalAsync($"{AutoSwitch}.checked")).GetBoolean());
|
||||
await ui.WaitAsync($"{AutoBox}.textContent.includes('Automatica dal ') && {AutoBox}.textContent.includes('copia i file salvati in libreria da allora')", "«Automatica dal …» nel dialogo");
|
||||
await ui.WaitAsync($"{AutoBox}.textContent.includes('Automatica dal') && {AutoBox}.textContent.includes('copia i file salvati in libreria da allora')", "«Automatica dal …» nel dialogo");
|
||||
Assert.AreEqual(0, (await ui.EvalAsync($"{AutoChoices}.length")).GetInt32(), "no question while it stays on");
|
||||
|
||||
// Off: no automatic job of this folder is unfinished, so no note; saved, it forgets the answer.
|
||||
@@ -125,14 +125,14 @@ public sealed partial class ExportInterfaceTests
|
||||
await ui.OpenAsync(new Uri(demo.Address, $"/account/{studio.Id}/impostazioni?veste=docker"));
|
||||
const string Block = "document.querySelector('.copie-esterne')";
|
||||
await ui.WaitAsync($"{Block}?.querySelector('.riga-etichetta .et.accento') != null", "l'etichetta «Automatica» " + ui.Report());
|
||||
StringAssert.StartsWith((await ui.EvalAsync($"{Block}.querySelector('.riga-etichetta .et.accento').textContent")).GetString(), "Automatica dal ");
|
||||
StringAssert.StartsWith((await ui.EvalAsync($"{Block}.querySelector('.riga-etichetta .et.accento').textContent")).GetString(), "Automatica dal");
|
||||
StringAssert.Contains((await ui.EvalAsync($"{Block}.querySelector('.riga-etichetta').textContent")).GetString(), "Nella sua cartella");
|
||||
var buttons = await ui.EvalAsync<string[]>($"[...{Block}.querySelectorAll('.stato-copie button')].map((b) => b.textContent.trim())");
|
||||
CollectionAssert.AreEqual(new[] { "Controlla le copie", "Riconosci le copie già presenti" }, buttons);
|
||||
|
||||
// The dialog: on since a day; turned off, the automatic job left unfinished stops, and it says so before saving.
|
||||
Assert.IsTrue((await ui.EvalAsync(ClickText(".copie-esterne .cartella", "button", "Modifica"))).GetBoolean());
|
||||
await ui.WaitAsync($"{AutoSwitch} != null && {AutoBox}.textContent.includes('Automatica dal ')", "il dialogo con «Automatica dal …»");
|
||||
await ui.WaitAsync($"{AutoSwitch} != null && {AutoBox}.textContent.includes('Automatica dal')", "il dialogo con «Automatica dal …»");
|
||||
Assert.IsTrue((await ui.EvalAsync($"{AutoSwitch}.checked")).GetBoolean());
|
||||
await ui.EvalAsync($"{AutoSwitch}.click()");
|
||||
await ui.WaitAsync($"{FolderDialog}.querySelector('.spegnere') != null", "la nota «Spegnendo…» " + ui.Report());
|
||||
@@ -143,7 +143,7 @@ public sealed partial class ExportInterfaceTests
|
||||
// On again with the same folder: nothing to ask. Another folder is a new destination: the question comes back,
|
||||
// and counts the files the new folder would have (none copied there yet).
|
||||
await ui.EvalAsync($"{AutoSwitch}.click()");
|
||||
await ui.WaitAsync($"{AutoBox}.textContent.includes('Automatica dal ') && {FolderDialog}.querySelector('.spegnere') === null", "di nuovo accesa");
|
||||
await ui.WaitAsync($"{AutoBox}.textContent.includes('Automatica dal') && {FolderDialog}.querySelector('.spegnere') === null", "di nuovo accesa");
|
||||
Assert.AreEqual(0, (await ui.EvalAsync($"{AutoChoices}.length")).GetInt32());
|
||||
await ui.WaitAsync($"{FolderDialog}.querySelector('.sfoglia-voce') != null", "le cartelle");
|
||||
await ui.EvalAsync($"[...{FolderDialog}.querySelectorAll('.sfoglia-voce')].find((b) => b.textContent.trim() === 'Chiavetta').click()");
|
||||
|
||||
Reference in new issue
Block a user