browser_real 시험: 좁은 도구 막대에서도 동영상 감지를 본다 (예전부터의 실패, rc2 에서도)

- 시험 창의 브라우저 화면이 804 너비라 도구 막대가 좁은 꼴 (640 미만) - [다운로드] 가 글 없는 아이콘 단추라 '다운로드' 글로 찾던 시험이
  감지와 상관없이 실패했다. 앱의 동동영상 감지는 제대로 됨 (RESULT true)
- 감지는 넓든 좁든 같은 알림 글로 본다 (찾았으면 '다운로드', 못 찾았으면 '다운로드 (… 찾지 못했지만 …)'). 누르기도 알림 글로

확인: analyze 0 · browser_real 1 ×2 (동영상 감지 true · 쿠키 내보내기 · yt-dlp 읽기)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modular
RyuJongJin 2026-10-24 05:55:55 +09:00
parent f9d4257c0d
commit b9b23e9122
1 changed files with 4 additions and 4 deletions

View File

@ -46,9 +46,9 @@ void main() {
for (var i = 0; i < 300 && !videoSeen; i++) {
await tester.runAsync(() => Future<void>.delayed(const Duration(milliseconds: 100)));
await tester.pump();
// 137: 동영상을 찾은 페이지만 [다운로드] 가 꽉 찬 버튼 (못 찾으면 테두리만 있는 버튼)
final filled = find.ancestor(of: find.text('다운로드'), matching: find.byWidgetPredicate((w) => w is FilledButton));
videoSeen = filled.evaluate().isNotEmpty && tester.widget<FilledButton>(filled.first).onPressed != null;
// 137: 동영상을 찾은 페이지만 [다운로드] 가 꽉 찬 버튼 (못 찾으면 테두리만 있는 버튼). 도구 막대가 좁으면 (640 미만 - 시험 창
// 804 너비에 패널) 글 없는 아이콘 단추라, 넓든 좁든 같은 알림 글로 본다: 찾았으면 '다운로드', 못 찾았으면 '다운로드 (… 찾지 못했지만 …)'
videoSeen = find.byTooltip('다운로드').evaluate().isNotEmpty;
}
// ignore: avoid_print
print('RESULT 동영상 감지(다운로드 버튼 켜짐): $videoSeen');
@ -64,7 +64,7 @@ void main() {
await cm.setCookie(url: WebUri('https://www.youtube.com/'), name: 'PREF', value: 'hl=ko',
domain: '.youtube.com', isSecure: true, expiresDate: future);
});
await tester.tap(find.text('다운로드'));
await tester.tap(find.byTooltip('다운로드')); // 좁은 도구 막대에서는 글 없는 아이콘 단추
for (var i = 0; i < 50 && c.settings.internalCookieFile.isEmpty; i++) {
await tester.runAsync(() => Future<void>.delayed(const Duration(milliseconds: 100)));
await tester.pump();