From b14b9cb0ddf7dc710f0ee32580a151b263e7750b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 4 Nov 2021 15:46:44 +0100 Subject: [PATCH] tests/e2e: fix selector for static token tests Signed-off-by: Jens Langhammer --- tests/e2e/test_flows_authenticators.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/e2e/test_flows_authenticators.py b/tests/e2e/test_flows_authenticators.py index bea773969..82aa05c85 100644 --- a/tests/e2e/test_flows_authenticators.py +++ b/tests/e2e/test_flows_authenticators.py @@ -127,9 +127,7 @@ class TestFlowsAuthenticator(SeleniumTestCase): flow_executor = self.get_shadow_root("ak-flow-executor") authenticator_stage = self.get_shadow_root("ak-stage-authenticator-static", flow_executor) - token = authenticator_stage.find_element( - By.CSS_SELECTOR, ".ak-otp-tokens li:nth-child(1)" - ).text + token = authenticator_stage.find_element(By.CSS_SELECTOR, "ul li:nth-child(1)").text authenticator_stage.find_element(By.CSS_SELECTOR, "button[type=submit]").click()