xref: /aosp_15_r20/external/pigweed/pw_web/testing.rst (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1.. _module-pw_web-testing:
2
3=====================
4Manual Test Procedure
5=====================
6``pw_web`` is a web based log viewer and the manual tests here are intended
7to address situations where automated tests are not able to cover.
8
9Test Sections
10=============
11
12Log View Controls
13^^^^^^^^^^^^^^^^^
14
15.. list-table::
16   :widths: 5 45 45 5
17   :header-rows: 1
18
19   * - #
20     - Test Action
21     - Expected Result
22     - ✅
23
24   * - 1
25     - | Input bar is empty
26       | Press the :guilabel:`clear logs` button  (trash can with lines)
27     - | Logs are cleared and entries after time of button press are addded.
28     - |checkbox|
29
30   * - 2
31     - | Input bar has a single word filter
32       | Press the :guilabel:`clear logs` button  (trash can with lines)
33     - | Logs are cleared and filtered entries after time of button press are addded.
34     - |checkbox|
35
36   * - 3
37     - | Table is autoscrolling, scroll up
38     - | Autoscroll is disabled and :guilabel:`jump to bottom` button is visible.
39     - |checkbox|
40
41   * - 4
42     - | Press :guilabel:`clear logs` button  (trash can with lines)
43     - | Autoscroll is enabled and :guilabel:`jump to bottom` button is not visible.
44     - |checkbox|
45
46Add note to the commit message
47==============================
48Add a ``Testing:`` line to your commit message and mention the steps
49executed. For example:
50
51.. code-block:: text
52
53   Testing: Log Pane Steps 1-6
54
55.. |checkbox| raw:: html
56
57    <input type="checkbox">
58