fix(settings modal robot): use label click instead of checkbox uncheck
Remove obsolete Task 7 from tasks.md - fix no longer needed after label click approach.
This commit is contained in:
@@ -1,29 +1,3 @@
|
|||||||
## Task 7: Fix `Robot.Ui.Settings Modal.Edit General Settings`
|
|
||||||
|
|
||||||
**Test File:** `tests/robot/ui/settings_modal.robot`
|
|
||||||
|
|
||||||
**Error:**
|
|
||||||
```
|
|
||||||
TimeoutError: locator.check: Timeout 10000ms exceeded.
|
|
||||||
```
|
|
||||||
|
|
||||||
**Root Cause:**
|
|
||||||
A checkbox (`id=scheduler-rescan-enabled` or similar) isn't being checked within the timeout. The element might not be visible or interactable.
|
|
||||||
|
|
||||||
**Fix Instructions:**
|
|
||||||
1. Verify the checkbox ID is correct - check the actual HTML in the settings modal
|
|
||||||
2. Try using `force=True`:
|
|
||||||
```robot
|
|
||||||
Check Checkbox id=scheduled-rescan-enabled force=True
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Or use JavaScript to check the checkbox:
|
|
||||||
```robot
|
|
||||||
Evaluate JavaScript document.getElementById('scheduled-rescan-enabled').checked = true
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Task 8: Fix `Robot.Ui.Settings Modal.Disable Scheduler`
|
## Task 8: Fix `Robot.Ui.Settings Modal.Disable Scheduler`
|
||||||
|
|
||||||
**Test File:** `tests/robot/ui/settings_modal.robot`
|
**Test File:** `tests/robot/ui/settings_modal.robot`
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ Edit Scheduler Settings
|
|||||||
Disable Scheduler
|
Disable Scheduler
|
||||||
[Documentation] Uncheck scheduler enabled and save.
|
[Documentation] Uncheck scheduler enabled and save.
|
||||||
Open Settings Modal
|
Open Settings Modal
|
||||||
Uncheck Checkbox id=scheduled-rescan-enabled force=True
|
Click //label[contains(., 'Enable Scheduler')] force=True
|
||||||
Save Settings
|
Save Settings
|
||||||
Toast Should Contain saved
|
Toast Should Contain saved
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user