WIP II improve UX [snapshot task 2]

This commit is contained in:
Schluffe committed 2026-10-16 16:01:56 +02:00
1 parent cd66321ea6
commit b2bab26981
7 files changed
+65 -31

No files matched your search

+8 -2
View File
@@ -274,7 +274,13 @@ try {
input.files = files.files; input.dispatchEvent(new Event('change', { bubbles: true }));
});
await evaluate(sender, () => window.__hellcon.element<HTMLButtonElement>('button[aria-label="Remove remove-me.bin"]').click());
await click(receiver, 'Send');
assert.equal(await evaluate(receiver, () => document.activeElement?.getAttribute('aria-labelledby')), 'send-heading');
await evaluate(receiver, () => window.__hellcon.chooseFile(8193, 'return.bin'));
await click(receiver, 'Receive');
assert.equal(await evaluate(receiver, () => document.activeElement?.getAttribute('aria-labelledby')), 'receive-heading');
await click(sender, 'Receive');
assert.equal(await evaluate(sender, () => document.activeElement?.getAttribute('aria-labelledby')), 'receive-heading');
await wait(sender, () => !!document.querySelector('.incoming'));
await wait(receiver, () => !!document.querySelector('.incoming'));
await click(receiver, 'Decline file');
@@ -291,9 +297,9 @@ try {
assert.deepEqual(received, { length: size, valid: true });
await checkAccessibility(session, 'Bidirectional session');
}
assert.equal(await evaluate(sender, () => [...document.querySelectorAll('.tabs button')].every(button => (button as HTMLButtonElement).disabled)), true);
assert.equal(await evaluate(sender, () => [...document.querySelectorAll('.tabs button')].every(button => !(button as HTMLButtonElement).disabled)), true);
assert.deepEqual(await evaluate(sender, () => [...document.querySelectorAll('.fp-row code')].map(e => e.textContent)), originalFingerprints);
console.log('PASS: simultaneous bidirectional transfers, multiple-file queue, removal, decline, exact bytes, and locked setup tabs.');
console.log('PASS: simultaneous bidirectional transfers, multiple-file queue, removal, decline, exact bytes, and live Send/Receive navigation without reconnecting.');
await click(sender, 'Reset'); await click(receiver, 'Reset');
assert.equal(await evaluate(sender, () => window.__hellcon.element('[role=status]').textContent), 'Choose a file to start.');