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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user