Test 6: Test peek functionality with '?' key
()
| 394 | |
| 395 | @pytest.mark.asyncio |
| 396 | async def test_peek_functionality(): |
| 397 | """Test 6: Test peek functionality with '?' key""" |
| 398 | wrapper = XtopTUIWrapper( |
| 399 | datadir=XCAPTURE_DATADIR, |
| 400 | initial_group_cols=['state'] |
| 401 | ) |
| 402 | app = wrapper.create_app() |
| 403 | |
| 404 | async with app.run_test(size=(120, 40)) as pilot: |
| 405 | await pilot.pause() |
| 406 | await wait_for_table_load(pilot) |
| 407 | |
| 408 | # Navigate to a cell |
| 409 | await pilot.press("down") |
| 410 | await pilot.pause() |
| 411 | await pilot.press("right") |
| 412 | await pilot.pause() |
| 413 | |
| 414 | # Try peek |
| 415 | await pilot.press("?") |
| 416 | await pilot.pause() |
| 417 | |
| 418 | # Close peek (if opened) |
| 419 | await pilot.press("escape") |
| 420 | await pilot.pause() |
| 421 | |
| 422 | print("✓ Test 6 passed: Peek functionality works") |
| 423 | |
| 424 | |
| 425 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected