Skip to content

Commit

Permalink
Merge pull request #895 from mastastny/fix_stripe
Browse files Browse the repository at this point in the history
fix stripe auth completion
  • Loading branch information
dhlavac authored Dec 19, 2024
2 parents bfa3501 + 6e380fe commit 62d763e
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 62d763e

Please sign in to comment.