From e2f0e187d061659677d9e84f41cc58ff245b4346 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 2 Jul 2026 21:04:42 +0200 Subject: [PATCH] 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. --- Docs/tasks.md | 26 -------------------------- tests/robot/ui/settings_modal.robot | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/Docs/tasks.md b/Docs/tasks.md index 110b6de..145dd5c 100644 --- a/Docs/tasks.md +++ b/Docs/tasks.md @@ -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` **Test File:** `tests/robot/ui/settings_modal.robot` diff --git a/tests/robot/ui/settings_modal.robot b/tests/robot/ui/settings_modal.robot index d3afb57..299d1a4 100644 --- a/tests/robot/ui/settings_modal.robot +++ b/tests/robot/ui/settings_modal.robot @@ -70,7 +70,7 @@ Edit Scheduler Settings Disable Scheduler [Documentation] Uncheck scheduler enabled and save. Open Settings Modal - Uncheck Checkbox id=scheduled-rescan-enabled force=True + Click //label[contains(., 'Enable Scheduler')] force=True Save Settings Toast Should Contain saved