Clarify transfer rejections and improve storage readability

This commit is contained in:
2026-10-15 17:18:07 +09:00
parent 60a14e9c6c
commit 8fb8c203f0
17 changed files with 300 additions and 55 deletions

View File

@@ -160,7 +160,40 @@ try {
await admin.locator('.admin-file').filter({ hasText: 'sample.mp4' }).waitFor();
assert.match(await admin.locator('.admin-file').innerText(), /중국\(CN\) · Beijing/);
assert.match(await admin.locator('.admin-file').innerText(), /1\.1\.1\.1/);
assert.match(await admin.locator('.admin-file-owner').innerText(), /^[a-f0-9-]{36}\s+비로그인$/);
assert.match(
await admin.locator('.admin-file-owner').innerText(),
/^[a-f0-9-]{36}\s*·\s*게스트\(Guest\)$/,
);
assert.match(await admin.locator('.admin-file').innerText(), /Beijing\s*·\s*1\.1\.1\.1/);
const sizeStyle = await admin
.locator('.admin-stats article')
.nth(1)
.locator('strong .file-size')
.evaluate((label) => {
const fraction = label.querySelector('.file-size-fraction');
const whole = label.querySelector('.file-size-whole');
const unit = label.querySelector('.file-size-unit');
return {
whole: whole.textContent,
fraction: fraction.textContent,
unit: unit.textContent,
dimmed: Number(getComputedStyle(fraction).opacity) < 1,
smaller:
parseFloat(getComputedStyle(fraction).fontSize) <
parseFloat(getComputedStyle(whole).fontSize),
inline: getComputedStyle(fraction).display === 'inline',
unitGap: parseFloat(getComputedStyle(unit).marginInlineStart) > 0,
};
});
assert.deepEqual(sizeStyle, {
whole: '7,687',
fraction: '.0',
unit: 'GB',
dimmed: true,
smaller: true,
inline: true,
unitGap: true,
});
assert.doesNotMatch(await admin.locator('.admin-file-owner').innerText(), /guest-|user-/);
assert.match(await admin.locator('.admin-file').innerText(), /접속 지역 · 중국\(CN\) · Beijing/);
assert.doesNotMatch(await admin.locator('.admin-file').innerText(), /최근 접속/);
@@ -475,7 +508,7 @@ try {
const ownedCard = admin.locator('.admin-file').filter({ hasText: 'account-owner.txt' });
await ownedCard.waitFor();
const ownerLabel = await ownedCard.locator('.admin-file-owner').innerText();
assert.match(ownerLabel, /^[a-f0-9-]{36}\s+other@hop\.test$/);
assert.match(ownerLabel, /^[a-f0-9-]{36}\s*·\s*other@hop\.test$/);
assert.doesNotMatch(ownerLabel, /user-|guest-|\[/);
await admin.screenshot({ path: 'tests/e2e/admin-file-account.png', fullPage: true });
await admin.getByRole('button', { name: '관리 기록', exact: true }).click();