Skip to content

Commit

Permalink
docs / tests: fix adc and preferences tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed Jan 23, 2025
1 parent a9f96dd commit 2860ade
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 45 deletions.
20 changes: 10 additions & 10 deletions docs/tests/general/general_preferences_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ states (only applies to plugins which have this implemented).
- **Expected result:** time base is 1s
6. Redo all the steps with the preference disabled
- **Expected result:** time base is the default value
7. Press the "Settings file location" open buttons
7. Press the "Settings file location" open button within the preference menu
- **Expected results:** should open a file browser containing
.ini files for every plugins' session saved

**Result**: PASS/FAIL

Test 2 - Doubleclick to attach/detach tool
Test 2 - Double click to attach/detach tool
--------------------------------------------------

.. _TST.PREF.DOUBLECLICK_ATTACH_DETACH:

**UID:** TST.PREF.DOUBLECLICK_ATTACH_DETACH

**Description:** Tools can be detached from the main window by
double-clicking them in the left menu.
double clicking them in the left menu.

**Preconditions:**
- Emulator tests
Expand All @@ -74,7 +74,7 @@ double-clicking them in the left menu.

**Steps:**
1. Set preference to enabled.
2. Double-click Oscilloscope tool to detach it.
2. Double click Oscilloscope tool to detach it.
- **Expected result:** Oscilloscope tool should detach from
the main window into a new one.
3. Redo all the steps with the preference disabled.
Expand All @@ -93,13 +93,13 @@ Test 3 - Save/Load tool attached state

**Preconditions:**
- Emulator tests
- Depends on Test 2
- Depends on :ref:`Test 2<TST.PREF.DOUBLECLICK_ATTACH_DETACH>`
- :ref:`M2k.emu<m2k_emu_setup>`
- OS: ALL

**Steps:**
1. Set preference to enabled.
2. Double-click Oscilloscope tool to detach it.
2. Double click Oscilloscope tool to detach it.
3. Close Scopy.
4. Open the app using the same setup.
- **Expected result:** Oscilloscope is still detached.
Expand All @@ -108,14 +108,14 @@ Test 3 - Save/Load tool attached state

**Result**: PASS/FAIL

Test 4 - Doubleclick control buttons to open menu
Test 4 - Double click control buttons to open menu
--------------------------------------------------

.. _TST.PREF.DOUBLECLICK_CONTROL_MENU:

**UID:** TST.PREF.DOUBLECLICK_CONTROL_MENU

**Description:** Open menu from MenuControlButtons by double-clicking them.
**Description:** Open menu from MenuControlButtons by double clicking them.

**Preconditions:**
- Emulator tests
Expand All @@ -125,7 +125,7 @@ Test 4 - Doubleclick control buttons to open menu
**Steps:**
1. Set preference to enabled.
2. Open ADC - Time tool.
3. Double-click Cursors button in the bottom right (
3. Double click Cursors button in the bottom right (
do not click on the button's icon).

- **Expected result:** A hovering menu should open above the button.
Expand Down Expand Up @@ -464,7 +464,7 @@ Test 18 - Session devices

**Preconditions:**
- :ref:`Pluto.usb<pluto_emu_usb_setup>`
- "Auto-connect to previous session" needs to be enabled.
- :ref:`"Auto-connect to previous session"<TST.PREF.AUTO_CONNECT_PREVIOUS_SESSION>` preference needs to be enabled
- OS: ANY

**Steps:**
Expand Down
Loading

0 comments on commit 2860ade

Please sign in to comment.