test: harmonize intent strings in verify_success for reels and explore grid
This commit is contained in:
@@ -113,11 +113,11 @@ class ActionMemory:
|
||||
intent_lower = intent.lower()
|
||||
post_xml_lower = post_click_xml.lower()
|
||||
|
||||
# Specific check for explore grid
|
||||
if "first image in explore grid" in intent_lower or "grid item" in intent_lower:
|
||||
if "row_feed_photo_imageview" in post_xml_lower or "row_feed_button_like" in post_xml_lower:
|
||||
# Specific check for opening a post (from explore/profile grid)
|
||||
if "view a post" in intent_lower or "first image" in intent_lower or "grid item" in intent_lower:
|
||||
if "row_feed_photo_imageview" in post_xml_lower or "row_feed_button_like" in post_xml_lower or "clips_viewer_view_pager" in post_xml_lower:
|
||||
return True
|
||||
if "explore_action_bar" in post_xml_lower and "row_feed_button_like" not in post_xml_lower:
|
||||
if "explore_action_bar" in post_xml_lower and "row_feed_button_like" not in post_xml_lower and "clips_viewer" not in post_xml_lower:
|
||||
return None # Still on grid, inconclusive
|
||||
|
||||
state_toggles = ["like", "save", "follow", "heart"]
|
||||
|
||||
Reference in New Issue
Block a user