feat(ui): scroll to reveal hidden modal elements in tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-28 17:52:11 +02:00
parent 5ac58da650
commit f29fd72b2d

View File

@@ -91,6 +91,9 @@ Edit Logging Settings
Edit Backup Settings Edit Backup Settings
[Documentation] Toggle backup enabled and change path/retention. [Documentation] Toggle backup enabled and change path/retention.
Open Settings Modal 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 Check Checkbox id=backup-enabled
Fill Text id=backup-path /tmp/aniworld_backups Fill Text id=backup-path /tmp/aniworld_backups
Fill Text id=backup-keep-days 14 Fill Text id=backup-keep-days 14
@@ -103,6 +106,9 @@ Edit Backup Settings
Edit NFO Settings Edit NFO Settings
[Documentation] Enter TMDB key and toggle auto-create/media downloads. [Documentation] Enter TMDB key and toggle auto-create/media downloads.
Open Settings Modal 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 Fill Text id=tmdb-api-key test_tmdb_key_123
Check Checkbox id=nfo-auto-create Check Checkbox id=nfo-auto-create
Check Checkbox id=nfo-download-poster Check Checkbox id=nfo-download-poster
@@ -118,6 +124,9 @@ Edit NFO Settings
Create Config Backup Create Config Backup
[Documentation] Click create backup and verify success notification. [Documentation] Click create backup and verify success notification.
Open Settings Modal 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 Click id=create-config-backup
# Backup creation shows toast (stub implementation - no actual file created) # Backup creation shows toast (stub implementation - no actual file created)
${toast}= Get Text .toast ${toast}= Get Text .toast