Organize uploader storage and restore transfer readiness

This commit is contained in:
2026-10-14 19:15:46 +09:00
parent 69e7449ba7
commit c3573b605c
24 changed files with 966 additions and 449 deletions

View File

@@ -336,8 +336,7 @@ try {
await receiver.locator('.current-vault').waitFor();
assert.equal(await receiver.locator('.content-submit').isEnabled(), true);
let removed = false;
for (const key of await readdir(runtime.service.storage.originals)) {
const path = resolve(runtime.service.storage.originals, key);
for await (const { path } of runtime.service.storage.layout.entries()) {
if ((await readFile(path)).equals(bytes)) {
await unlink(path);
removed = true;
@@ -392,6 +391,13 @@ try {
);
await sender.locator('.error-toast').waitFor({ state: 'hidden', timeout: 8000 });
await receiver.getByRole('button', { name: '로그아웃', exact: true }).click();
await receiver.locator('.nearby-section').waitFor();
assert.equal(
await receiver.locator('.account-auth').count(),
0,
'로그아웃 후 로그인 화면 대신 메인 기기 화면',
);
await receiver.locator('.login-button').click();
await receiver.locator('.account-auth').waitFor();
assert(!(await receiver.locator('body').innerText()).includes('https://example.com/saved'));
const signup = receiver.locator('.account-auth');