원곡 찾기 진행 상황 자세히: 상태 배지(찾는 중·검색 실패 대기·N분째 진행 없음·프로세스 없음), 숫자 카드(처리·남은 곡·최근 10분 속도·지난/남은 시간·끝 예상·마지막 처리), 검색 방법, 결과 비율 막대, 방금 처리한 곡 8개, 작업 기록(쉬운 말), 지난 작업, 전체 확정 비율·다음 자동 실행. 끝 예상은 최근 10분 속도로, 마감(--deadline)은 시작 로그에서 읽음
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -272,12 +272,22 @@ try {
|
||||
const [auto] = c.upsert({ title: '자동확정곡', artists: [{ name: '자동가수' }], source: 'e2e', ref: 'a' });
|
||||
db.query("UPDATE songs SET youtube_status = 'matched', youtube_source = 'ytmusic', youtube_id = 'autovideo01', youtube_title = '자동확정곡', youtube_channel = '자동가수 - Topic', embeddable = 1, youtube_checked_at = ? WHERE id = ?").run(now, auto!);
|
||||
tried(auto!, now);
|
||||
db.query("INSERT INTO collect_jobs (kind, status, done, total, started_at, pid) VALUES ('match-youtube', 'running', 3, 10, ?, 1)").run(now - 60_000);
|
||||
const hms = (t: number) => new Date(t).toISOString().slice(11, 19);
|
||||
const log = `${hms(now - 60_000)} start 10 songs via ytmusic\n${hms(now - 30_000)} search failed (timeout), waiting 60s\n`;
|
||||
db.query("INSERT INTO collect_jobs (kind, status, done, total, started_at, pid, log) VALUES ('match-youtube', 'running', 3, 10, ?, ?, ?)").run(now - 60_000, process.pid, log);
|
||||
|
||||
await p.getByRole('link', { name: '🔎 원곡 찾기' }).click();
|
||||
await p.getByRole('heading', { name: '원곡 찾기' }).waitFor();
|
||||
await p.getByText('🔎 지금 찾는 중').waitFor();
|
||||
await p.getByText('3 / 10 (30%)').waitFor();
|
||||
const status = p.getByRole('region', { name: '진행 상황' });
|
||||
await status.getByText('● 찾는 중').waitFor();
|
||||
await status.getByText('3 / 10', { exact: true }).waitFor();
|
||||
await status.getByText('7곡', { exact: true }).waitFor();
|
||||
await status.getByText('검색: 유튜브 뮤직 (쿠키 사용)').waitFor();
|
||||
await status.locator('.yt-stat', { hasText: '끝 예상' }).waitFor();
|
||||
await status.locator('.yt-recent li', { hasText: '자동확정곡' }).getByText('확정', { exact: true }).waitFor();
|
||||
await status.getByText('작업 기록 (최근 2줄)').click();
|
||||
await status.getByText('⚠ 검색 실패 (timeout) → 60초 쉬고 다시 해요').waitFor();
|
||||
await status.screenshot({ path: join(SHOTS, 'youtube-progress.png') });
|
||||
// 후보 tab is first: one click confirms, and it moves to 확정
|
||||
await row(p, '후보곡').getByRole('button', { name: '확정', exact: true }).click();
|
||||
await toastSeen(p, "'후보곡' 확정했어요");
|
||||
|
||||
Reference in New Issue
Block a user