- Remove Task 5/6 from docs (tests now fixed) - Close Settings Modal Via Escape: click focus + sleep before Escape key - Edit Scheduler Settings: use checkbox-custom selector - Disable Scheduler: use force=True on checkbox id Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2.5 KiB
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:
- Verify the checkbox ID is correct - check the actual HTML in the settings modal
- Try using
force=True:
Check Checkbox id=scheduled-rescan-enabled force=True
- Or use JavaScript to check the checkbox:
Evaluate JavaScript document.getElementById('scheduled-rescan-enabled').checked = true
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:
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:
Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
Fix Instructions: Replace with Browser library's scroll method:
# Instead of Execute JavaScript, use:
Evaluate JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000
Or use Playwright's built-in scrolling:
# 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.