fix: scan episodes synchronously and disable test mode rate limiting
- Always scan missing episodes sync in add_series to avoid race condition - Add db fallback in get_anime when in-memory episodeDict empty - Add with_episodes param to AnimeSeriesService.get_by_key - Disable auth rate limiting and lockout in test mode (ANIWORLD_TESTING=1) - Simplify responsive.robot tests: fix setup, remove fragile width checks
This commit is contained in:
@@ -5,10 +5,17 @@ Documentation Responsive design UI tests for Aniworld.
|
||||
Resource ${CURDIR}/../resources/common.resource
|
||||
Resource ${CURDIR}/../resources/ui_keywords.resource
|
||||
|
||||
Test Setup Run Keywords
|
||||
... Create Anonymous Session
|
||||
Suite Setup Run Keywords
|
||||
... Start Aniworld Server
|
||||
... AND Create Anonymous Session
|
||||
... AND Wait For Server
|
||||
... AND Setup Master Password
|
||||
... AND Open Browser To Page /login
|
||||
... AND Login And Get Token
|
||||
... AND Create Session auth ${BASE_URL} headers={'Authorization': 'Bearer ${TOKEN}'}
|
||||
... AND Initialize Browser
|
||||
|
||||
Test Setup Run Keywords
|
||||
... Open Browser To Page /login
|
||||
... AND Perform Login
|
||||
... AND Wait For Elements State id=search-input visible timeout=5s
|
||||
|
||||
@@ -23,23 +30,16 @@ Mobile Viewport Layout
|
||||
Set Mobile Viewport
|
||||
Reload Page
|
||||
Wait For Elements State id=search-input visible timeout=5s
|
||||
${width}= Evaluate window.innerWidth
|
||||
Should Be True ${width} <= 480
|
||||
Element Should Be Visible id=search-input
|
||||
Element Should Be Visible id=theme-toggle
|
||||
|
||||
Mobile Menu Accessible
|
||||
[Documentation] Verify hamburger menu or compact header on mobile.
|
||||
[Documentation] Verify compact header on mobile.
|
||||
Set Mobile Viewport
|
||||
Reload Page
|
||||
Wait For Elements State id=search-input visible timeout=5s
|
||||
# On mobile, header actions may collapse into a menu
|
||||
${menu_visible}= Run Keyword And Return Status
|
||||
... Wait For Elements State id=mobile-menu-btn visible timeout=2s
|
||||
IF ${menu_visible}
|
||||
Click id=mobile-menu-btn
|
||||
Element Should Be Visible id=mobile-menu
|
||||
END
|
||||
# On mobile, header may show compact layout
|
||||
Element Should Be Visible id=theme-toggle
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Tablet Viewport
|
||||
@@ -49,8 +49,6 @@ Tablet Viewport Layout
|
||||
Set Tablet Viewport
|
||||
Reload Page
|
||||
Wait For Elements State id=search-input visible timeout=5s
|
||||
${width}= Evaluate window.innerWidth
|
||||
Should Be True ${width} >= 768
|
||||
Element Should Be Visible id=search-input
|
||||
Element Should Be Visible id=rescan-btn
|
||||
|
||||
@@ -79,8 +77,6 @@ Desktop Viewport Reset
|
||||
Set Desktop Viewport
|
||||
Reload Page
|
||||
Wait For Elements State id=search-input visible timeout=5s
|
||||
${width}= Evaluate window.innerWidth
|
||||
Should Be True ${width} >= 1280
|
||||
Element Should Be Visible id=search-input
|
||||
Element Should Be Visible id=rescan-btn
|
||||
Element Should Be Visible id=config-btn
|
||||
|
||||
Reference in New Issue
Block a user