Files
BanGUI/e2e/resources/common.resource
Lukas 17ba07b592 refactor(e2e): replace HttpLibrary with RequestsLibrary
- Swap HttpLibrary for RequestsLibrary in common.resource
- Add robotframework-requests to requirements
- Remove backend health check from suite setup (setup moved to individual tests)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-05 19:11:36 +02:00

22 lines
710 B
Plaintext

*** Settings ***
Library Browser
Library RequestsLibrary
Variables ${CURDIR}/../../.env
*** Variables ***
${FRONTEND_URL} http://localhost:5173
${BACKEND_URL} http://localhost:8000
*** Keywords ***
Wait For Backend Health
[Arguments] ${timeout}=120 ${interval}=5
${deadline}= Evaluate time.time() + ${timeout}
WHILE True
${now}= Evaluate time.time()
IF ${now} >= ${deadline} FAIL Backend did not become healthy within ${timeout} seconds
${response}= GET ${BACKEND_URL}/api/health expected_status=200
IF ${response.status} == 200 BREAK
Sleep ${interval}
END
Log Backend is healthy.