From b29dd9f6d0c48acc3d111d08addb0ba38bd5b274 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 11 Mar 2026 19:12:44 +0100 Subject: selenium: Use Horizon login url Previously we used logout url in the test, which worked (and was also used in Horizon). It stopped working after recent changes, but changing to login url fixes that. Change-Id: I19c24ce44370ab949bfea49aef7023dd323fff6a Signed-off-by: Michal Nasiadka Co-Authored-By: Taavi Ansper --- tests/testinfra/test_horizon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testinfra/test_horizon.py b/tests/testinfra/test_horizon.py index 1f193e383..9b27e4700 100644 --- a/tests/testinfra/test_horizon.py +++ b/tests/testinfra/test_horizon.py @@ -84,13 +84,13 @@ def test_horizon_login(host): horizon_proto = host.environment().get('HORIZON_PROTO') horizon_url = horizon_proto + "://192.0.2.10" - logout_url = '/'.join(( - horizon_url, - 'auth', - 'logout')) + login_url = '/'.join(( + horizon_url, + 'auth', + 'login')) try: - driver.get(logout_url) + driver.get(login_url) user_field = driver.find_element(By.ID, 'id_username') user_field.send_keys('admin') pass_field = driver.find_element(By.ID, 'id_password') -- cgit v1.2.3