完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
+7 -5
View File
@@ -61,7 +61,7 @@ const run = async () => {
await send('Page.enable')
await send('Runtime.enable')
await navigate('/pages/family/f08-album-detail', '.album-state--normal')
await navigate('/pages/family/f08-album-detail?genealogyId=1001&albumId=201', '.album-state--normal')
const photoCount = await valueOf(send, "document.querySelectorAll('.album-photo-tile').length")
assert.strictEqual(photoCount, 5, 'F08 normal state must render five photo tiles')
@@ -73,19 +73,21 @@ const run = async () => {
await send('Runtime.evaluate', { expression: "document.querySelector('.album-upload-action')?.click()" })
await waitFor(
send,
"location.href.includes('/pages/family/f09-media-upload?albumId=reunion')",
"location.href.includes('/pages/family/f09-media-upload?genealogyId=1001&albumId=201')",
'F08 upload action did not carry the current album into F09'
)
await navigate('/pages/family/f08-album-detail?state=empty', '.album-state--empty')
await navigate('/pages/family/f08-album-detail?genealogyId=1001&albumId=201&state=empty', '.album-state--empty')
assert.strictEqual(await valueOf(send, "document.querySelectorAll('.album-photo-tile').length"), 0, 'F08 empty state must not render photos')
await navigate('/pages/family/f08-album-detail?state=preview', '.album-state--preview')
await navigate('/pages/family/f08-album-detail?genealogyId=1001&albumId=201&state=preview', '.album-state--preview')
await waitFor(send, "Boolean(document.querySelector('.album-preview'))", 'F08 direct preview state did not render')
await navigate('/pages/family/f08-album-detail?state=expired', '.album-state--expired')
await navigate('/pages/family/f08-album-detail?genealogyId=1001&albumId=201&state=expired', '.album-state--expired')
assert.strictEqual(await valueOf(send, "document.querySelectorAll('.album-photo-tile').length"), 0, 'F08 expired state must not render photos')
await navigate('/pages/family/f08-album-detail?genealogyId=1002&albumId=201', '.album-state--expired')
process.stdout.write('F08-ALBUM-DETAIL-RUNTIME-SMOKE PASS\n')
} finally {
socket.close()