MCPcopy
hub / github.com/tanelpoder/0xtools / test_grouping_menu

Function test_grouping_menu

xtop/tests/test_tui_basic.py:259–282  ·  view source on GitHub ↗

Test 2: Opening and using the grouping menu

()

Source from the content-addressed store, hash-verified

257
258@pytest.mark.asyncio
259async def test_grouping_menu():
260 """Test 2: Opening and using the grouping menu"""
261 wrapper = XtopTUIWrapper(
262 datadir=XCAPTURE_DATADIR,
263 initial_group_cols=['state']
264 )
265 app = wrapper.create_app()
266
267 async with app.run_test(size=(120, 40)) as pilot:
268 await pilot.pause()
269 await wait_for_table_load(pilot)
270
271 # Open grouping menu
272 await pilot.press("g")
273 await pilot.pause()
274
275 # The menu should be visible now
276 # In real implementation, we'd check for the GroupingMenuScreen
277
278 # Close menu with escape
279 await pilot.press("escape")
280 await pilot.pause()
281
282 print("✓ Test 2 passed: Grouping menu opens and closes")
283
284
285@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

create_appMethod · 0.95
wait_for_table_loadFunction · 0.85
XtopTUIWrapperClass · 0.70

Tested by

no test coverage detected