fix(ui): call AnimeSettingsManager.init() before interacting with settings section
Tests were failing because #settings-section remained hidden. The JavaScript initialization was not being triggered, leaving UI components in hidden state. Added explicit init() call in test setup for Anime Settings, Regenerate NFO, and Update Series Settings test cases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,7 @@ Anime Settings Page Loads
|
||||
${key}= Get JSON Value ${resp} $.key
|
||||
Should Not Be Empty ${key}
|
||||
Go To ${BASE_URL}/anime/settings?key=${key}
|
||||
Execute JavaScript window.AniWorld && AniWorld.AnimeSettingsManager && AniWorld.AnimeSettingsManager.init();
|
||||
Wait For Elements State id=settings-section visible timeout=10s
|
||||
Page Title Should Contain Settings
|
||||
Element Should Be Visible id=settings-section
|
||||
@@ -46,6 +47,7 @@ Regenerate NFO
|
||||
${key}= Get JSON Value ${resp} $.key
|
||||
Should Not Be Empty ${key}
|
||||
Go To ${BASE_URL}/anime/settings?key=${key}
|
||||
Execute JavaScript window.AniWorld && AniWorld.AnimeSettingsManager && AniWorld.AnimeSettingsManager.init();
|
||||
Wait For Elements State id=settings-section visible timeout=10s
|
||||
Click id=regenerate-nfo-btn
|
||||
Wait For Elements State css=#toast-container .toast visible timeout=5s
|
||||
@@ -61,6 +63,7 @@ Update Series Settings
|
||||
${key}= Get JSON Value ${resp} $.key
|
||||
Should Not Be Empty ${key}
|
||||
Go To ${BASE_URL}/anime/settings?key=${key}
|
||||
Execute JavaScript window.AniWorld && AniWorld.AnimeSettingsManager && AniWorld.AnimeSettingsManager.init();
|
||||
Wait For Elements State id=settings-section visible timeout=10s
|
||||
Fill Text id=field-folder Attack on Titan Custom
|
||||
Click id=save-db-btn
|
||||
|
||||
Reference in New Issue
Block a user