fix task count digit detection
This commit is contained in:
1 parent
0c77bf9e0e
commit
dc6ae7d1e4
6 files changed
+400
-74
No files matched your search
@@ -270,7 +270,7 @@ class TestPixelStage:
|
||||
"has_lucky_draw_result": False,
|
||||
"has_attend_button_red": False,
|
||||
"has_fansclub_join_red": False,
|
||||
"has_fudai_detail": False,
|
||||
"has_fudai_detail": True,
|
||||
"has_live_room_pixel": True,
|
||||
},
|
||||
{
|
||||
@@ -287,10 +287,12 @@ class TestPixelStage:
|
||||
|
||||
assert saved_images
|
||||
overview = saved_images[0]
|
||||
# Candidate boxes are visible again: red means checked but not matched.
|
||||
assert overview.getpixel((9, 1173)) == (255, 70, 70)
|
||||
assert overview.getpixel((290, 1300)) == (255, 70, 70)
|
||||
# Task-count digit candidate boxes are visible when the detail page is seen
|
||||
# but the task count itself has not matched yet.
|
||||
assert overview.getpixel((9, 1173)) != (255, 70, 70)
|
||||
assert overview.getpixel((200, 300)) != (255, 70, 70)
|
||||
assert overview.getpixel((977, 1874)) == (0, 220, 80)
|
||||
assert overview.getpixel((975, 1817)) == (0, 220, 80)
|
||||
# Successful live-room icon detection is still annotated.
|
||||
assert overview.getpixel((1002, 172)) == (0, 220, 80)
|
||||
|
||||
|
||||
Reference in new issue
Block a user