51 lines
2.3 KiB
Plaintext
51 lines
2.3 KiB
Plaintext
*** Settings ***
|
|
Documentation Anime settings page UI tests for Aniworld.
|
|
... Covers page load, regenerate NFO, and update series settings.
|
|
|
|
Resource ${CURDIR}/../resources/common.resource
|
|
Resource ${CURDIR}/../resources/ui_keywords.resource
|
|
|
|
Test Setup Run Keywords
|
|
... Create Anonymous Session
|
|
... AND Setup Master Password
|
|
... AND Open Browser To Page /login
|
|
... AND Perform Login
|
|
... AND Wait For Elements State id=search-input visible timeout=5s
|
|
|
|
Test Teardown Close Browser
|
|
|
|
*** Test Cases ***
|
|
# ---------------------------------------------------------------------------
|
|
# Anime Settings Page Load
|
|
# ---------------------------------------------------------------------------
|
|
Anime Settings Page Loads
|
|
[Documentation] Navigate to anime settings page and verify form elements.
|
|
Go To ${BASE_URL}/anime/settings?key=attack-on-titan
|
|
Wait For Elements State id=anime-settings-form visible timeout=5s
|
|
Page Title Should Contain Settings
|
|
Element Should Be Visible id=anime-settings-form
|
|
Element Should Be Visible id=regenerate-nfo-btn
|
|
Element Should Be Visible id=save-anime-settings-btn
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Regenerate NFO
|
|
# ---------------------------------------------------------------------------
|
|
Regenerate NFO
|
|
[Documentation] Click regenerate NFO and verify success notification.
|
|
Go To ${BASE_URL}/anime/settings?key=attack-on-titan
|
|
Wait For Elements State id=regenerate-nfo-btn visible timeout=5s
|
|
Click id=regenerate-nfo-btn
|
|
Toast Should Contain NFO
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Update Series Settings
|
|
# ---------------------------------------------------------------------------
|
|
Update Series Settings
|
|
[Documentation] Change series settings and save.
|
|
Go To ${BASE_URL}/anime/settings?key=attack-on-titan
|
|
Wait For Elements State id=anime-settings-form visible timeout=5s
|
|
Select Options By id=preferred-language-select text German
|
|
Fill Text id=custom-folder-input Attack on Titan Custom
|
|
Click id=save-anime-settings-btn
|
|
Toast Should Contain saved
|