tests/e2e: fix selector for static token tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2a21ebf7b0
commit
b14b9cb0dd
|
@ -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()
|
||||
|
||||
|
|
Reference in a new issue