tests/e2e: fix selector for static token tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-04 15:46:44 +01:00
parent 2a21ebf7b0
commit b14b9cb0dd

View file

@ -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()