Files
Aniworld/Docs/tasks.md
Lukas e2f0e187d0 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.
2026-07-02 21:04:42 +02:00

78 lines
1.8 KiB
Markdown

## Task 8: Fix `Robot.Ui.Settings Modal.Disable Scheduler`
**Test File:** `tests/robot/ui/settings_modal.robot`
**Error:**
```
TimeoutError: locator.check: Timeout 10000ms exceeded.
```
**Root Cause:**
Similar to Task 7 - checkbox interaction is failing.
**Fix Instructions:**
Same as Task 7. The xpath `//label[contains(., 'Enable Scheduler')]` might not be correct or clicking the label isn't triggering the checkbox properly.
Try:
```robot
Click //label[contains(., 'Enable Scheduler')] force=True
```
Or find the actual checkbox ID and use `Uncheck Checkbox` directly.
---
## Task 9: Fix `Robot.Ui.Settings Modal.Edit Backup Settings`
**Test File:** `tests/robot/ui/settings_modal.robot`
**Error:**
```
No keyword with name 'Execute JavaScript' found.
```
**Context:**
Uses `Execute JavaScript` to scroll the modal:
```robot
Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
```
**Fix Instructions:**
Replace with Browser library's scroll method:
```robot
# Instead of Execute JavaScript, use:
Evaluate JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
```
Or use Playwright's built-in scrolling:
```robot
# Scroll within the modal content area
Scroll css=#config-modal .modal-body down
```
---
## Task 10: Fix `Robot.Ui.Settings Modal.Edit NFO Settings`
**Test File:** `tests/robot/ui/settings_modal.robot`
**Error:**
```
No keyword with name 'Execute JavaScript' found.
```
**Same fix as Task 9.** Replace `Execute JavaScript` with `Evaluate JavaScript`.
---
## Task 11: Fix `Robot.Ui.Settings Modal.Create Config Backup`
**Test File:** `tests/robot/ui/settings_modal.robot`
**Error:**
```
No keyword with name 'Execute JavaScript' found.
```
**Same fix as Task 9.** Replace `Execute JavaScript` with `Evaluate JavaScript`.
---