Fix anime settings UI tests: add series via API before testing

Tests were failing because settings page requires series in DB.
Now call Add Series API before navigating to settings page.
This commit is contained in:
2026-06-28 17:19:54 +02:00
parent c6d9615731
commit fd8d9636cb
2 changed files with 21 additions and 19 deletions

View File

@@ -1,19 +1,3 @@
## Task 12: UI Anime Settings - Anime Settings Page Loads
**Suite:** `Robot.Ui.Anime Settings`
**Test:** `Anime Settings Page Loads`
**Result:** FAIL
**Error:** `TimeoutError: locator.waitFor: Timeout 5000ms exceeded. waiting for locator('id=settings-section') to be visible — locator resolved to hidden <section id="settings-section" class="settings-section hidden">…</section>`
**Instructions:**
- The `#settings-section` element has the CSS class `hidden`, preventing it from becoming visible.
- Investigate the anime settings page frontend code to understand how the settings section is shown/hidden.
- The test may need to click a button or navigate differently to reveal the section.
- Update the test in `tests/robot/ui/anime_settings.robot` to perform the correct navigation steps before waiting for `#settings-section`.
- Alternatively, if the section should be visible by default, fix the frontend logic.
---
## Task 13: UI Anime Settings - Regenerate NFO
**Suite:** `Robot.Ui.Anime Settings`