Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 1 | .. _module-pw_console-testing: |
| 2 | |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 3 | ===================== |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 4 | Manual Test Procedure |
| 5 | ===================== |
| 6 | |
| 7 | ``pw_console`` is a Terminal based user interface which is difficult to |
| 8 | completely test in an automated fashion. Unit tests that don't depend on the |
| 9 | user interface are preferred but not always possible. For those situations |
| 10 | manual tests should be added here to validate expected behavior. |
| 11 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 12 | Run in Test Mode |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 13 | ================ |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 14 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 15 | Begin each section below by running the console in test mode: |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 16 | |
| 17 | .. code-block:: shell |
| 18 | |
Anthony DiGirolamo | dbdd346 | 2022-03-05 17:14:36 -0800 | [diff] [blame] | 19 | touch /tmp/empty.yaml |
| 20 | env PW_CONSOLE_CONFIG_FILE='/tmp/empty.yaml' pw console --test-mode |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 21 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 22 | Test Sections |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 23 | ============= |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 24 | |
| 25 | Log Pane: Basic Actions |
| 26 | ^^^^^^^^^^^^^^^^^^^^^^^ |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 27 | |
| 28 | .. list-table:: |
| 29 | :widths: 5 45 45 5 |
| 30 | :header-rows: 1 |
| 31 | |
| 32 | * - # |
| 33 | - Test Action |
| 34 | - Expected Result |
| 35 | - ✅ |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 36 | |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 37 | * - 1 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 38 | - Click the :guilabel:`Fake Device Logs` window title |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 39 | - Log pane is focused |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 40 | - |checkbox| |
| 41 | |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 42 | * - 2 |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 43 | - In the main menu enable :guilabel:`[File] > Log Table View > Hide Date` |
| 44 | - The time column shows only the time. E.g. ``09:34:53``. |
| 45 | - |checkbox| |
| 46 | |
| 47 | * - 3 |
| 48 | - In the main menu turn off :guilabel:`[File] > Log Table View > Hide Date` |
| 49 | - The time column shows the date and time. E.g. ``20220208 09:34:53``. |
| 50 | - |checkbox| |
| 51 | |
| 52 | * - 4 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 53 | - Click :guilabel:`Search` on the log toolbar |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 54 | - | The search bar appears |
| 55 | | The cursor should appear after the ``/`` |
| 56 | - |checkbox| |
| 57 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 58 | * - 5 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 59 | - Press :kbd:`Ctrl-c` |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 60 | - The search bar disappears |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 61 | - |checkbox| |
| 62 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 63 | * - 6 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 64 | - Click :guilabel:`Follow` on the log toolbar |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 65 | - Logs stop following |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 66 | - |checkbox| |
| 67 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 68 | * - 7 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 69 | - Click :guilabel:`Table` on the log toolbar |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 70 | - Table mode is disabled |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 71 | - |checkbox| |
| 72 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 73 | * - 8 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 74 | - Click :guilabel:`Wrap` on the log toolbar |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 75 | - Line wrapping is enabled |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 76 | - |checkbox| |
| 77 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 78 | * - 9 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 79 | - Click :guilabel:`Clear` on the log toolbar |
Anthony DiGirolamo | 8577f74 | 2021-08-06 11:33:42 -0700 | [diff] [blame] | 80 | - | All log lines are erased |
| 81 | | Follow mode is on |
| 82 | | New lines start appearing |
| 83 | - |checkbox| |
| 84 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 85 | * - 10 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 86 | - | Mouse drag across a few log messages |
| 87 | - | Entire logs are highlighted and a dialog |
| 88 | | box appears in the upper right |
| 89 | - |checkbox| |
| 90 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 91 | * - 11 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 92 | - | Without scrolling mouse drag across a set |
| 93 | | of different log messages. |
| 94 | - | The old selection disappears leaving only the new selection. |
| 95 | - |checkbox| |
| 96 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 97 | * - 12 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 98 | - | Click the :guilabel:`Cancel` button |
| 99 | | in the selection dialog box. |
| 100 | - | The selection and the dialog box disappears. |
| 101 | - |checkbox| |
| 102 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 103 | * - 13 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 104 | - | Mouse drag across a few log messages and |
| 105 | | click the :guilabel:`Save as File` button. |
| 106 | - | The save as file dialog appears with the |
| 107 | | :guilabel:`[x] Selected Lines Only` opion checked. |
| 108 | - |checkbox| |
| 109 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 110 | * - 14 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 111 | - | Press :kbd:`Cancel` |
| 112 | - | The save dialog closes |
| 113 | - |checkbox| |
| 114 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 115 | * - 15 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 116 | - | Click the :guilabel:`Save` button on the log toolbar. |
| 117 | | A dialog appears prompting for a file. |
| 118 | - | The current working directory should be pre-filled. |
| 119 | - |checkbox| |
| 120 | |
Anthony DiGirolamo | dec8d5e | 2022-02-08 08:58:57 -0800 | [diff] [blame] | 121 | * - 16 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 122 | - | Check :guilabel:`[x] Table Formatting` |
| 123 | | Uncheck :guilabel:`[ ] Selected Lines Only` |
| 124 | | Add ``/log.txt`` to the end and press :kbd:`Enter` |
| 125 | | Click the menu :guilabel:`[File] > Exit` |
| 126 | - | In the terminal run ``cat log.txt`` to verify logs |
| 127 | | were saved correctly. |
| 128 | - |checkbox| |
| 129 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 130 | Log Pane: Search and Filtering |
| 131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 132 | |
| 133 | .. list-table:: |
| 134 | :widths: 5 45 45 5 |
| 135 | :header-rows: 1 |
| 136 | |
| 137 | * - # |
| 138 | - Test Action |
| 139 | - Expected Result |
| 140 | - ✅ |
| 141 | |
| 142 | * - 1 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 143 | - Click the :guilabel:`Fake Device Logs` window title |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 144 | - Log pane is focused |
| 145 | - |checkbox| |
| 146 | |
| 147 | * - 2 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 148 | - Press :kbd:`/` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 149 | - | The search bar appears |
| 150 | | The cursor should appear after the ``/`` |
| 151 | - |checkbox| |
| 152 | |
| 153 | * - 3 |
| 154 | - | Type ``lorem`` |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 155 | | Press :kbd:`Enter` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 156 | - | Logs stop following |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 157 | | ``Lorem`` words are highlighted in cyan |
| 158 | | The cursor on the first log message |
| 159 | | The search toolbar is un-focused and displays: |
| 160 | | ``Match 1 / 10`` where the second number (the total match count) |
| 161 | | increases once every 10 seconds when new logs arrive. |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 162 | - |checkbox| |
| 163 | |
| 164 | * - 4 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 165 | - Press :kbd:`Ctrl-f` |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 166 | - | The search bar is focused |
| 167 | | The cursor should appear after ``/Lorem`` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 168 | - |checkbox| |
| 169 | |
| 170 | * - 5 |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 171 | - Press :kbd:`Ctrl-c` |
| 172 | - | The search bar disappears |
| 173 | | ``Lorem`` words are no longer highlighted |
| 174 | - |checkbox| |
| 175 | |
| 176 | * - 6 |
| 177 | - Press :kbd:`/` |
| 178 | - | The search bar appears and is empty |
| 179 | | The cursor should appear after ``/`` |
| 180 | - |checkbox| |
| 181 | |
| 182 | * - 7 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 183 | - Click :guilabel:`Matcher:` once |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 184 | - ``Matcher:STRING`` is shown |
| 185 | - |checkbox| |
| 186 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 187 | * - 8 |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 188 | - | Type ``[=`` |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 189 | | Press :kbd:`Enter` |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 190 | - | All instances of ``[=`` should be highlighted |
| 191 | | The cursor should be on log message 2 |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 192 | - |checkbox| |
| 193 | |
| 194 | * - 7 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 195 | - Press :kbd:`/` |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 196 | - | The search bar is focused |
| 197 | | The cursor should appear after the ``/[=`` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 198 | - |checkbox| |
| 199 | |
| 200 | * - 8 |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 201 | - Press :kbd:`Ctrl-c` |
| 202 | - | The search bar disappears |
| 203 | | ``[=`` matches are no longer highlighted |
| 204 | - |checkbox| |
| 205 | |
| 206 | * - 9 |
| 207 | - Press :kbd:`/` |
| 208 | - | The search bar appears and is empty |
| 209 | | The cursor should appear after ``/`` |
| 210 | - |checkbox| |
| 211 | |
| 212 | * - 10 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 213 | - Press :kbd:`Up` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 214 | - The text ``[=`` should appear in the search input field |
| 215 | - |checkbox| |
| 216 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 217 | * - 11 |
| 218 | - Click :guilabel:`Search Enter` |
| 219 | - | All instances of ``[=`` should be highlighted |
| 220 | | The cursor should be on log message 12 |
| 221 | - |checkbox| |
| 222 | |
| 223 | * - 12 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 224 | - Click :guilabel:`Add Filter` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 225 | - | A ``Filters`` toolbar will appear |
| 226 | | showing the new filter: ``<\[= (X)>``. |
| 227 | | Only log messages matching ``[=`` appear in the logs. |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 228 | | Follow mode is enabled |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 229 | - |checkbox| |
| 230 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 231 | * - 13 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 232 | - | Press :kbd:`/` |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 233 | - | The search bar appears and is empty |
| 234 | | The cursor should appear after ``/`` |
| 235 | - |checkbox| |
| 236 | |
| 237 | * - 14 |
| 238 | - | Type ``# 1`` and press :kbd:`Enter` |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 239 | | Click :guilabel:`Add Filter` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 240 | - | The ``Filters`` toolbar shows a new filter: ``<\#\ 1 (X)>``. |
| 241 | | Only log messages matching both filters will appear in the logs. |
| 242 | - |checkbox| |
| 243 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 244 | * - 15 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 245 | - | Click the first :guilabel:`(X)` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 246 | | in the filter toolbar. |
| 247 | - | The ``Filters`` toolbar shows only one filter: ``<\#\ 1 (X)>``. |
| 248 | | More log messages will appear in the log window |
| 249 | | Lines all end in: ``# 1.*`` |
| 250 | - |checkbox| |
| 251 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 252 | * - 16 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 253 | - Click :guilabel:`Clear Filters` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 254 | - | The ``Filters`` toolbar will disappear. |
| 255 | | All log messages will be shown in the log window. |
| 256 | - |checkbox| |
| 257 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 258 | * - 17 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 259 | - | Press :kbd:`/` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 260 | | Type ``BAT`` |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 261 | | Click :guilabel:`Column` until ``Column:Module`` is shown |
| 262 | | Press :kbd:`Enter` |
| 263 | - | Logs stop following |
| 264 | | ``BAT`` is highlighted in cyan |
| 265 | | The cursor on the 3rd log message |
| 266 | | The search toolbar is un-focused and displays: |
| 267 | | ``Match 1 / 10`` where the second number (the total match count) |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 268 | - |checkbox| |
| 269 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 270 | * - 18 |
| 271 | - Press :kbd:`n` |
| 272 | - | ``BAT`` is highlighted in cyan |
| 273 | | The cursor on the 7th log message and is in the center of the |
| 274 | | log window (not the bottom). |
| 275 | - |checkbox| |
| 276 | |
| 277 | * - 19 |
| 278 | - Click :guilabel:`Jump to new matches` |
| 279 | - | :guilabel:`Jump to new matches` is checked and every 5 seconds |
| 280 | | the cursor jumps to the latest matching log message. |
| 281 | - |checkbox| |
| 282 | |
| 283 | * - 20 |
| 284 | - Click :guilabel:`Follow` |
| 285 | - | :guilabel:`Jump to new matches` is unchecked |
| 286 | | The cursor jumps to every new log message once a second. |
| 287 | - |checkbox| |
| 288 | |
| 289 | * - 21 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 290 | - | Click :guilabel:`Add Filter` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 291 | - | The Filters toolbar appears with one filter: ``<module BAT (X)>`` |
| 292 | | Only logs with Module matching ``BAT`` appear. |
| 293 | - |checkbox| |
| 294 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 295 | * - 22 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 296 | - Click :guilabel:`Clear Filters` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 297 | - | The ``Filters`` toolbar will disappear. |
| 298 | | All log messages will be shown in the log window. |
| 299 | - |checkbox| |
| 300 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 301 | * - 23 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 302 | - | Press :kbd:`/` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 303 | | Type ``BAT`` |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 304 | | Click :guilabel:`Invert` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 305 | - ``[x] Invert`` setting is shown |
| 306 | - |checkbox| |
| 307 | |
Anthony DiGirolamo | 888d5a4 | 2022-02-06 11:37:54 -0800 | [diff] [blame] | 308 | * - 24 |
| 309 | - | Press :kbd:`Enter` then click :guilabel:`Add Filter` |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 310 | - | The Filters toolbar appears |
| 311 | | One filter is shown: ``<NOT module BAT (X)>`` |
| 312 | | Only logs with Modules other than ``BAT`` appear. |
| 313 | - |checkbox| |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 314 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 315 | Help Windows |
| 316 | ^^^^^^^^^^^^ |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 317 | |
| 318 | .. list-table:: |
| 319 | :widths: 5 45 45 5 |
| 320 | :header-rows: 1 |
| 321 | |
| 322 | * - # |
| 323 | - Test Action |
| 324 | - Expected Result |
| 325 | - ✅ |
| 326 | |
| 327 | * - 1 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 328 | - Click the :guilabel:`[Help] > User Guide` |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 329 | - | Window appears showing the user guide with |
| 330 | | RST formatting and syntax highlighting |
| 331 | - |checkbox| |
| 332 | |
| 333 | * - 2 |
| 334 | - Press :guilabel:`q` |
| 335 | - Window is hidden |
| 336 | - |checkbox| |
| 337 | |
| 338 | * - 3 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 339 | - Click the :guilabel:`[Help] > Keyboard Shortcuts` |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 340 | - Window appears showing the keybind list |
| 341 | - |checkbox| |
| 342 | |
| 343 | * - 4 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 344 | - Press :kbd:`F1` |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 345 | - Window is hidden |
| 346 | - |checkbox| |
| 347 | |
| 348 | * - 5 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 349 | - Click the :guilabel:`[Help] > Console Test Mode Help` |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 350 | - | Window appears showing help with content |
| 351 | | ``Welcome to the Pigweed Console Test Mode!`` |
| 352 | - |checkbox| |
| 353 | |
| 354 | * - 6 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 355 | - Click the :guilabel:`Close q` button. |
Anthony DiGirolamo | 546619f | 2021-07-22 17:44:04 -0700 | [diff] [blame] | 356 | - Window is hidden |
| 357 | - |checkbox| |
| 358 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 359 | Window Management |
| 360 | ^^^^^^^^^^^^^^^^^ |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 361 | |
| 362 | .. list-table:: |
| 363 | :widths: 5 45 45 5 |
| 364 | :header-rows: 1 |
| 365 | |
| 366 | * - # |
| 367 | - Test Action |
| 368 | - Expected Result |
| 369 | - ✅ |
| 370 | |
| 371 | * - 1 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 372 | - | Click the :guilabel:`Fake Device Logs` window title |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 373 | - Log pane is focused |
| 374 | - |checkbox| |
| 375 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 376 | * - 2 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 377 | - | Click the menu :guilabel:`Windows > #: Fake Device Logs...` |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 378 | | Click :guilabel:`Duplicate pane` |
| 379 | - | 3 panes are visible: |
| 380 | | Log pane on top |
| 381 | | Repl pane in the middle |
| 382 | | Log pane on the bottom |
| 383 | - |checkbox| |
| 384 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 385 | * - 3 |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 386 | - | Click the :guilabel:`Python Input` window title |
| 387 | - Python Input pane is focused |
| 388 | - |checkbox| |
| 389 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 390 | * - 4 |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 391 | - Click the :guilabel:`View > Move Window Down` |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 392 | - | 3 panes are visible: |
| 393 | | Log pane on top |
| 394 | | Log pane in the middle |
| 395 | | Repl pane on the bottom |
| 396 | - |checkbox| |
| 397 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 398 | * - 5 |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 399 | - Click the :guilabel:`View > Move Window Down` again |
| 400 | - | Nothing changes |
| 401 | | Windows remain in the same order |
| 402 | - |checkbox| |
| 403 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 404 | * - 6 |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 405 | - Click the :guilabel:`View > Move Window Up` |
| 406 | - | 3 panes are visible: |
| 407 | | Log pane on top |
| 408 | | Repl pane in the middle |
| 409 | | Log pane on the bottom |
| 410 | - |checkbox| |
| 411 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 412 | * - 7 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 413 | - | Click the menu :guilabel:`Windows > #: Fake Device Logs...` |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 414 | | Click :guilabel:`Remove pane` |
| 415 | - | 2 panes are visible: |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 416 | | Repl pane on the top |
| 417 | | Log pane on bottom |
| 418 | - |checkbox| |
| 419 | |
| 420 | * - 8 |
| 421 | - | Click the :guilabel:`Python Input` |
| 422 | | window title |
| 423 | - Repl pane is focused |
| 424 | - |checkbox| |
| 425 | |
| 426 | * - 9 |
| 427 | - | Hold the keys :guilabel:`Alt- -` |
| 428 | | `Alt` and `Minus` |
| 429 | - Repl pane shrinks |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 430 | - |checkbox| |
| 431 | |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 432 | * - 10 |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 433 | - Hold the keys :guilabel:`Alt-=` |
| 434 | - Repl pane enlarges |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 435 | - |checkbox| |
| 436 | |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 437 | * - 11 |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 438 | - | Click the menu :guilabel:`Windows > 1: Logs fake_device.1` |
| 439 | | Click :guilabel:`Duplicate pane` |
| 440 | - | 3 panes are visible: |
| 441 | | 2 Log panes on the left |
| 442 | | Repl pane on the right |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 443 | - |checkbox| |
| 444 | |
Anthony DiGirolamo | 21fd9bb | 2021-07-28 09:45:33 -0700 | [diff] [blame] | 445 | * - 12 |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 446 | - | Click the left top :guilabel:`Logs` window title |
| 447 | - Log pane is focused |
Anthony DiGirolamo | fcf278d | 2021-07-27 19:55:39 -0700 | [diff] [blame] | 448 | - |checkbox| |
| 449 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 450 | * - 13 |
| 451 | - Click the :guilabel:`View > Move Window Right` |
| 452 | - | 3 panes are visible: |
| 453 | | 1 Log panes on the left |
| 454 | | 1 Log and Repl pane on the right |
| 455 | - |checkbox| |
| 456 | |
| 457 | * - 14 |
| 458 | - | Click the menu :guilabel:`Windows > Column 2 View Modes` |
| 459 | | Then click :guilabel:`[ ] Tabbed Windows` |
| 460 | - | 2 panes are visible: |
| 461 | | 1 Log panes on the left |
| 462 | | 1 Log panes on the right |
| 463 | | A tab bar on the top of the right side |
| 464 | | `Logs fake_device.1` is highlighted |
| 465 | - |checkbox| |
| 466 | |
| 467 | * - 15 |
| 468 | - | On the right side tab bar |
| 469 | | Click :guilabel:`Python Repl` |
| 470 | - | 2 panes are visible: |
| 471 | | 1 Log pane on the left |
| 472 | | 1 Repl pane on the right |
| 473 | | `Python Repl` is highlighted |
| 474 | | on the tab bar |
| 475 | - |checkbox| |
| 476 | |
Anthony DiGirolamo | 68a9150 | 2021-11-14 12:42:38 -0800 | [diff] [blame] | 477 | Mouse Window Resizing |
| 478 | ^^^^^^^^^^^^^^^^^^^^^ |
| 479 | |
| 480 | .. list-table:: |
| 481 | :widths: 5 45 45 5 |
| 482 | :header-rows: 1 |
| 483 | |
| 484 | * - # |
| 485 | - Test Action |
| 486 | - Expected Result |
| 487 | - ✅ |
| 488 | |
| 489 | * - 1 |
| 490 | - | Click the :guilabel:`Fake Device Logs` window |
| 491 | - Log pane is focused |
| 492 | - |checkbox| |
| 493 | |
| 494 | * - 2 |
Anthony DiGirolamo | dbdd346 | 2022-03-05 17:14:36 -0800 | [diff] [blame] | 495 | - | Left click and hold the :guilabel:`-==-` of that window |
Anthony DiGirolamo | 68a9150 | 2021-11-14 12:42:38 -0800 | [diff] [blame] | 496 | | Drag the mouse up and down |
| 497 | - This log pane is resized |
| 498 | - |checkbox| |
| 499 | |
| 500 | * - 3 |
Anthony DiGirolamo | dbdd346 | 2022-03-05 17:14:36 -0800 | [diff] [blame] | 501 | - | Left click and hold the :guilabel:`-==-` |
Anthony DiGirolamo | 68a9150 | 2021-11-14 12:42:38 -0800 | [diff] [blame] | 502 | | of the :guilabel:`PwConsole Debug` window |
| 503 | | Drag the mouse up and down |
| 504 | - | The :guilabel:`PwConsole Debug` should NOT be focused |
| 505 | | The window should be resized as expected |
| 506 | - |checkbox| |
| 507 | |
Anthony DiGirolamo | dbdd346 | 2022-03-05 17:14:36 -0800 | [diff] [blame] | 508 | * - 4 |
| 509 | - Click the :guilabel:`View > Move Window Right` |
| 510 | - :guilabel:`Fake Device Logs` should appear in a right side split |
| 511 | - |checkbox| |
| 512 | |
| 513 | * - 5 |
| 514 | - | Left click and hold anywhere on the vertical separator |
| 515 | | Drag the mouse left and right |
| 516 | - | The window splits should be resized as expected |
| 517 | - |checkbox| |
| 518 | |
| 519 | * - 6 |
| 520 | - Click the :guilabel:`View > Balance Window Sizes` |
| 521 | - Window split sizes should reset to equal widths |
| 522 | - |checkbox| |
| 523 | |
| 524 | * - 7 |
| 525 | - | Focus on the :guilabel:`Python Repl` window |
| 526 | | Click the :guilabel:`View > Move Window Left` |
| 527 | - | :guilabel:`Python Repl` should appear in a left side split |
| 528 | | There should be 3 vertical splits in total |
| 529 | - |checkbox| |
| 530 | |
| 531 | * - 8 |
| 532 | - | Left click and hold anywhere on the vertical separator |
| 533 | | between the first two splits (Python Repl and the middle split) |
| 534 | | Drag the mouse left and right |
| 535 | - | The first two window splits should be resized. |
| 536 | | The 3rd split size should not change. |
| 537 | - |checkbox| |
| 538 | |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 539 | Copy Paste |
| 540 | ^^^^^^^^^^ |
| 541 | |
| 542 | .. list-table:: |
| 543 | :widths: 5 45 45 5 |
| 544 | :header-rows: 1 |
| 545 | |
| 546 | * - # |
| 547 | - Test Action |
| 548 | - Expected Result |
| 549 | - ✅ |
| 550 | |
| 551 | * - 1 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 552 | - | Click the :guilabel:`Fake Device Logs` window title |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 553 | - Log pane is focused |
| 554 | - |checkbox| |
| 555 | |
| 556 | * - 2 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 557 | - | Mouse drag across a few log messages |
| 558 | - | A dialog appears in the upper right showing |
| 559 | | the number of lines selected and |
| 560 | | buttons for :guilabel:`Cancel`, :guilabel:`Select All`, |
| 561 | | :guilabel:`Save as File`, and :guilabel:`Copy`. |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 562 | - |checkbox| |
| 563 | |
| 564 | * - 3 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 565 | - | Click the :guilabel:`Copy` button |
| 566 | - | Try pasting into a separate text editor |
| 567 | | Log lines like this should be pasted: |
| 568 | | ``20:07:25 INF APP Log message [ = ] # 25`` |
| 569 | | ``20:07:25 INF RADIO Log message [ = ] # 26`` |
| 570 | - |checkbox| |
| 571 | |
| 572 | * - 4 |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 573 | - | Copy this text in your browser or |
| 574 | | text editor to the system clipboard: |
| 575 | | ``print('copy paste test!')`` |
| 576 | - | Click the :guilabel:`Python Input` window title |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 577 | | Press :kbd:`Ctrl-v` |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 578 | | ``print('copy paste test!')`` appears |
| 579 | | after the prompt. |
| 580 | - |checkbox| |
| 581 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 582 | * - 5 |
| 583 | - Press :kbd:`Enter` |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 584 | - | This appears in Python Results: |
| 585 | | ``In [1]: print('copy paste test!')`` |
| 586 | | ``copy paste test!`` |
| 587 | - |checkbox| |
| 588 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 589 | * - 6 |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 590 | - | Click :guilabel:`Ctrl-Alt-c -> Copy Output` |
| 591 | | on the Python Results toolbar |
| 592 | | Try pasting into a separate text editor |
| 593 | - | The contents of the Python Results |
| 594 | | are in the system clipboard. |
| 595 | - |checkbox| |
| 596 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 597 | * - 7 |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 598 | - Click the :guilabel:`Python Results` window title |
| 599 | - | Python Results is focused with cursor |
| 600 | | appearing below the last line |
| 601 | - |checkbox| |
| 602 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 603 | * - 8 |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 604 | - | Click and drag over ``copy paste text`` |
| 605 | | highlighting won't appear until |
| 606 | | after the mouse button is released |
| 607 | - | ``copy paste text`` is highlighted |
| 608 | - |checkbox| |
| 609 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 610 | * - 9 |
| 611 | - | Press :kbd:`Ctrl-c` |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 612 | | Try pasting into a separate text editor |
| 613 | - | ``copy paste text`` should appear (and is |
| 614 | | in the system clipboard) |
| 615 | - |checkbox| |
| 616 | |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 617 | * - 10 |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 618 | - Click the :guilabel:`Python Input` window title |
| 619 | - Python Input is focused |
| 620 | - |checkbox| |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 621 | |
Anthony DiGirolamo | abe736a | 2022-03-07 14:20:08 -0800 | [diff] [blame] | 622 | * - 11 |
| 623 | - | Type ``print('hello there')`` into the Python input. |
| 624 | | Mouse drag select that text |
| 625 | | Press :kbd:`Ctrl-c` |
| 626 | - | The selection should disappear. |
| 627 | | Try pasting into a separate text editor, the paste should |
| 628 | | match the text you drag selected. |
| 629 | - |checkbox| |
| 630 | |
Anthony DiGirolamo | fc1c716 | 2021-07-29 08:41:52 -0700 | [diff] [blame] | 631 | Incremental Stdout |
| 632 | ^^^^^^^^^^^^^^^^^^ |
| 633 | |
| 634 | .. list-table:: |
| 635 | :widths: 5 45 45 5 |
| 636 | :header-rows: 1 |
| 637 | |
| 638 | * - # |
| 639 | - Test Action |
| 640 | - Expected Result |
| 641 | - ✅ |
| 642 | |
| 643 | * - 1 |
| 644 | - | Click the :guilabel:`Python Input` window title |
| 645 | - Python Input pane is focused |
| 646 | - |checkbox| |
| 647 | |
| 648 | * - 2 |
| 649 | - | Enter the following text and hit enter twice |
| 650 | | ``import time`` |
| 651 | | ``for i in range(10):`` |
| 652 | | ``print(i); time.sleep(1)`` |
| 653 | - | ``Running...`` should appear in the python with |
| 654 | | increasing integers incrementally appearing above |
| 655 | | (not all at once after a delay). |
| 656 | - |checkbox| |
| 657 | |
Anthony DiGirolamo | 8577f74 | 2021-08-06 11:33:42 -0700 | [diff] [blame] | 658 | Python Input & Output |
| 659 | ^^^^^^^^^^^^^^^^^^^^^ |
| 660 | |
| 661 | .. list-table:: |
| 662 | :widths: 5 45 45 5 |
| 663 | :header-rows: 1 |
| 664 | |
| 665 | * - # |
| 666 | - Test Action |
| 667 | - Expected Result |
| 668 | - ✅ |
| 669 | |
| 670 | * - 1 |
Anthony DiGirolamo | 1f48648 | 2021-11-13 17:09:01 -0800 | [diff] [blame] | 671 | - Click the ``Logs`` window title |
| 672 | - Log pane is focused |
Anthony DiGirolamo | 8577f74 | 2021-08-06 11:33:42 -0700 | [diff] [blame] | 673 | - |checkbox| |
| 674 | |
| 675 | * - 2 |
Anthony DiGirolamo | 1f48648 | 2021-11-13 17:09:01 -0800 | [diff] [blame] | 676 | - Click empty whitespace in the ``Python Results`` window |
| 677 | - Python Results pane is focused |
| 678 | - |checkbox| |
| 679 | |
| 680 | * - 3 |
| 681 | - Click empty whitespace in the ``Python Input`` window |
| 682 | - Python Input pane is focused |
| 683 | - |checkbox| |
| 684 | |
| 685 | * - 4 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 686 | - | Enter the following text and press :kbd:`Enter` to run |
Anthony DiGirolamo | 8577f74 | 2021-08-06 11:33:42 -0700 | [diff] [blame] | 687 | | ``[i for i in __builtins__ if not i.startswith('_')]`` |
| 688 | - | The results should appear pretty printed |
| 689 | | with each list element on it's own line: |
| 690 | | |
| 691 | | >>> [i for i in __builtins__ if not i.startswith('_')] |
| 692 | | [ 'abs', |
| 693 | | 'all', |
| 694 | | 'any', |
| 695 | | 'ascii' |
| 696 | | |
| 697 | - |checkbox| |
| 698 | |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 699 | * - 5 |
Anthony DiGirolamo | a84d964 | 2022-01-31 18:25:03 -0800 | [diff] [blame] | 700 | - | Enter the following text and press :kbd:`Enter` to run |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 701 | | ``globals()`` |
| 702 | - | The results should appear pretty printed |
| 703 | - |checkbox| |
| 704 | |
| 705 | * - 6 |
| 706 | - | With the cursor over the Python Output, |
| 707 | | use the mouse wheel to scroll up and down. |
| 708 | - | The output window should be able to scroll all |
| 709 | | the way to the beginning and end of the buffer. |
| 710 | - |checkbox| |
| 711 | |
Anthony DiGirolamo | a6d01c4 | 2022-02-17 14:27:11 -0800 | [diff] [blame] | 712 | Early Startup |
| 713 | ^^^^^^^^^^^^^ |
| 714 | |
| 715 | .. list-table:: |
| 716 | :widths: 5 45 45 5 |
| 717 | :header-rows: 1 |
| 718 | |
| 719 | * - # |
| 720 | - Test Action |
| 721 | - Expected Result |
| 722 | - ✅ |
| 723 | |
| 724 | * - 1 |
| 725 | - | Start the pw console test mode by |
| 726 | | running ``pw console --test-mode`` |
| 727 | - | Console starts up showing an ``All Logs`` window. |
| 728 | - |checkbox| |
| 729 | |
| 730 | * - 2 |
| 731 | - | Click the :guilabel:`All Logs` window title |
| 732 | | Press :kbd:`g` to jump to the top of the log history |
| 733 | - | These log messages should be at the top: |
| 734 | | ``DBG Adding plugins...`` |
| 735 | | ``DBG Starting prompt_toolkit full-screen application...`` |
| 736 | | ``DBG pw_console test-mode starting...`` |
| 737 | | ``DBG pw_console.PwConsoleEmbed init complete`` |
| 738 | - |checkbox| |
| 739 | |
Anthony DiGirolamo | d06db56 | 2022-02-01 21:56:27 -0800 | [diff] [blame] | 740 | Quit Confirmation Dialog |
| 741 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 742 | |
| 743 | .. list-table:: |
| 744 | :widths: 5 45 45 5 |
| 745 | :header-rows: 1 |
| 746 | |
| 747 | * - # |
| 748 | - Test Action |
| 749 | - Expected Result |
| 750 | - ✅ |
| 751 | |
| 752 | * - 1 |
| 753 | - | Press :kbd:`Ctrl-d` |
| 754 | - | The quit dialog appears |
| 755 | - |checkbox| |
| 756 | |
| 757 | * - 2 |
| 758 | - | Press :kbd:`n` |
| 759 | - | The quit dialog disappears |
| 760 | - |checkbox| |
| 761 | |
| 762 | * - 3 |
| 763 | - | Press :kbd:`Ctrl-d` |
| 764 | - | The quit dialog appears |
| 765 | - |checkbox| |
| 766 | |
| 767 | * - 4 |
| 768 | - | Press :kbd:`y` |
| 769 | - | The console exits |
| 770 | - |checkbox| |
| 771 | |
| 772 | * - 5 |
| 773 | - | Restart the console and |
| 774 | | Press :kbd:`Ctrl-d` twice in quick succession. |
| 775 | - | The console exits |
| 776 | - |checkbox| |
| 777 | |
| 778 | * - 6 |
| 779 | - | Restart the console and Press :kbd:`F1` |
| 780 | - | The help window appears |
| 781 | - |checkbox| |
| 782 | |
| 783 | * - 7 |
| 784 | - | Press :kbd:`Ctrl-d` |
| 785 | - | The quit dialog appears on top of the help window |
| 786 | - |checkbox| |
| 787 | |
| 788 | * - 8 |
| 789 | - | Press :kbd:`n` |
| 790 | - | The quit dialog disappears and the help window is |
| 791 | | back in focus. |
| 792 | - |checkbox| |
| 793 | |
| 794 | * - 9 |
| 795 | - | Press :kbd:`q` |
| 796 | - | The help window disappears and the Python Input is in focus. |
| 797 | - |checkbox| |
| 798 | |
| 799 | * - 10 |
| 800 | - | Type some text into the Python Input. |
| 801 | | Press :kbd:`Home` or move the cursor to the |
| 802 | | beginning of the text you just entered. |
| 803 | | Press :kbd:`Ctrl-d` |
| 804 | - | Each :kbd:`Ctrl-d` press deletes one character |
| 805 | - |checkbox| |
| 806 | |
| 807 | * - 11 |
| 808 | - | Press :kbd:`Ctrl-c` to clear the Python Input text |
| 809 | | Press :kbd:`Ctrl-d` |
| 810 | - | The quit dialog appears. |
| 811 | - |checkbox| |
| 812 | |
Anthony DiGirolamo | 54db765 | 2021-07-28 11:14:24 -0700 | [diff] [blame] | 813 | Add note to the commit message |
Anthony DiGirolamo | c6126af | 2021-12-15 14:10:32 -0800 | [diff] [blame] | 814 | ============================== |
Anthony DiGirolamo | 4644099 | 2021-07-19 16:07:47 -0700 | [diff] [blame] | 815 | |
| 816 | Add a ``Testing:`` line to your commit message and mention the steps |
| 817 | executed. For example: |
| 818 | |
| 819 | .. code-block:: text |
| 820 | |
Anthony DiGirolamo | 802f599 | 2021-07-28 22:52:54 -0700 | [diff] [blame] | 821 | Testing: Log Pane Steps 1-6 |
Anthony DiGirolamo | e8f4474 | 2021-07-20 17:23:22 -0700 | [diff] [blame] | 822 | |
| 823 | .. |checkbox| raw:: html |
| 824 | |
| 825 | <input type="checkbox"> |