Select a single column in the grouping menu using search
(pilot, column: str)
| 102 | |
| 103 | |
| 104 | async def select_single_column_in_grouping(pilot, column: str): |
| 105 | """Select a single column in the grouping menu using search""" |
| 106 | await pilot.press("g") # Open grouping menu |
| 107 | await pilot.pause(1.0) # Give menu time to fully load |
| 108 | |
| 109 | # Type the column name to search |
| 110 | search_text = column.lower() |
| 111 | for char in search_text: |
| 112 | await pilot.press(char) |
| 113 | await pilot.pause(0.1) |
| 114 | |
| 115 | # Wait for search to filter |
| 116 | await pilot.pause(1.0) |
| 117 | |
| 118 | # The first matching item should be highlighted |
| 119 | # Press space to toggle it |
| 120 | await pilot.press("space") |
| 121 | await pilot.pause(0.5) |
| 122 | |
| 123 | # Apply the selection |
| 124 | await pilot.press("enter") |
| 125 | await pilot.pause(2.0) # Give more time for query to execute |
| 126 | |
| 127 | |
| 128 | async def add_latency_columns(pilot, columns: list): |
no outgoing calls
no test coverage detected