From f29fd72b2dd15ff4aae47c6ab995bdc6958e04fb Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 28 Jun 2026 17:52:11 +0200 Subject: [PATCH] feat(ui): scroll to reveal hidden modal elements in tests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/robot/ui/settings_modal.robot | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/robot/ui/settings_modal.robot b/tests/robot/ui/settings_modal.robot index cbed83a..757a4e8 100644 --- a/tests/robot/ui/settings_modal.robot +++ b/tests/robot/ui/settings_modal.robot @@ -91,6 +91,9 @@ Edit Logging Settings Edit Backup Settings [Documentation] Toggle backup enabled and change path/retention. Open Settings Modal + # Backup section is below other sections - scroll to make it visible + Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000 + Wait For Elements State id=backup-enabled visible timeout=5s Check Checkbox id=backup-enabled Fill Text id=backup-path /tmp/aniworld_backups Fill Text id=backup-keep-days 14 @@ -103,6 +106,9 @@ Edit Backup Settings Edit NFO Settings [Documentation] Enter TMDB key and toggle auto-create/media downloads. Open Settings Modal + # NFO section is below other sections - scroll to make it visible + Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000 + Wait For Elements State id=nfo-auto-create visible timeout=5s Fill Text id=tmdb-api-key test_tmdb_key_123 Check Checkbox id=nfo-auto-create Check Checkbox id=nfo-download-poster @@ -118,6 +124,9 @@ Edit NFO Settings Create Config Backup [Documentation] Click create backup and verify success notification. Open Settings Modal + # Scroll to bottom to make the create-config-backup button visible + Execute JavaScript document.querySelector('#config-modal .modal-body').scrollTop = 10000 + Wait For Elements State id=create-config-backup visible timeout=5s Click id=create-config-backup # Backup creation shows toast (stub implementation - no actual file created) ${toast}= Get Text .toast