fix(navigation): harden obstacle guard and structural sanity checks against phantom keyboards and reply-box traps
This commit is contained in:
@@ -11,15 +11,15 @@ def test_media_intent_rejects_grid_containers():
|
||||
engine = TelepathicEngine()
|
||||
screen_height = 2400
|
||||
|
||||
from GramAddict.core.perception.spatial_parser import SpatialNode
|
||||
|
||||
# Mock node representing a massive RecyclerView containing the entire grid
|
||||
# Area is 1080 * 2400 = 2592000 > MAX_CONTAINER_AREA (500000)
|
||||
massive_grid_container = {
|
||||
"semantic_string": "id context: 'swipeable nav view pager inner recycler view'",
|
||||
"area": 2592000,
|
||||
"y": 1200,
|
||||
"class_name": "androidx.recyclerview.widget.RecyclerView",
|
||||
"resource_id": "com.instagram.android:id/swipeable_nav_view_pager_inner_recycler_view",
|
||||
}
|
||||
massive_grid_container = SpatialNode(
|
||||
bounds=(0, 0, 1080, 2400),
|
||||
class_name="androidx.recyclerview.widget.RecyclerView",
|
||||
resource_id="com.instagram.android:id/swipeable_nav_view_pager_inner_recycler_view",
|
||||
)
|
||||
|
||||
# Intent
|
||||
intent = "first image post in profile grid"
|
||||
|
||||
Reference in New Issue
Block a user