stages/email: fix email scanner voiding token (#14325)
* stages/email: fix email scanner voiding flow token Signed-off-by: Jens Langhammer <jens@goauthentik.io> * misc Signed-off-by: Jens Langhammer <jens@goauthentik.io> * improve consent stage error handling and testing Signed-off-by: Jens Langhammer <jens@goauthentik.io> * draw the rest of the owl Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add e2e test Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix Signed-off-by: Jens Langhammer <jens@goauthentik.io> * idk why this is broken now? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix other e2e test Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix the other test too Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -84,6 +84,14 @@ class TestFlowsRecovery(SeleniumTestCase):
|
||||
self.driver.switch_to.window(self.driver.window_handles[0])
|
||||
|
||||
sleep(2)
|
||||
|
||||
flow_executor = self.get_shadow_root("ak-flow-executor")
|
||||
consent_stage = self.get_shadow_root("ak-stage-consent", flow_executor)
|
||||
consent_stage.find_element(
|
||||
By.CSS_SELECTOR,
|
||||
"[type=submit]",
|
||||
).click()
|
||||
|
||||
# We can now enter the new password
|
||||
flow_executor = self.get_shadow_root("ak-flow-executor")
|
||||
prompt_stage = self.get_shadow_root("ak-stage-prompt", flow_executor)
|
||||
|
Reference in New Issue
Block a user