Skip to content

Commit

Permalink
fix stripe auth completion
Browse files Browse the repository at this point in the history
  • Loading branch information
mastastny committed Nov 25, 2024
1 parent fbc5c32 commit 6e380fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/ui/views/devel/settings/stripe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Settings Devel portal View containing credit card details for Stripe payment gateway"""

import logging
import time

from widgetastic.widget import View, TextInput, Select, GenericLocatorWidget, Text

Expand Down Expand Up @@ -85,6 +86,7 @@ class challenge_frame(View): # pylint: disable=invalid-name

def complete_auth(self):
"""Completes the authentication"""
time.sleep(1)
self.browser.element(self.challenge_frame.complete_auth).submit()
self.browser.selenium.switch_to.default_content()
self.browser.wait_for_element("//*[normalize-space(.)='Credit card number']", timeout=20)
Expand Down

0 comments on commit 6e380fe

Please sign in to comment.